Class SymbolDictionary
java.lang.Object
org.apache.pdfbox.jbig2.segments.SymbolDictionary
- All Implemented Interfaces:
Dictionary, SegmentData
This class represents the data of segment type "Symbol dictionary". Parsing is described in 7.4.2.1.1 - 7.4.1.1.5 and
decoding procedure is described in 6.5.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionSymbolDictionary(SubInputStream subInputStream, SegmentHeader segmentHeader) -
Method Summary
Modifier and TypeMethodDescription6.5.5 Decoding the symbol dictionaryvoidinit(SegmentHeader header, SubInputStream sis) Parse the stream and read information of header.
-
Field Details
-
cxIAID
-
-
Constructor Details
-
SymbolDictionary
public SymbolDictionary() -
SymbolDictionary
public SymbolDictionary(SubInputStream subInputStream, SegmentHeader segmentHeader) throws IOException - Throws:
IOException
-
-
Method Details
-
getDictionary
public ArrayList<Bitmap> getDictionary() throws IOException, IntegerMaxValueException, InvalidHeaderValueException6.5.5 Decoding the symbol dictionary- Specified by:
getDictionaryin interfaceDictionary- Returns:
- List of decoded symbol bitmaps as an
ArrayList - Throws:
IOException- if an underlying IO operation failsIntegerMaxValueException- if the maximum value limit of an integer is exceededInvalidHeaderValueException- if the segment header value is invalid
-
init
public void init(SegmentHeader header, SubInputStream sis) throws InvalidHeaderValueException, IntegerMaxValueException, IOException Description copied from interface:SegmentDataParse the stream and read information of header.- Specified by:
initin interfaceSegmentData- Parameters:
header- - The segments' header (to make referred-to segments available in data part).sis- - WrappedImageInputStreamintoSubInputStream.- Throws:
InvalidHeaderValueException- if the segment header value is invalidIntegerMaxValueException- if the maximum value limit of an integer is exceededIOException- if an underlying IO operation fails
-