DocumentDef Interface

DEPRECATED

com.bea.p13n.content.document.spi
DocumentDef Interface

public interface DocumentDef

Represents the data about a Document at the SPI level.


All Known Implementing Classes
com.bea.p13n.content.document.ref.DefaultDocument, com.bea.p13n.content.document.ref.FileDocument, com.bea.p13n.content.document.ref.URLDocument

Method Summary

public byte[]
getBytes()
Returns the entire contents of the document as an array of raw bytes.
public InputStream
openStream()
Open an input stream to the content of the document.

Method Detail

getBytes() Method

public byte[] getBytes()
throws DocumentException
Returns the entire contents of the document as an array of raw bytes.

Depending upon the implementation, this might not be as efficient as getting a stream.

Returns

the raw bytes of the document.

Exceptions

DocumentException
thrown on an error.

openStream() Method

public InputStream openStream()
throws DocumentException
Open an input stream to the content of the document.

Depending upon the implementation, this might be only as efficient as getting the bytes.

Returns

an input stream to the bytes.

Exceptions

DocumentException
thrown on an error.