public interface EDOCDataFile
EDOC.addFile(File),
EDOC.getFile(String)| Modifier and Type | Method and Description |
|---|---|
String |
getFileName()
Returns the name of the file represented by this EDOC data file.
|
InputStream |
getInputStream()
Returns an InputStream for reading data from this EDOCDataFile.
|
String |
getName()
Returns the internal name of this EDOC data file.
|
long |
getSize()
Returns the size of this EDOC data file.
|
File |
getTemporaryFile()
Returns a File for reading data from this EDOCDataFile.
|
File |
saveTo(File directory)
Saves this EDOC data file to the given directory using the current file name.
|
File |
saveTo(File directory,
String name)
Saves this EDOC data file to the given directory using the given name.
|
String getName()
String getFileName()
long getSize()
File saveTo(File directory) throws EDOCException
directory - a directory where this EDOCDataFile should be saved.EDOCException - if this data file cannot be saved.File saveTo(File directory, String name) throws EDOCException
directory - a directory where this EDOCDataFile should be saved.name - the name of the target file.EDOCException - if this data file cannot be saved.InputStream getInputStream() throws IOException
NOTE: the implementation is responsible for closing the returned InputStream.
IOException - if this data file cannot be accessed.File getTemporaryFile() throws IOException
NOTE: Do not modify the underlying file, as it will corrupt the EDOC integrity!
IOException - if this data file cannot be accessed.