Package org.apache.pdfbox.jbig2.segments
Class PageInformation
java.lang.Object
org.apache.pdfbox.jbig2.segments.PageInformation
- All Implemented Interfaces:
SegmentData
This class represents the segment type "Page information", 7.4.8 (page 73).
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate int
Page bitmap height, four byte, 7.4.8.2private int
Page bitmap width, four byte, 7.4.8.1private CombinationOperator
private boolean
Page segment flags, one byte, 7.4.8.5private short
private boolean
private boolean
Page striping information, two byte, 7.4.8.6private short
private boolean
private boolean
private int
Page X resolution, four byte, 7.4.8.3private int
Page Y resolution, four byte, 7.4.8.4private SubInputStream
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected int
protected int
short
int
short
int
int
int
getWidth()
void
init
(SegmentHeader header, SubInputStream sis) Parse the stream and read information of header.boolean
boolean
boolean
boolean
boolean
private void
private void
private void
private void
private void
private void
private void
private void
private void
private void
private void
-
Field Details
-
subInputStream
-
bitmapWidth
private int bitmapWidthPage bitmap width, four byte, 7.4.8.1 -
bitmapHeight
private int bitmapHeightPage bitmap height, four byte, 7.4.8.2 -
resolutionX
private int resolutionXPage X resolution, four byte, 7.4.8.3 -
resolutionY
private int resolutionYPage Y resolution, four byte, 7.4.8.4 -
combinationOperatorOverrideAllowed
private boolean combinationOperatorOverrideAllowedPage segment flags, one byte, 7.4.8.5 -
combinationOperator
-
requiresAuxiliaryBuffer
private boolean requiresAuxiliaryBuffer -
defaultPixelValue
private short defaultPixelValue -
mightContainRefinements
private boolean mightContainRefinements -
isLossless
private boolean isLossless -
isStriped
private boolean isStripedPage striping information, two byte, 7.4.8.6 -
maxStripeSize
private short maxStripeSize
-
-
Constructor Details
-
PageInformation
public PageInformation()
-
-
Method Details
-
parseHeader
-
readResolution
- Throws:
IOException
-
readCombinationOperatorOverrideAllowed
- Throws:
IOException
-
readRequiresAuxiliaryBuffer
- Throws:
IOException
-
readCombinationOperator
- Throws:
IOException
-
readDefaultPixelvalue
- Throws:
IOException
-
readContainsRefinement
- Throws:
IOException
-
readIsLossless
- Throws:
IOException
-
readIsStriped
- Throws:
IOException
-
readMaxStripeSize
- Throws:
IOException
-
readWidthAndHeight
- Throws:
IOException
-
init
public void init(SegmentHeader header, SubInputStream sis) throws InvalidHeaderValueException, IOException Description copied from interface:SegmentData
Parse the stream and read information of header.- Specified by:
init
in interfaceSegmentData
- Parameters:
header
- - The segments' header (to make referred-to segments available in data part).sis
- - WrappedImageInputStream
intoSubInputStream
.- Throws:
InvalidHeaderValueException
- if the segment header value is invalidIOException
- if an underlying IO operation fails
-
getWidth
public int getWidth() -
getHeight
public int getHeight() -
getResolutionX
public int getResolutionX() -
getResolutionY
public int getResolutionY() -
getDefaultPixelValue
public short getDefaultPixelValue() -
isCombinationOperatorOverrideAllowed
public boolean isCombinationOperatorOverrideAllowed() -
getCombinationOperator
-
isStriped
public boolean isStriped() -
getMaxStripeSize
public short getMaxStripeSize() -
isAuxiliaryBufferRequired
public boolean isAuxiliaryBufferRequired() -
mightContainRefinements
public boolean mightContainRefinements() -
isLossless
public boolean isLossless() -
getBitmapWidth
protected int getBitmapWidth() -
getBitmapHeight
protected int getBitmapHeight()
-