|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.ObjectCADI.Common.LogicalTarget.JPEG2000.File.ReadJP2File
public class ReadJP2File
This class reads a JP2 file.
| Field Summary | |
|---|---|
private int |
fileFormat
Definition in JP2LogicalTarget.fileFormatType |
private BufferedDataInputStream |
in
Is an object with the input stream where the main header is read from. |
private boolean |
jp2HeaderBoxFound
Indicates whether the JP2 header box has been found. |
private JPCParameters |
jpcParameters
Is an object where the main header are saved. |
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. |
| Constructor Summary | |
|---|---|
ReadJP2File(BufferedDataInputStream in)
Constructor. |
|
| Method Summary | |
|---|---|
int |
getFileFormat()
Returns the fileFormat attribute. |
JPCParameters |
getJPCParameters()
Returns the jpcParameters attribute. |
long |
getMainHeaderInitialPos()
Returns the mainHeaderInitialPos attribute. |
int |
getMainHeaderLength()
Returns the mainHeaderLength attribute. |
private void |
readContiguousCodestreamBox(long length)
Reads the Contiguous Codestream Box and checks its conformity. |
private void |
readIntPropertyBox(long length)
|
private void |
readUUIDBox(long length)
|
private void |
readUUIDInfoBox(long length)
|
private void |
readXMLBox(long length)
|
void |
run()
Reads the boxes of the JP2 headers and checks their conformity. |
| 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
private long mainHeaderInitialPos
private int mainHeaderLength
private int fileFormat
JP2LogicalTarget.fileFormatType
private boolean jp2HeaderBoxFound
| Constructor Detail |
|---|
public ReadJP2File(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 - when the header information is ambiguous or incorrect
java.io.EOFException
java.io.IOExceptionpublic int getFileFormat()
fileFormat attribute.
fileFormat attribute.public JPCParameters getJPCParameters()
jpcParameters attribute.
jpcParameters attribute.public long getMainHeaderInitialPos()
mainHeaderInitialPos attribute.
mainHeaderInitialPos attribute.public int getMainHeaderLength()
mainHeaderLength attribute.
mainHeaderLength attribute.
private void readContiguousCodestreamBox(long length)
throws ErrorException
ErrorException - when the header information is ambiguous or incorrect
private void readIntPropertyBox(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 readUUIDInfoBox(long length)
throws java.io.IOException
length -
java.io.IOException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||