public abstract class Segment
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
protected ArithmeticDecoder |
arithmeticDecoder |
static int |
BITMAP |
protected JBIG2StreamDecoder |
decoder |
static int |
END_OF_FILE |
static int |
END_OF_PAGE |
static int |
END_OF_STRIPE |
static int |
EXTENSION |
protected HuffmanDecoder |
huffmanDecoder |
static int |
IMMEDIATE_GENERIC_REFINEMENT_REGION |
static int |
IMMEDIATE_GENERIC_REGION |
static int |
IMMEDIATE_HALFTONE_REGION |
static int |
IMMEDIATE_LOSSLESS_GENERIC_REFINEMENT_REGION |
static int |
IMMEDIATE_LOSSLESS_GENERIC_REGION |
static int |
IMMEDIATE_LOSSLESS_HALFTONE_REGION |
static int |
IMMEDIATE_LOSSLESS_TEXT_REGION |
static int |
IMMEDIATE_TEXT_REGION |
static int |
INTERMEDIATE_GENERIC_REFINEMENT_REGION |
static int |
INTERMEDIATE_GENERIC_REGION |
static int |
INTERMEDIATE_HALFTONE_REGION |
static int |
INTERMEDIATE_TEXT_REGION |
protected MMRDecoder |
mmrDecoder |
static int |
PAGE_INFORMATION |
static int |
PATTERN_DICTIONARY |
static int |
PROFILES |
protected SegmentHeader |
segmentHeader |
static int |
SYMBOL_DICTIONARY |
static int |
TABLES |
| Constructor and Description |
|---|
Segment(JBIG2StreamDecoder streamDecoder) |
| Modifier and Type | Method and Description |
|---|---|
SegmentHeader |
getSegmentHeader() |
protected short |
readATValue() |
abstract void |
readSegment() |
void |
setSegmentHeader(SegmentHeader segmentHeader) |
public static final int SYMBOL_DICTIONARY
public static final int INTERMEDIATE_TEXT_REGION
public static final int IMMEDIATE_TEXT_REGION
public static final int IMMEDIATE_LOSSLESS_TEXT_REGION
public static final int PATTERN_DICTIONARY
public static final int INTERMEDIATE_HALFTONE_REGION
public static final int IMMEDIATE_HALFTONE_REGION
public static final int IMMEDIATE_LOSSLESS_HALFTONE_REGION
public static final int INTERMEDIATE_GENERIC_REGION
public static final int IMMEDIATE_GENERIC_REGION
public static final int IMMEDIATE_LOSSLESS_GENERIC_REGION
public static final int INTERMEDIATE_GENERIC_REFINEMENT_REGION
public static final int IMMEDIATE_GENERIC_REFINEMENT_REGION
public static final int IMMEDIATE_LOSSLESS_GENERIC_REFINEMENT_REGION
public static final int PAGE_INFORMATION
public static final int END_OF_PAGE
public static final int END_OF_STRIPE
public static final int END_OF_FILE
public static final int PROFILES
public static final int TABLES
public static final int EXTENSION
public static final int BITMAP
protected SegmentHeader segmentHeader
protected HuffmanDecoder huffmanDecoder
protected ArithmeticDecoder arithmeticDecoder
protected MMRDecoder mmrDecoder
protected JBIG2StreamDecoder decoder
public Segment(JBIG2StreamDecoder streamDecoder)
protected short readATValue()
throws java.io.IOException
java.io.IOExceptionpublic SegmentHeader getSegmentHeader()
public void setSegmentHeader(SegmentHeader segmentHeader)
public abstract void readSegment()
throws java.io.IOException,
JBIG2Exception
java.io.IOExceptionJBIG2Exception