public class PdfDocument
extends java.lang.Object
implements java.io.Serializable
| Constructor and Description |
|---|
PdfDocument()
default constructor
|
| Modifier and Type | Method and Description |
|---|---|
byte[] |
getBytes() |
int |
getSize()
Get the size of the document.
|
void |
readDocument(java.io.InputStream is)
Read a document from an input stream.
|
void |
setBytes(byte[] bytes) |
void |
writeDocument(java.io.OutputStream os)
Write a document to an output stream.
|
public byte[] getBytes()
public void setBytes(byte[] bytes)
public int getSize()
public void readDocument(java.io.InputStream is)
throws java.io.IOException
is - the input streamjava.io.IOException - read errorpublic void writeDocument(java.io.OutputStream os)
throws java.io.IOException
os - the output streamjava.io.IOException - write error