Package org.jpedal.jbig2.segment
Class Segment
java.lang.Object
org.jpedal.jbig2.segment.Segment
- Direct Known Subclasses:
EndOfStripeSegment,ExtensionSegment,PageInformationSegment,PatternDictionarySegment,RegionSegment,SymbolDictionarySegment
Abstract Segment class.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final ArithmeticDecoderstatic final intConstantBITMAP=70protected final JBIG2StreamDecoderstatic final intConstantEND_OF_FILE=51static final intConstantEND_OF_PAGE=49static final intConstantEND_OF_STRIPE=50static final intConstantEXTENSION=62protected final HuffmanDecoderstatic final intConstantIMMEDIATE_GENERIC_REFINEMENT_REGION=42static final intConstantIMMEDIATE_GENERIC_REGION=38static final intConstantIMMEDIATE_HALFTONE_REGION=22static final intConstantIMMEDIATE_LOSSLESS_GENERIC_REFINEMENT_REGION=43static final intConstantIMMEDIATE_LOSSLESS_GENERIC_REGION=39static final intConstantIMMEDIATE_LOSSLESS_HALFTONE_REGION=23static final intConstantIMMEDIATE_LOSSLESS_TEXT_REGION=7static final intConstantIMMEDIATE_TEXT_REGION=6static final intConstantINTERMEDIATE_GENERIC_REFINEMENT_REGION=40static final intConstantINTERMEDIATE_GENERIC_REGION=36static final intConstantINTERMEDIATE_HALFTONE_REGION=20static final intConstantINTERMEDIATE_TEXT_REGION=4protected final MMRDecoderstatic final intConstantPAGE_INFORMATION=48static final intConstantPATTERN_DICTIONARY=16static final intConstantPROFILES=52protected SegmentHeaderstatic final intConstantSYMBOL_DICTIONARY=0static final intConstantTABLES=53 -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected shortreadATValue.abstract voidreadSegment.
-
Field Details
-
SYMBOL_DICTIONARY
public static final int SYMBOL_DICTIONARYConstantSYMBOL_DICTIONARY=0- See Also:
-
INTERMEDIATE_TEXT_REGION
public static final int INTERMEDIATE_TEXT_REGIONConstantINTERMEDIATE_TEXT_REGION=4- See Also:
-
IMMEDIATE_TEXT_REGION
public static final int IMMEDIATE_TEXT_REGIONConstantIMMEDIATE_TEXT_REGION=6- See Also:
-
IMMEDIATE_LOSSLESS_TEXT_REGION
public static final int IMMEDIATE_LOSSLESS_TEXT_REGIONConstantIMMEDIATE_LOSSLESS_TEXT_REGION=7- See Also:
-
PATTERN_DICTIONARY
public static final int PATTERN_DICTIONARYConstantPATTERN_DICTIONARY=16- See Also:
-
INTERMEDIATE_HALFTONE_REGION
public static final int INTERMEDIATE_HALFTONE_REGIONConstantINTERMEDIATE_HALFTONE_REGION=20- See Also:
-
IMMEDIATE_HALFTONE_REGION
public static final int IMMEDIATE_HALFTONE_REGIONConstantIMMEDIATE_HALFTONE_REGION=22- See Also:
-
IMMEDIATE_LOSSLESS_HALFTONE_REGION
public static final int IMMEDIATE_LOSSLESS_HALFTONE_REGIONConstantIMMEDIATE_LOSSLESS_HALFTONE_REGION=23- See Also:
-
INTERMEDIATE_GENERIC_REGION
public static final int INTERMEDIATE_GENERIC_REGIONConstantINTERMEDIATE_GENERIC_REGION=36- See Also:
-
IMMEDIATE_GENERIC_REGION
public static final int IMMEDIATE_GENERIC_REGIONConstantIMMEDIATE_GENERIC_REGION=38- See Also:
-
IMMEDIATE_LOSSLESS_GENERIC_REGION
public static final int IMMEDIATE_LOSSLESS_GENERIC_REGIONConstantIMMEDIATE_LOSSLESS_GENERIC_REGION=39- See Also:
-
INTERMEDIATE_GENERIC_REFINEMENT_REGION
public static final int INTERMEDIATE_GENERIC_REFINEMENT_REGIONConstantINTERMEDIATE_GENERIC_REFINEMENT_REGION=40- See Also:
-
IMMEDIATE_GENERIC_REFINEMENT_REGION
public static final int IMMEDIATE_GENERIC_REFINEMENT_REGIONConstantIMMEDIATE_GENERIC_REFINEMENT_REGION=42- See Also:
-
IMMEDIATE_LOSSLESS_GENERIC_REFINEMENT_REGION
public static final int IMMEDIATE_LOSSLESS_GENERIC_REFINEMENT_REGIONConstantIMMEDIATE_LOSSLESS_GENERIC_REFINEMENT_REGION=43- See Also:
-
PAGE_INFORMATION
public static final int PAGE_INFORMATIONConstantPAGE_INFORMATION=48- See Also:
-
END_OF_PAGE
public static final int END_OF_PAGEConstantEND_OF_PAGE=49- See Also:
-
END_OF_STRIPE
public static final int END_OF_STRIPEConstantEND_OF_STRIPE=50- See Also:
-
END_OF_FILE
public static final int END_OF_FILEConstantEND_OF_FILE=51- See Also:
-
PROFILES
public static final int PROFILESConstantPROFILES=52- See Also:
-
TABLES
public static final int TABLESConstantTABLES=53- See Also:
-
EXTENSION
public static final int EXTENSIONConstantEXTENSION=62- See Also:
-
BITMAP
public static final int BITMAPConstantBITMAP=70- See Also:
-
huffmanDecoder
-
arithmeticDecoder
-
mmrDecoder
-
decoder
-
segmentHeader
-
-
Constructor Details
-
Segment
Constructor for Segment.
- Parameters:
streamDecoder- aJBIG2StreamDecoderobject.
-
-
Method Details
-
readATValue
readATValue.
- Returns:
- a short.
- Throws:
IOException- if any.
-
readSegment
readSegment.
- Throws:
IOException- if any.JBIG2Exception- if any.
-