public class FileAccessor extends Observable
| Constructor and Description |
|---|
FileAccessor(LifecycleManager manager,
File file) |
| Modifier and Type | Method and Description |
|---|---|
int |
getAccessCount() |
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, setChangedpublic FileAccessor(LifecycleManager manager, File file)
public DataHandler getDataHandler(String contentType) throws javax.mail.MessagingException
javax.mail.MessagingExceptionpublic String getFileName() throws javax.mail.MessagingException
javax.mail.MessagingExceptionpublic InputStream getInputStream() throws IOException, javax.mail.MessagingException
IOExceptionjavax.mail.MessagingExceptionpublic OutputStream getOutputStream() throws FileNotFoundException
FileNotFoundExceptionpublic long getSize()
public File getFile()
public void setFile(File file)
public int getAccessCount()
Copyright © 2004–2016 The Apache Software Foundation. All rights reserved.