|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--org.w3c.tools.jpeg.JpegHeaders
| Field Summary | |
protected byte[][] |
appcomments
|
protected java.lang.String[] |
comments
|
protected java.io.InputStream |
in
|
protected java.io.File |
jpegfile
|
protected java.util.Vector[] |
vacom
|
protected java.util.Vector |
vcom
|
| Fields inherited from interface org.w3c.tools.jpeg.Jpeg |
M_APP0, M_APP1, M_APP10, M_APP11, M_APP12, M_APP13, M_APP14, M_APP15, M_APP2, M_APP3, M_APP4, M_APP5, M_APP6, M_APP7, M_APP8, M_APP9, M_COM, M_EOI, M_MAX_COM_LENGTH, M_SOF0, M_SOF1, M_SOF10, M_SOF11, M_SOF13, M_SOF14, M_SOF15, M_SOF2, M_SOF3, M_SOF5, M_SOF6, M_SOF7, M_SOF9, M_SOI, M_SOS |
| Constructor Summary | |
JpegHeaders(java.io.File jpegfile)
get the headers out of a file |
|
JpegHeaders(java.io.InputStream in)
get the headers out of a stream |
|
| Method Summary | |
protected int |
firstMarker()
|
java.lang.String[] |
getAppComments()
Deprecated. use getStringAppComments instead |
byte[][] |
getByteArrayAPPComment()
|
java.lang.String[] |
getComments()
Get the comments extracted from the jpeg stream |
java.lang.String[] |
getStringAppComments()
An old default, it gets only the M_APP12 |
java.lang.String[] |
getStringAPPComments(int marker)
Get the application specific values extracted from the jpeg stream |
static void |
main(java.lang.String[] args)
|
protected int |
nextMarker()
|
protected byte[] |
processComment()
|
protected int |
read2bytes()
|
protected int |
scanHeaders()
|
protected void |
skipVariable()
skip the body after a marker |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected java.io.File jpegfile
protected java.io.InputStream in
protected java.util.Vector vcom
protected java.util.Vector[] vacom
protected java.lang.String[] comments
protected byte[][] appcomments
| Constructor Detail |
public JpegHeaders(java.io.File jpegfile)
throws java.io.FileNotFoundException,
JpegException,
java.io.IOException
public JpegHeaders(java.io.InputStream in)
throws JpegException,
java.io.IOException
| Method Detail |
public java.lang.String[] getComments()
public java.lang.String[] getStringAPPComments(int marker)
public java.lang.String[] getStringAppComments()
public byte[][] getByteArrayAPPComment()
public java.lang.String[] getAppComments()
protected int scanHeaders()
throws java.io.IOException,
JpegException
java.io.IOException
JpegException
protected byte[] processComment()
throws java.io.IOException,
JpegException
java.io.IOException
JpegException
protected int read2bytes()
throws java.io.IOException,
JpegException
java.io.IOException
JpegException
protected void skipVariable()
throws java.io.IOException,
JpegException
java.io.IOException
JpegException
protected int firstMarker()
throws java.io.IOException,
JpegException
java.io.IOException
JpegException
protected int nextMarker()
throws java.io.IOException
java.io.IOExceptionpublic static void main(java.lang.String[] args)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||