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)
Deprecated.
This method is no longer used in Axiom 1.2.13 and will be removed in Axiom 1.3.
|
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–2024 The Apache Software Foundation. All rights reserved.