public class PatternDictionary extends Object implements Dictionary
| Constructor and Description |
|---|
PatternDictionary() |
| Modifier and Type | Method and Description |
|---|---|
ArrayList<Bitmap> |
getDictionary()
This method decodes a pattern dictionary segment and returns an array of
Bitmap s. |
protected int |
getGrayMax() |
protected short |
getHdpHeight() |
protected short |
getHdpWidth() |
protected byte |
getHdTemplate() |
void |
init(SegmentHeader header,
SubInputStream sis)
Parse the stream and read information of header.
|
protected boolean |
isMMREncoded() |
public ArrayList<Bitmap> getDictionary() throws IOException, InvalidHeaderValueException
Bitmap s. Each of this
Bitmaps is a pattern.getDictionary in interface DictionaryBitmaps as result of the decoding procedure.IOException - if an underlying IO operation failsInvalidHeaderValueException - if the segment header value is invalidpublic void init(SegmentHeader header, SubInputStream sis) throws InvalidHeaderValueException, IOException
SegmentDatainit in interface SegmentDataheader - - The segments' header (to make referred-to segments available in data part).sis - - Wrapped ImageInputStream into SubInputStream.InvalidHeaderValueException - if the segment header value is invalidIOException - if an underlying IO operation failsprotected boolean isMMREncoded()
protected byte getHdTemplate()
protected short getHdpWidth()
protected short getHdpHeight()
protected int getGrayMax()
Copyright © 2018 The Apache Software Foundation. All rights reserved.