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, setChanged
public FileAccessor(LifecycleManager manager, File file)
public 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–2018 The Apache Software Foundation. All rights reserved.