Class RegionSegmentInformation
java.lang.Object
org.apache.pdfbox.jbig2.segments.RegionSegmentInformation
- All Implemented Interfaces:
SegmentData
This class represents the "Region segment information" field, 7.4.1 (page 50).
Every region segment data starts with this part.
Every region segment data starts with this part.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintintintintvoidinit(SegmentHeader header, SubInputStream sis) Parse the stream and read information of header.voidvoidsetBitmapHeight(int bitmapHeight) voidsetBitmapWidth(int bitmapWidth)
-
Constructor Details
-
RegionSegmentInformation
-
RegionSegmentInformation
public RegionSegmentInformation()
-
-
Method Details
-
parseHeader
- Throws:
IOException
-
init
public void init(SegmentHeader header, SubInputStream sis) throws InvalidHeaderValueException, IntegerMaxValueException, IOException Description copied from interface:SegmentDataParse the stream and read information of header.- Specified by:
initin interfaceSegmentData- Parameters:
header- - The segments' header (to make referred-to segments available in data part).sis- - WrappedImageInputStreamintoSubInputStream.- Throws:
InvalidHeaderValueException- if the segment header value is invalidIntegerMaxValueException- if the maximum value limit of an integer is exceededIOException- if an underlying IO operation fails
-
setBitmapWidth
public void setBitmapWidth(int bitmapWidth) -
getBitmapWidth
public int getBitmapWidth() -
setBitmapHeight
public void setBitmapHeight(int bitmapHeight) -
getBitmapHeight
public int getBitmapHeight() -
getXLocation
public int getXLocation() -
getYLocation
public int getYLocation() -
getCombinationOperator
-