photospace.meta
Class PersisterImpl

java.lang.Object
  extended byphotospace.meta.PersisterImpl
All Implemented Interfaces:
Persister, java.io.Serializable

public class PersisterImpl
extends java.lang.Object
implements java.io.Serializable, Persister

See Also:
Serialized Form

Field Summary
static java.lang.String RDF_EXT
           
 
Constructor Summary
PersisterImpl()
           
 
Method Summary
 com.drew.metadata.Metadata getExif(java.io.File jpeg)
           
 com.drew.metadata.Metadata getExif(java.io.InputStream in)
           
 Meta getMeta(java.io.File file)
           
 Meta getMeta(java.lang.String path)
           
 java.io.File getMetaFile(java.io.File file)
           
 java.lang.String getPath(java.io.File file)
           
 com.hp.hpl.jena.rdf.model.Model getRdf(java.io.File file)
           
 void remove(Meta meta)
           
 void removeRdf(java.io.File file)
           
 void saveMeta(java.io.File file, Meta meta)
           
 void saveMeta(java.lang.String path, Meta meta)
           
 void setFilesystem(FileSystem filesystem)
           
 void setStoringInJpeg(boolean storingInJpeg)
           
 void setTranslator(Translator translator)
           
 void writeJpegComment(java.io.File jpeg, java.lang.String rdf)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

RDF_EXT

public static final java.lang.String RDF_EXT
See Also:
Constant Field Values
Constructor Detail

PersisterImpl

public PersisterImpl()
Method Detail

getMeta

public Meta getMeta(java.lang.String path)
             throws java.io.IOException,
                    com.drew.imaging.jpeg.JpegProcessingException,
                    com.drew.metadata.MetadataException,
                    java.text.ParseException
Specified by:
getMeta in interface Persister
Throws:
java.io.IOException
com.drew.imaging.jpeg.JpegProcessingException
com.drew.metadata.MetadataException
java.text.ParseException

getMeta

public Meta getMeta(java.io.File file)
             throws java.io.IOException,
                    com.drew.imaging.jpeg.JpegProcessingException,
                    com.drew.metadata.MetadataException,
                    java.text.ParseException
Specified by:
getMeta in interface Persister
Throws:
java.io.IOException
com.drew.imaging.jpeg.JpegProcessingException
com.drew.metadata.MetadataException
java.text.ParseException

getMetaFile

public java.io.File getMetaFile(java.io.File file)
Specified by:
getMetaFile in interface Persister

getPath

public java.lang.String getPath(java.io.File file)
Specified by:
getPath in interface Persister

saveMeta

public void saveMeta(java.lang.String path,
                     Meta meta)
              throws java.io.IOException,
                     java.io.FileNotFoundException
Specified by:
saveMeta in interface Persister
Throws:
java.io.IOException
java.io.FileNotFoundException

saveMeta

public void saveMeta(java.io.File file,
                     Meta meta)
              throws java.io.IOException,
                     java.io.FileNotFoundException
Specified by:
saveMeta in interface Persister
Throws:
java.io.IOException
java.io.FileNotFoundException

writeJpegComment

public void writeJpegComment(java.io.File jpeg,
                             java.lang.String rdf)
                      throws java.io.IOException
Specified by:
writeJpegComment in interface Persister
Throws:
java.io.IOException

getExif

public com.drew.metadata.Metadata getExif(java.io.File jpeg)
                                   throws java.io.FileNotFoundException,
                                          java.io.IOException,
                                          com.drew.imaging.jpeg.JpegProcessingException
Specified by:
getExif in interface Persister
Throws:
java.io.FileNotFoundException
java.io.IOException
com.drew.imaging.jpeg.JpegProcessingException

getExif

public com.drew.metadata.Metadata getExif(java.io.InputStream in)
                                   throws com.drew.imaging.jpeg.JpegProcessingException
Specified by:
getExif in interface Persister
Throws:
com.drew.imaging.jpeg.JpegProcessingException

remove

public void remove(Meta meta)
            throws java.io.IOException,
                   com.drew.imaging.jpeg.JpegProcessingException
Specified by:
remove in interface Persister
Throws:
java.io.IOException
com.drew.imaging.jpeg.JpegProcessingException

removeRdf

public void removeRdf(java.io.File file)
               throws java.io.IOException,
                      com.drew.imaging.jpeg.JpegProcessingException
Specified by:
removeRdf in interface Persister
Throws:
java.io.IOException
com.drew.imaging.jpeg.JpegProcessingException

getRdf

public com.hp.hpl.jena.rdf.model.Model getRdf(java.io.File file)
                                       throws java.io.IOException,
                                              com.drew.imaging.jpeg.JpegProcessingException
Specified by:
getRdf in interface Persister
Throws:
java.io.IOException
com.drew.imaging.jpeg.JpegProcessingException

setStoringInJpeg

public void setStoringInJpeg(boolean storingInJpeg)

setFilesystem

public void setFilesystem(FileSystem filesystem)

setTranslator

public void setTranslator(Translator translator)