FileDocument Class
DEPRECATED
- public class FileDocument
extends Object
implements com.bea.p13n.content.document.spi.DocumentDef
A concreate implementation of a document which uses a file.
-
Hierarchy
-
Object
FileDocument
-
All Implemented Interfaces
-
com.bea.p13n.content.document.spi.DocumentDef
protected File |
-
file
- The file object we read from.
|
Methods from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
file
protected File
file
- The file object we read from.
FileDocument
public FileDocument(File
file)
- Constructor.
getBytes() Method
public byte[] getBytes()
throws DocumentException
Get the bytes of the file.
Returns
- the raw bytes of the document.
Exceptions
-
DocumentException
getFile() Method
public File
getFile()
Get the file used.
openStream() Method
public InputStream
openStream()
throws DocumentException
Open a sream to the bytes of the file.
Returns
- an input stream to the bytes.
Exceptions
-
DocumentException
setFile(File) Method
public void setFile(File
file)
Set the file used.