org.w3c.rdfpic.imagedrv
Class JpegMeta

java.lang.Object
  |
  +--org.w3c.rdfpic.imagedrv.JpegMeta

public class JpegMeta
extends java.lang.Object
implements ImgMeta

A class to get and send meta data to JPEG files


Field Summary
(package private)  ProtocolHandler ph
           
 
Constructor Summary
JpegMeta(ProtocolHandler ph)
          Initialize using the given ProtocolHandler.
 
Method Summary
 boolean canRead()
           
 boolean canWrite()
           
 java.lang.String read()
          Reads the textual comment embedded in the JPEG.
 void write(java.lang.String comment)
          Writes a textual comment, embedding it into the JPEG.
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

ph

ProtocolHandler ph
Constructor Detail

JpegMeta

public JpegMeta(ProtocolHandler ph)
         throws PHException,
                UnknownImgTypeException
Initialize using the given ProtocolHandler.
Method Detail

read

public java.lang.String read()
                      throws java.io.IOException
Reads the textual comment embedded in the JPEG.
Specified by:
read in interface ImgMeta

write

public void write(java.lang.String comment)
           throws java.io.IOException
Writes a textual comment, embedding it into the JPEG.
Specified by:
write in interface ImgMeta

canRead

public boolean canRead()
Specified by:
canRead in interface ImgMeta

canWrite

public boolean canWrite()
Specified by:
canWrite in interface ImgMeta