|
PDF Clown 0.1.2 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.pdfclown.tokens.Writer
public abstract class Writer
PDF file writer.
| Field Summary | |
|---|---|
protected File |
file
|
protected IOutputStream |
stream
|
| Constructor Summary | |
|---|---|
protected |
Writer(File file,
IOutputStream stream)
|
| Method Summary | |
|---|---|
static Writer |
get(File file,
IOutputStream stream)
Gets a new writer instance for the specified file. |
File |
getFile()
Gets the file to serialize. |
IOutputStream |
getStream()
Gets the target stream. |
protected void |
updateTrailer(PdfDictionary trailer,
IOutputStream stream)
Updates the specified trailer. |
void |
write(SerializationModeEnum mode)
Serializes the file to the target stream. |
protected void |
writeHeader()
Serializes the beginning of the file [PDF:1.6:3.4.1]. |
protected abstract void |
writeIncremental()
Serializes the PDF file as incremental update [PDF:1.6:3.4.5]. |
protected abstract void |
writeLinearized()
Serializes the PDF file linearized [PDF:1.6:F]. |
protected abstract void |
writeStandard()
Serializes the PDF file compactly [PDF:1.6:3.4]. |
protected void |
writeTail(long startxref)
Serializes the end of the file [PDF:1.6:3.4.4]. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected final File file
protected final IOutputStream stream
| Constructor Detail |
|---|
protected Writer(File file,
IOutputStream stream)
| Method Detail |
|---|
public static Writer get(File file,
IOutputStream stream)
file - File to serialize.stream - Target stream.public File getFile()
public IOutputStream getStream()
public void write(SerializationModeEnum mode)
file to the target stream.
mode - Serialization mode.
protected void updateTrailer(PdfDictionary trailer,
IOutputStream stream)
protected final void writeHeader()
protected abstract void writeIncremental()
protected abstract void writeLinearized()
protected abstract void writeStandard()
protected final void writeTail(long startxref)
startxref - Byte offset from the beginning of the file to the beginning
of the last cross-reference section.
|
PDF Clown 0.1.2 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||