org.jpedal.jbig2.segment
Class Segment

java.lang.Object
  extended by org.jpedal.jbig2.segment.Segment
Direct Known Subclasses:
EndOfStripeSegment, ExtensionSegment, PageInformationSegment, PatternDictionarySegment, RegionSegment, SymbolDictionarySegment

public abstract class Segment
extends java.lang.Object


Field Summary
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 Summary
Segment(JBIG2StreamDecoder streamDecoder)
           
 
Method Summary
 SegmentHeader getSegmentHeader()
           
protected  short readATValue()
           
abstract  void readSegment()
           
 void setSegmentHeader(SegmentHeader segmentHeader)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SYMBOL_DICTIONARY

public static final int SYMBOL_DICTIONARY
See Also:
Constant Field Values

INTERMEDIATE_TEXT_REGION

public static final int INTERMEDIATE_TEXT_REGION
See Also:
Constant Field Values

IMMEDIATE_TEXT_REGION

public static final int IMMEDIATE_TEXT_REGION
See Also:
Constant Field Values

IMMEDIATE_LOSSLESS_TEXT_REGION

public static final int IMMEDIATE_LOSSLESS_TEXT_REGION
See Also:
Constant Field Values

PATTERN_DICTIONARY

public static final int PATTERN_DICTIONARY
See Also:
Constant Field Values

INTERMEDIATE_HALFTONE_REGION

public static final int INTERMEDIATE_HALFTONE_REGION
See Also:
Constant Field Values

IMMEDIATE_HALFTONE_REGION

public static final int IMMEDIATE_HALFTONE_REGION
See Also:
Constant Field Values

IMMEDIATE_LOSSLESS_HALFTONE_REGION

public static final int IMMEDIATE_LOSSLESS_HALFTONE_REGION
See Also:
Constant Field Values

INTERMEDIATE_GENERIC_REGION

public static final int INTERMEDIATE_GENERIC_REGION
See Also:
Constant Field Values

IMMEDIATE_GENERIC_REGION

public static final int IMMEDIATE_GENERIC_REGION
See Also:
Constant Field Values

IMMEDIATE_LOSSLESS_GENERIC_REGION

public static final int IMMEDIATE_LOSSLESS_GENERIC_REGION
See Also:
Constant Field Values

INTERMEDIATE_GENERIC_REFINEMENT_REGION

public static final int INTERMEDIATE_GENERIC_REFINEMENT_REGION
See Also:
Constant Field Values

IMMEDIATE_GENERIC_REFINEMENT_REGION

public static final int IMMEDIATE_GENERIC_REFINEMENT_REGION
See Also:
Constant Field Values

IMMEDIATE_LOSSLESS_GENERIC_REFINEMENT_REGION

public static final int IMMEDIATE_LOSSLESS_GENERIC_REFINEMENT_REGION
See Also:
Constant Field Values

PAGE_INFORMATION

public static final int PAGE_INFORMATION
See Also:
Constant Field Values

END_OF_PAGE

public static final int END_OF_PAGE
See Also:
Constant Field Values

END_OF_STRIPE

public static final int END_OF_STRIPE
See Also:
Constant Field Values

END_OF_FILE

public static final int END_OF_FILE
See Also:
Constant Field Values

PROFILES

public static final int PROFILES
See Also:
Constant Field Values

TABLES

public static final int TABLES
See Also:
Constant Field Values

EXTENSION

public static final int EXTENSION
See Also:
Constant Field Values

BITMAP

public static final int BITMAP
See Also:
Constant Field Values

segmentHeader

protected SegmentHeader segmentHeader

huffmanDecoder

protected HuffmanDecoder huffmanDecoder

arithmeticDecoder

protected ArithmeticDecoder arithmeticDecoder

mmrDecoder

protected MMRDecoder mmrDecoder

decoder

protected JBIG2StreamDecoder decoder
Constructor Detail

Segment

public Segment(JBIG2StreamDecoder streamDecoder)
Method Detail

readATValue

protected short readATValue()
                     throws java.io.IOException
Throws:
java.io.IOException

getSegmentHeader

public SegmentHeader getSegmentHeader()

setSegmentHeader

public void setSegmentHeader(SegmentHeader segmentHeader)

readSegment

public abstract void readSegment()
                          throws java.io.IOException,
                                 JBIG2Exception
Throws:
java.io.IOException
JBIG2Exception