|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.ObjectCADI.Common.LogicalTarget.JPEG2000.File.ReadJP2HeaderBox
public class ReadJP2HeaderBox
| Field Summary | |
|---|---|
private boolean |
bppVariation
Boolean indicating if there are components with different bit depths from others |
private int |
CTType
Definition in CADI.Common.LogicalTarget.JPEG2000.Parameters.CODParameters#CTType |
private BufferedDataInputStream |
in
Is an object with the input stream where the main header is read from. |
private boolean |
isExtension
Indicates whether JP2 header box is conform with the Part-1 of the standard or with the Part-2 (extensions) |
private long |
length
|
private boolean[] |
LSSignedComponents
Definition in SIZParameters.signed |
private int[] |
QComponentsBits
Definition in SIZParameters.precision |
private int |
xSize
Definition in SIZParameters.xSize |
private int |
ySize
Definition in SIZParameters.ySize |
private int |
zSize
Definition in SIZParameters.zSize |
| Constructor Summary | |
|---|---|
ReadJP2HeaderBox(BufferedDataInputStream in,
long length)
Constructor. |
|
ReadJP2HeaderBox(BufferedDataInputStream in,
long length,
boolean isExtension)
|
|
| Method Summary | |
|---|---|
boolean |
isBppVariation()
|
void |
list(java.io.PrintStream out)
Prints this Read JP2 Header Box fields out to the specified output stream. |
private void |
readBitsPerComponentBox(long length)
Reads the Bits Per Component Box and retrieves the parameters contained. |
private void |
readChannelDefinitionBox(long length)
Reads the Channel Definition Box and retrives the parameters contained. |
private void |
readColourSpecificationBox(long length)
Reads the Colour Specification Box and retrieves the parameters contained. |
private void |
readComponentMappingBox(long length)
Reads the Component Mapping Box and retrieves the parameters contained. |
private boolean |
readImageHeaderBox()
Reads the Image Header Box and retrieves the parameters contained. |
private void |
readLabelBox(long length)
Reads the Label Box and retrieves the parameters contained. |
private void |
readPaletteBox(long length)
Reads the Palette Box and retrives the parameters contained. |
private void |
readResolutionSuperBox(long length)
Read the resolution box. |
void |
run()
|
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
private BufferedDataInputStream in
private long length
private boolean isExtension
private boolean bppVariation
private int zSize
SIZParameters.zSize
private int ySize
SIZParameters.ySize
private int xSize
SIZParameters.xSize
private boolean[] LSSignedComponents
SIZParameters.signed
private int CTType
CADI.Common.LogicalTarget.JPEG2000.Parameters.CODParameters#CTType
private int[] QComponentsBits
SIZParameters.precision
| Constructor Detail |
|---|
public ReadJP2HeaderBox(BufferedDataInputStream in,
long length)
in - input stream where data will be read from.length -
public ReadJP2HeaderBox(BufferedDataInputStream in,
long length,
boolean isExtension)
in - length - isExtension - | Method Detail |
|---|
public void run()
throws java.io.EOFException,
ErrorException,
java.io.IOException
java.io.IOException
ErrorException
java.io.EOFExceptionpublic boolean isBppVariation()
bppVariation attribute.public java.lang.String toString()
toString in class java.lang.Objectpublic void list(java.io.PrintStream out)
out - an output stream.
private void readLabelBox(long length)
throws ErrorException,
java.io.EOFException,
java.io.IOException
ErrorException - when the header information is ambiguous or incorrect
java.io.EOFException
java.io.IOException
private boolean readImageHeaderBox()
throws ErrorException,
java.io.EOFException,
java.io.IOException
bppVariation
ErrorException - when the header information is ambiguous or incorrect
java.io.EOFException
java.io.IOException
private void readBitsPerComponentBox(long length)
throws ErrorException,
java.io.EOFException,
java.io.IOException
ErrorException - when the header information is ambiguous or incorrect
java.io.EOFException
java.io.IOException
private void readColourSpecificationBox(long length)
throws ErrorException,
java.io.EOFException,
java.io.IOException
length - the length of the box content
ErrorException - when the header information is ambiguous or incorrect
java.io.EOFException
java.io.IOException
private void readPaletteBox(long length)
throws ErrorException,
java.io.IOException
length - the length of the box.
java.io.IOException
ErrorException
private void readComponentMappingBox(long length)
throws ErrorException,
java.io.IOException
length - lenth of the box content.
java.io.IOException
ErrorException
private void readChannelDefinitionBox(long length)
throws ErrorException,
java.io.IOException
length - length of the box content.
ErrorException
java.io.IOException
private void readResolutionSuperBox(long length)
throws ErrorException,
java.io.IOException
length -
java.io.IOException
ErrorException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||