|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.ObjectCADI.Common.LogicalTarget.JPEG2000.File.ReadJPXFile
public class ReadJPXFile
Read a JPX file format (ISO/IEC 15444-2 annex M)
| 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 JPCParameters |
jpcParameters
Is an object where the main header are saved. |
private boolean[] |
LSSignedComponents
Definition in SIZParameters.signed |
private long |
mainHeaderInitialPos
Is the file pointer to the first byte of the main header. |
private int |
mainHeaderLength
Is the length of the main header. |
private int[] |
QComponentsBits
Definition in SIZParameters.precision |
(package private) boolean |
readerRequirementsTypeFound
|
private int |
xSize
Definition in SIZParameters.xSize |
private int |
ySize
Definition in SIZParameters.ySize |
private int |
zSize
Definition in SIZParameters.zSize |
| Constructor Summary | |
|---|---|
ReadJPXFile(BufferedDataInputStream in)
Constructor. |
|
| Method Summary | |
|---|---|
JPCParameters |
getJPCParameters()
Returns the jpcParameters attribute. |
long |
getMainHeaderInitialPos()
Returns the mainHeaderInitialPos attribute. |
int |
getMainHeaderLength()
Returns the mainHeaderLength attribute. |
private void |
readAssociationBox(long length)
|
private void |
readBinaryFilterBox(long length)
|
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 |
readCodestreamHeaderBox(long length)
|
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 void |
readCompositionBox(long length)
|
private void |
readCompositionLayerHeaderBox(long length)
|
private void |
readContiguousCodestreamBox(long length)
|
private void |
readCrossReferenceBox(long length)
|
private void |
readDataReferenceBox(long length)
|
private void |
readDesiredReproductionsBox(long length)
|
private void |
readDigitalSignatureBox(long length)
|
private void |
readFragmentTableBox(long length)
|
private void |
readFreeBox(long length)
|
private boolean |
readImageHeaderBox()
Reads the Image Header Box and retrieves the parameters contained. |
private void |
readIntellectualPropertyRightsBox(long length)
|
private void |
readLabelBox(long length)
Reads the Label Box and retrieves the parameters contained. |
private void |
readMediaDataBox(long length)
|
private void |
readMPEG7BinayrBox(long length)
|
private void |
readPaletteBox(long length)
Reads the Palette Box and retrives the parameters contained. |
private void |
readRequirementsBox(long length)
|
private void |
readResolutionSuperBox(long length)
Read the resolution box. |
private void |
readROIDescriptionBox(long length)
|
private void |
readUUIDBox(long length)
|
private void |
readUUIDInfoBox(long length)
|
private void |
readXMLBox(long length)
|
void |
run()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private BufferedDataInputStream in
private JPCParameters jpcParameters
boolean readerRequirementsTypeFound
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
private long mainHeaderInitialPos
private int mainHeaderLength
| Constructor Detail |
|---|
public ReadJPXFile(BufferedDataInputStream in)
in - input stream where data will be read from.| Method Detail |
|---|
public void run()
throws ErrorException,
java.io.EOFException,
java.io.IOException
ErrorException
java.io.EOFException
java.io.IOExceptionpublic JPCParameters getJPCParameters()
jpcParameters attribute.
jpcParameters attribute.public long getMainHeaderInitialPos()
mainHeaderInitialPos attribute.
mainHeaderInitialPos attribute.public int getMainHeaderLength()
mainHeaderLength attribute.
mainHeaderLength attribute.
private void readRequirementsBox(long length)
throws java.io.IOException
length -
java.io.IOException
private void readCodestreamHeaderBox(long length)
throws java.io.IOException,
ErrorException
length -
java.io.IOException
ErrorException
private void readCompositionLayerHeaderBox(long length)
throws java.io.IOException
length -
java.io.IOException
private void readDataReferenceBox(long length)
throws java.io.IOException
length -
java.io.IOException
private void readFragmentTableBox(long length)
throws java.io.IOException
length -
java.io.IOException
private void readContiguousCodestreamBox(long length)
throws java.io.IOException,
ErrorException
length -
java.io.IOException
ErrorException
private void readMediaDataBox(long length)
throws java.io.IOException
length -
java.io.IOException
private void readCompositionBox(long length)
throws java.io.IOException
length -
java.io.IOException
private void readDesiredReproductionsBox(long length)
throws java.io.IOException
length -
java.io.IOException
private void readROIDescriptionBox(long length)
throws java.io.IOException
length -
java.io.IOException
private void readCrossReferenceBox(long length)
throws java.io.IOException
length -
java.io.IOException
private void readAssociationBox(long length)
throws java.io.IOException
length -
java.io.IOException
private void readBinaryFilterBox(long length)
throws java.io.IOException
length -
java.io.IOException
private void readDigitalSignatureBox(long length)
throws java.io.IOException
length -
java.io.IOException
private void readMPEG7BinayrBox(long length)
throws java.io.IOException
length -
java.io.IOException
private void readFreeBox(long length)
throws java.io.IOException
length -
java.io.IOException
private void readXMLBox(long length)
throws java.io.IOException
length -
java.io.IOException
private void readUUIDBox(long length)
throws java.io.IOException
length -
java.io.IOException
private void readIntellectualPropertyRightsBox(long length)
throws java.io.IOException
length -
java.io.IOException
private void readUUIDInfoBox(long length)
throws java.io.IOException
length -
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 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 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 | ||||||||