public class ContCodestream extends Object
Constructor and Description |
---|
ContCodestream(Jpeg2000Module module,
DataInputStream dstream,
long length)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
protected Tile |
getCurTile()
Gets the value of curTile.
|
protected Tile |
getTile(int idx)
Gets the tile whose index is idx.
|
List<Tile> |
getTiles()
Returns the list of tiles.
|
protected boolean |
isPPMSeen()
Returns the value of the ppmSeen flag, signifying that
a PPM marker segment has been encountered.
|
boolean |
readCodestream(Codestream cs,
RepInfo info)
Reading a codestream generates various bits of information about
the image.
|
protected void |
setCurTile(Tile tile)
Sets the value of curTile.
|
protected void |
setPPMSeen(boolean b)
Sets the value of the ppmSeen flag, signifying that
a PPM marker segment has been encountered.
|
protected void |
setTileLeft(long tileLeft)
Set the number of bytes remaining in the current tile.
|
public ContCodestream(Jpeg2000Module module, DataInputStream dstream, long length)
length
- Length of the codestream, exclusive of the
box header. If the codestream box has a length
field of 0, pass 0 for this parameter.public boolean readCodestream(Codestream cs, RepInfo info) throws IOException
cs
- The image which this codestream defines.
Must have a non-null codestream
field.info
- The RepInfo object which accumulates information
about the document. Used for reporting errors.IOException
protected void setTileLeft(long tileLeft)
protected Tile getTile(int idx)
protected void setCurTile(Tile tile)
protected void setPPMSeen(boolean b)
protected Tile getCurTile()
protected boolean isPPMSeen()
Copyright © 2008–2017 The Open Preservation Foundation. All rights reserved.