|
© 2002 BEA Systems, Inc. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.bea.p13n.content.document.ref.DefaultDocument
A concreate DocumentDef that takes an array of bytes.
Field Summary | |
protected byte[] |
data
The raw data. |
Constructor Summary | |
DefaultDocument(byte[] data)
Constructor from a byte array. |
|
DefaultDocument(java.io.InputStream in)
Constructor from an input stream. |
Method Summary | |
static void |
close(java.io.InputStream in)
Close an input stream and ignore any exception. |
byte[] |
getBytes()
Get the bytes of the document. |
java.io.InputStream |
openStream()
Open an input stream to the bytes of the document. |
static byte[] |
readFully(java.io.InputStream in)
Fully read an input stream and return the resulting bytes. |
void |
setBytes(byte[] data)
Set the bytes of the document. |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Field Detail |
protected byte[] data
Constructor Detail |
public DefaultDocument(byte[] data)
public DefaultDocument(java.io.InputStream in) throws java.io.IOException
Method Detail |
public byte[] getBytes()
public void setBytes(byte[] data)
public java.io.InputStream openStream() throws DocumentException
public static byte[] readFully(java.io.InputStream in) throws java.io.IOException
public static void close(java.io.InputStream in)
|
© 2002 BEA Systems, Inc. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |