Method Summary |
|
protected void | basicWriteDocument(STDocument doc) |
public static void | basicWriteFixed(IRandomAccess randomAccess, float value, int precision) |
public static void | basicWriteInteger(IRandomAccess randomAccess, int value) |
public static void | basicWriteName(IRandomAccess randomAccess, byte[] name) |
public static void | basicWriteStringHex(IRandomAccess randomAccess, byte[] string) |
public static void | basicWriteStringLiteral(IRandomAccess randomAccess, byte[] string) |
protected void | close(STDocument doc) |
protected byte[] | encryptStream(COSDictionary dict, byte[] bytes) |
protected byte[] | encryptString(byte[] bytes) |
protected COSIndirectObject | getCurrentObject() |
public List | getProxies() The collection of proxies to COSObjects visited by the writer. |
public IRandomAccess | getRandomAccess() |
protected ISystemSecurityHandler | getSecurityHandler() |
public boolean | isIncremental() |
protected boolean | isOnNewLine() This will tell if we are on a new line. |
protected void | reset() |
public void | seekToEnd() |
protected void | setCurrentObject(COSIndirectObject currentObject) |
public void | setIncremental(boolean incremental) |
final public static byte[] | toByteArray(COSObject object) Create a byte array representation from a COSObject.
Parameters: object - The object to be serialized. |
public Object | visitFromArray(COSArray obj) visitFromArray.
Parameters: obj - The object that is being visited. |
public Object | visitFromBoolean(COSBoolean obj) visitFromBoolean.
Parameters: obj - The object that is being visited. |
public Object | visitFromDictionary(COSDictionary obj) visitFromDictionary.
Parameters: obj - The object that is being visited. |
public Object | visitFromFixed(COSFixed obj) visitFromFixed.
Parameters: obj - The object that is being visited. |
public Object | visitFromIndirectObject(COSIndirectObject obj) |
public Object | visitFromInteger(COSInteger obj) visitFromInteger.
Parameters: obj - The object that is being visited. |
public Object | visitFromName(COSName obj) visitFromName.
Parameters: obj - The object that is being visited. |
public Object | visitFromNull(COSNull obj) visitFromNull.
Parameters: obj - The object that is being visited. |
public Object | visitFromProxy(COSObjectProxy obj) |
public Object | visitFromStream(COSStream obj) visitFromStream.
Parameters: obj - The object that is being visited. |
public Object | visitFromString(COSString obj) visitFromString.
Parameters: obj - The object that is being visited. |
public void | write(byte[] b) This will write some byte to the stream. |
public void | write(byte[] b, int off, int len) This will write some byte to the stream. |
public void | write(int b) This will write a single byte to the stream. |
protected void | writeCRLF() |
public void | writeContentStream(CSContent contentStream) |
public void | writeDocument(STDocument doc) |
protected void | writeEOF() |
public void | writeEOL() This will write an EOL to the stream. |
protected void | writeEntry(STXRefSection xrefSection, COSIndirectObject object) |
protected void | writeHeader(STDocument stdoc) This will write the header to the PDF document. |
protected void | writeImageData(COSString imageData) |
public void | writeIndirectObject(COSIndirectObject object) |
public void | writeObject(COSObject object) |
protected void | writeOperation(CSOperation obj) |
protected void | writeStreamContent(byte[] bytes) |
protected void | writeStringHex(byte[] bytes) |
protected void | writeStringLiteral(byte[] bytes) |
protected void | writeXRef(STXRefSection xrefSection) |