|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.ObjectCADI.Common.LogicalTarget.JPEG2000.File.ReadJPEG2KFileFormat
public class ReadJPEG2KFileFormat
This class is only used to read which is the JPEG2000 file format (jpc, jp2, jpx, or jpk).
| 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. |
| Constructor Summary | |
|---|---|
ReadJPEG2KFileFormat(BufferedDataInputStream in)
Constructor. |
|
| Method Summary | |
|---|---|
int |
getFileFormat()
Returns the fileFormat attribute. |
private void |
readFileTypeBox(long length)
Reads the File Type Box and checks its conformity. |
private boolean |
readSignatureBox()
Reads the Signature Box and checks its conformity. |
int |
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 int fileFormat
JP2LogicalTarget.fileFormatType
| Constructor Detail |
|---|
public ReadJPEG2KFileFormat(BufferedDataInputStream in)
in - input stream where data will be read from.| Method Detail |
|---|
public int run()
throws java.io.EOFException,
ErrorException,
java.io.IOException
fileFormat attribute.
java.io.IOException
ErrorException
java.io.EOFExceptionpublic int getFileFormat()
fileFormat attribute.
fileFormat attribute.
private boolean readSignatureBox()
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 readFileTypeBox(long length)
throws ErrorException,
java.io.EOFException,
java.io.IOException
length -
ErrorException - when the header information is ambiguous or incorrect
java.io.EOFException
java.io.IOException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||