public class ContCodestream
extends java.lang.Object
Constructor and Description |
---|
ContCodestream(Jpeg2000Module module,
java.io.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.
|
java.util.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, java.io.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 java.io.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.java.io.IOException
public java.util.List<Tile> getTiles()
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()