public class FileAccessor extends Observable
Constructor and Description |
---|
FileAccessor(LifecycleManager manager,
File file) |
Modifier and Type | Method and Description |
---|---|
int |
getAccessCount() |
javax.activation.DataHandler |
getDataHandler(String contentType) |
File |
getFile() |
String |
getFileName() |
InputStream |
getInputStream() |
OutputStream |
getOutputStream() |
long |
getSize() |
void |
setFile(File file) |
addObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChanged
public FileAccessor(LifecycleManager manager, File file)
public javax.activation.DataHandler getDataHandler(String contentType) throws javax.mail.MessagingException
javax.mail.MessagingException
public String getFileName() throws javax.mail.MessagingException
javax.mail.MessagingException
public InputStream getInputStream() throws IOException, javax.mail.MessagingException
IOException
javax.mail.MessagingException
public OutputStream getOutputStream() throws FileNotFoundException
FileNotFoundException
public long getSize()
public File getFile()
public void setFile(File file)
public int getAccessCount()
Copyright © 2004-2013 The Apache Software Foundation. All Rights Reserved.