Top Description Fields Constructors Methods
org.apache.pdfbox.jbig2.segments

public Class RegionSegmentInformation

extends Object
implements SegmentData
Class Inheritance
All Implemented Interfaces
org.apache.pdfbox.jbig2.SegmentData
Imports
java.io.IOException, org.apache.pdfbox.jbig2.SegmentData, .SegmentHeader, org.apache.pdfbox.jbig2.err.IntegerMaxValueException, .InvalidHeaderValueException, org.apache.pdfbox.jbig2.io.SubInputStream, org.apache.pdfbox.jbig2.util.CombinationOperator

This class represents the "Region segment information" field, 7.4.1 (page 50).
Every region segment data starts with this part.

Field Summary

Modifier and TypeField and Description
private int
bitmapHeight

Region segment bitmap height, 7.4.1.2

private int
bitmapWidth

Region segment bitmap width, 7.4.1.1

private CombinationOperator
combinationOperator

Region segment flags, 7.4.1.5

private SubInputStream
private int
xLocation

Region segment bitmap X location, 7.4.1.3

private int
yLocation

Region segment bitmap Y location, 7.4.1.4

Constructor Summary

AccessConstructor and Description
public
public

Method Summary

Modifier and TypeMethod and Description
public int
public int
public CombinationOperator
public int
public int
public void
init(SegmentHeader
- The segments' header (to make referred-to segments available in data part).
header
,
SubInputStream
- Wrapped ImageInputStream into SubInputStream.
sis
)

Implements org.apache.pdfbox.jbig2.SegmentData.init.

Parse the stream and read information of header.

public void
private void
public void
setBitmapHeight(final int bitmapHeight)

public void
setBitmapWidth(final int bitmapWidth)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

bitmapHeightback to summary
private int bitmapHeight

Region segment bitmap height, 7.4.1.2

bitmapWidthback to summary
private int bitmapWidth

Region segment bitmap width, 7.4.1.1

combinationOperatorback to summary
private CombinationOperator combinationOperator

Region segment flags, 7.4.1.5

subInputStreamback to summary
private SubInputStream subInputStream
xLocationback to summary
private int xLocation

Region segment bitmap X location, 7.4.1.3

yLocationback to summary
private int yLocation

Region segment bitmap Y location, 7.4.1.4

Constructor Detail

RegionSegmentInformationback to summary
public RegionSegmentInformation(SubInputStream subInputStream)
RegionSegmentInformationback to summary
public RegionSegmentInformation()

Method Detail

getBitmapHeightback to summary
public int getBitmapHeight()
getBitmapWidthback to summary
public int getBitmapWidth()
getCombinationOperatorback to summary
public CombinationOperator getCombinationOperator()
getXLocationback to summary
public int getXLocation()
getYLocationback to summary
public int getYLocation()
initback to summary
public void init(SegmentHeader header, SubInputStream sis) throws InvalidHeaderValueException, IntegerMaxValueException, IOException

Implements org.apache.pdfbox.jbig2.SegmentData.init.

Doc from org.apache.pdfbox.jbig2.SegmentData.init.

Parse the stream and read information of header.

Parameters
header:SegmentHeader

- The segments' header (to make referred-to segments available in data part).

sis:SubInputStream

- Wrapped ImageInputStream into SubInputStream.

Exceptions
InvalidHeaderValueException:
if the segment header value is invalid
IntegerMaxValueException:
if the maximum value limit of an integer is exceeded
IOException:
if an underlying IO operation fails
parseHeaderback to summary
public void parseHeader() throws IOException
readCombinationOperatorback to summary
private void readCombinationOperator() throws IOException
setBitmapHeightback to summary
public void setBitmapHeight(final int bitmapHeight)
setBitmapWidthback to summary
public void setBitmapWidth(final int bitmapWidth)