© 2005 BEA Systems, Inc.

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

All Known Implementing Classes:
DefaultDocument, FileDocument, URLDocument

public interface DocumentDef

Represents the data about a Document at the SPI level.


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

Method Detail

getBytes

public byte[] getBytes()
                throws DocumentException
Deprecated. 
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.
Throws:
DocumentException - thrown on an error.

openStream

public InputStream openStream()
                       throws DocumentException
Deprecated. 
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.
Throws:
DocumentException - thrown on an error.

© 2005 BEA Systems, Inc.

Copyright © 2005 BEA Systems, Inc. All Rights Reserved