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

public Class PageInformation

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.InvalidHeaderValueException, org.apache.pdfbox.jbig2.io.SubInputStream, org.apache.pdfbox.jbig2.util.CombinationOperator

This class represents the segment type "Page information", 7.4.8 (page 73).

Field Summary

Modifier and TypeField and Description
private int
bitmapHeight

Page bitmap height, four byte, 7.4.8.2

private int
bitmapWidth

Page bitmap width, four byte, 7.4.8.1

private CombinationOperator
private boolean
combinationOperatorOverrideAllowed

Page segment flags, one byte, 7.4.8.5

private short
private boolean
private boolean
isStriped

Page striping information, two byte, 7.4.8.6

private short
private boolean
private boolean
private int
resolutionX

Page X resolution, four byte, 7.4.8.3

private int
resolutionY

Page Y resolution, four byte, 7.4.8.4

private SubInputStream

Constructor Summary

AccessConstructor and Description
public

Method Summary

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

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

Parse the stream and read information of header.

public boolean
public boolean
public boolean
public boolean
public boolean
private void
private void
private void
private void
private void
private void
private void
private void
private void
private void
private void
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

bitmapHeightback to summary
private int bitmapHeight

Page bitmap height, four byte, 7.4.8.2

bitmapWidthback to summary
private int bitmapWidth

Page bitmap width, four byte, 7.4.8.1

combinationOperatorback to summary
private CombinationOperator combinationOperator
combinationOperatorOverrideAllowedback to summary
private boolean combinationOperatorOverrideAllowed

Page segment flags, one byte, 7.4.8.5

defaultPixelValueback to summary
private short defaultPixelValue
isLosslessback to summary
private boolean isLossless
isStripedback to summary
private boolean isStriped

Page striping information, two byte, 7.4.8.6

maxStripeSizeback to summary
private short maxStripeSize
mightContainRefinementsback to summary
private boolean mightContainRefinements
requiresAuxiliaryBufferback to summary
private boolean requiresAuxiliaryBuffer
resolutionXback to summary
private int resolutionX

Page X resolution, four byte, 7.4.8.3

resolutionYback to summary
private int resolutionY

Page Y resolution, four byte, 7.4.8.4

subInputStreamback to summary
private SubInputStream subInputStream

Constructor Detail

PageInformationback to summary
public PageInformation()

Method Detail

getBitmapHeightback to summary
protected int getBitmapHeight()
getBitmapWidthback to summary
protected int getBitmapWidth()
getCombinationOperatorback to summary
public CombinationOperator getCombinationOperator()
getDefaultPixelValueback to summary
public short getDefaultPixelValue()
getHeightback to summary
public int getHeight()
getMaxStripeSizeback to summary
public short getMaxStripeSize()
getResolutionXback to summary
public int getResolutionX()
getResolutionYback to summary
public int getResolutionY()
getWidthback to summary
public int getWidth()
initback to summary
public void init(final SegmentHeader header, final SubInputStream sis) throws InvalidHeaderValueException, 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
IOException:
if an underlying IO operation fails
isAuxiliaryBufferRequiredback to summary
public boolean isAuxiliaryBufferRequired()
isCombinationOperatorOverrideAllowedback to summary
public boolean isCombinationOperatorOverrideAllowed()
isLosslessback to summary
public boolean isLossless()
isStripedback to summary
public boolean isStriped()
mightContainRefinementsback to summary
public boolean mightContainRefinements()
parseHeaderback to summary
private void parseHeader() throws IOException, InvalidHeaderValueException
readCombinationOperatorback to summary
private void readCombinationOperator() throws IOException
readCombinationOperatorOverrideAllowedback to summary
private void readCombinationOperatorOverrideAllowed() throws IOException
readContainsRefinementback to summary
private void readContainsRefinement() throws IOException
readDefaultPixelvalueback to summary
private void readDefaultPixelvalue() throws IOException
readIsLosslessback to summary
private void readIsLossless() throws IOException
readIsStripedback to summary
private void readIsStriped() throws IOException
readMaxStripeSizeback to summary
private void readMaxStripeSize() throws IOException
readRequiresAuxiliaryBufferback to summary
private void readRequiresAuxiliaryBuffer() throws IOException
readResolutionback to summary
private void readResolution() throws IOException
readWidthAndHeightback to summary
private void readWidthAndHeight() throws IOException