photospace.meta
Class PersisterImpl
java.lang.Object
photospace.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
|
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RDF_EXT
public static final java.lang.String RDF_EXT
- See Also:
- Constant Field Values
PersisterImpl
public PersisterImpl()
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)