Package org.apache.fop.pdf
Class PDFLinearization.HintTable
- java.lang.Object
-
- org.apache.fop.pdf.PDFObject
-
- org.apache.fop.pdf.AbstractPDFStream
-
- org.apache.fop.pdf.PDFStream
-
- org.apache.fop.pdf.PDFLinearization.HintTable
-
- All Implemented Interfaces:
PDFWritable
- Enclosing class:
- PDFLinearization
static class PDFLinearization.HintTable extends PDFStream
-
-
Field Summary
Fields Modifier and Type Field Description (package private) java.util.List<java.lang.Integer>
contentStreamLengths
(package private) java.util.Map<java.lang.String,int[]>
hintGroups
(package private) java.util.List<java.lang.Integer>
objCount
(package private) java.util.List<java.lang.Integer>
pageLengths
private java.util.List<PDFPage>
pages
(package private) int
pageStartPos
(package private) java.util.List<java.lang.Integer>
sharedLengths
-
Constructor Summary
Constructors Constructor Description HintTable(PDFDocument doc)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PDFFilterList
getFilterList()
Returns the associated filter list.protected void
outputRawStreamData(java.io.OutputStream os)
Sends the raw stream data to the target OutputStream.private void
writeCard16(int s, java.io.OutputStream bos)
private void
writeSharedTable(org.apache.commons.io.output.CountingOutputStream bos)
private void
writeULong(int s, java.io.OutputStream bos)
-
Methods inherited from class org.apache.fop.pdf.PDFStream
add, add, getBufferOutputStream, getBufferWriter, getDataLength, getSizeHint, output, setData, streamHashCode
-
Methods inherited from class org.apache.fop.pdf.AbstractPDFStream
encodeAndWriteStream, encodeStream, get, getChildren, getDefaultFilterName, getDictionary, multipleFiltersAllowed, outputStreamData, populateStreamDict, prepareImplicitFilters, put, registerChildren, setDocument, setupFilterList
-
Methods inherited from class org.apache.fop.pdf.PDFObject
contentEquals, encode, encodeBinaryToHexString, encodeString, encodeText, formatObject, getDocument, getDocumentSafely, getGeneration, getObjectID, getObjectNumber, getParent, hasObjectNumber, makeReference, outputInline, referencePDF, setObjectNumber, setObjectNumber, setObjectNumber, setParent, toPDF, toPDFString
-
-
-
-
Field Detail
-
pages
private java.util.List<PDFPage> pages
-
pageStartPos
int pageStartPos
-
sharedLengths
java.util.List<java.lang.Integer> sharedLengths
-
pageLengths
java.util.List<java.lang.Integer> pageLengths
-
contentStreamLengths
java.util.List<java.lang.Integer> contentStreamLengths
-
objCount
java.util.List<java.lang.Integer> objCount
-
hintGroups
java.util.Map<java.lang.String,int[]> hintGroups
-
-
Constructor Detail
-
HintTable
public HintTable(PDFDocument doc)
-
-
Method Detail
-
getFilterList
public PDFFilterList getFilterList()
Description copied from class:AbstractPDFStream
Returns the associated filter list.- Overrides:
getFilterList
in classAbstractPDFStream
- Returns:
- the filter list
-
outputRawStreamData
protected void outputRawStreamData(java.io.OutputStream os) throws java.io.IOException
Description copied from class:PDFStream
Sends the raw stream data to the target OutputStream.- Overrides:
outputRawStreamData
in classPDFStream
- Parameters:
os
- OutputStream to write to- Throws:
java.io.IOException
- In case of an I/O problem
-
writeSharedTable
private void writeSharedTable(org.apache.commons.io.output.CountingOutputStream bos) throws java.io.IOException
- Throws:
java.io.IOException
-
writeCard16
private void writeCard16(int s, java.io.OutputStream bos) throws java.io.IOException
- Throws:
java.io.IOException
-
writeULong
private void writeULong(int s, java.io.OutputStream bos) throws java.io.IOException
- Throws:
java.io.IOException
-
-