public class JBIG2SegmentReader extends Object
Modifier and Type | Class and Description |
---|---|
static class |
JBIG2SegmentReader.JBIG2Page
Inner class that holds information about a JBIG2 page.
|
static class |
JBIG2SegmentReader.JBIG2Segment
Inner class that holds information about a JBIG2 segment.
|
Constructor and Description |
---|
JBIG2SegmentReader(RandomAccessFileOrArray ra) |
Modifier and Type | Method and Description |
---|---|
static byte[] |
copyByteArray(byte[] b) |
byte[] |
getGlobal(boolean for_embedding) |
JBIG2SegmentReader.JBIG2Page |
getPage(int page) |
int |
getPageHeight(int i) |
int |
getPageWidth(int i) |
int |
numberOfPages() |
void |
read() |
(package private) void |
readFileHeader() |
(package private) JBIG2SegmentReader.JBIG2Segment |
readHeader() |
(package private) void |
readSegment(JBIG2SegmentReader.JBIG2Segment s) |
String |
toString() |
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
private final SortedMap<Integer,JBIG2SegmentReader.JBIG2Segment> segments
private final SortedMap<Integer,JBIG2SegmentReader.JBIG2Page> pages
private final SortedSet<JBIG2SegmentReader.JBIG2Segment> globals
private RandomAccessFileOrArray ra
private boolean sequential
private boolean number_of_pages_known
private int number_of_pages
private boolean read
public JBIG2SegmentReader(RandomAccessFileOrArray ra) throws IOException
IOException
public static byte[] copyByteArray(byte[] b)
public void read() throws IOException
IOException
void readSegment(JBIG2SegmentReader.JBIG2Segment s) throws IOException
IOException
JBIG2SegmentReader.JBIG2Segment readHeader() throws IOException
IOException
void readFileHeader() throws IOException
IOException
public int numberOfPages()
public int getPageHeight(int i)
public int getPageWidth(int i)
public JBIG2SegmentReader.JBIG2Page getPage(int page)
public byte[] getGlobal(boolean for_embedding)
WebARTS Library Licensed Under the GNU - General Public License. Other Libraries licensed under their respective Open Source Licenses