Package org.javlo.helper
Class ExifHelper
- java.lang.Object
-
- org.javlo.helper.ExifHelper
-
public class ExifHelper extends Object
-
-
Constructor Summary
Constructors Constructor Description ExifHelper()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ImageSize_getExifSize(InputStream in)static voidchangeExifMetadata(File jpegImageFile, File dst)static ImageSizegetExifSize(InputStream in)static voidmain(String[] args)static DatereadDate(File file)static org.apache.commons.imaging.common.ImageMetadatareadMetadata(File file)static StaticInfo.PositionreadPosition(File file)static voidsetExifGPSTag(File jpegImageFile, File dst)static voidwriteMetadata(org.apache.commons.imaging.common.ImageMetadata metadata, File file)
-
-
-
Method Detail
-
readPosition
public static StaticInfo.Position readPosition(File file) throws org.apache.commons.imaging.ImageReadException, IOException
- Throws:
org.apache.commons.imaging.ImageReadExceptionIOException
-
readDate
public static Date readDate(File file) throws org.apache.commons.imaging.ImageReadException, IOException
- Throws:
org.apache.commons.imaging.ImageReadExceptionIOException
-
readMetadata
public static org.apache.commons.imaging.common.ImageMetadata readMetadata(File file) throws org.apache.commons.imaging.ImageReadException, IOException
- Throws:
org.apache.commons.imaging.ImageReadExceptionIOException
-
setExifGPSTag
public static void setExifGPSTag(File jpegImageFile, File dst) throws IOException, org.apache.commons.imaging.ImageReadException, org.apache.commons.imaging.ImageWriteException
- Throws:
IOExceptionorg.apache.commons.imaging.ImageReadExceptionorg.apache.commons.imaging.ImageWriteException
-
changeExifMetadata
public static void changeExifMetadata(File jpegImageFile, File dst) throws IOException, org.apache.commons.imaging.ImageReadException, org.apache.commons.imaging.ImageWriteException
- Throws:
IOExceptionorg.apache.commons.imaging.ImageReadExceptionorg.apache.commons.imaging.ImageWriteException
-
getExifSize
public static ImageSize getExifSize(InputStream in) throws IOException
- Throws:
IOException
-
_getExifSize
public static ImageSize _getExifSize(InputStream in)
-
writeMetadata
public static void writeMetadata(org.apache.commons.imaging.common.ImageMetadata metadata, File file) throws org.apache.commons.imaging.ImageWriteException, org.apache.commons.imaging.ImageReadException, IOException- Throws:
org.apache.commons.imaging.ImageWriteExceptionorg.apache.commons.imaging.ImageReadExceptionIOException
-
main
public static void main(String[] args) throws org.apache.commons.imaging.ImageReadException, IOException
- Throws:
org.apache.commons.imaging.ImageReadExceptionIOException
-
-