Class FileAccessor
java.lang.Object
java.util.Observable
org.apache.axiom.attachments.lifecycle.impl.FileAccessor
FileAccessor wraps the attachment temp file. It is created from PartOnFile.
The idea behind wrapping the file is to give rumtime an ability to track
when the file is accessed with streams or data handler and accordingly trigger
events to handle the the files lifecycle.
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.util.Observable
addObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChanged
-
Constructor Details
-
FileAccessor
-
-
Method Details
-
getFileName
-
getInputStream
- Throws:
IOException
-
getOutputStream
- Throws:
FileNotFoundException
-
getSize
public long getSize() -
getFile
-
setFile
-
getAccessCount
public int getAccessCount()
-