Class JpegRewriter
java.lang.Object
org.apache.commons.imaging.common.BinaryFileParser
org.apache.commons.imaging.formats.jpeg.xmp.JpegRewriter
- Direct Known Subclasses:
- JpegIptcRewriter,- JpegXmpRewriter
Interface for Exif write/update/remove functionality for Jpeg/JFIF images.
- 
Nested Class SummaryNested ClassesModifier and TypeClassDescriptionprotected static classprotected static classprotected static class
- 
Constructor SummaryConstructorsConstructorDescriptionConstructs a new instance with the default, big-endian, byte order.
- 
Method SummaryModifier and TypeMethodDescriptionprotected JpegRewriter.JFIFPiecesanalyzeJfif(ByteSource byteSource) protected <T extends JpegRewriter.JFIFPiece>
 List<T> filterSegments(List<T> segments, org.apache.commons.imaging.formats.jpeg.xmp.JpegRewriter.SegmentFilter filter) protected <T extends JpegRewriter.JFIFPiece>
 List<T> filterSegments(List<T> segments, org.apache.commons.imaging.formats.jpeg.xmp.JpegRewriter.SegmentFilter filter, boolean reverse) protected <T extends JpegRewriter.JFIFPiece>
 List<T> findPhotoshopApp13Segments(List<T> segments) protected <T extends JpegRewriter.JFIFPiece,U extends JpegRewriter.JFIFPiece> 
 List<JpegRewriter.JFIFPiece> insertAfterLastAppSegments(List<T> segments, List<U> newSegments) protected <T extends JpegRewriter.JFIFPiece,U extends JpegRewriter.JFIFPiece> 
 List<JpegRewriter.JFIFPiece> insertBeforeFirstAppSegments(List<T> segments, List<U> newSegments) protected <T extends JpegRewriter.JFIFPiece>
 List<T> removeExifSegments(List<T> segments) protected <T extends JpegRewriter.JFIFPiece>
 List<T> removePhotoshopApp13Segments(List<T> segments) protected <T extends JpegRewriter.JFIFPiece>
 List<T> removeXmpSegments(List<T> segments) protected voidwriteSegments(OutputStream outputStream, List<? extends JpegRewriter.JFIFPiece> segments) Methods inherited from class org.apache.commons.imaging.common.BinaryFileParserdebugNumber, debugNumber, getByteOrder, setByteOrder
- 
Constructor Details- 
JpegRewriterpublic JpegRewriter()Constructs a new instance with the default, big-endian, byte order.Whether a file contains an image based on its file extension. 
 
- 
- 
Method Details- 
analyzeJfifprotected JpegRewriter.JFIFPieces analyzeJfif(ByteSource byteSource) throws ImagingException, IOException - Throws:
- ImagingException
- IOException
 
- 
filterSegmentsprotected <T extends JpegRewriter.JFIFPiece> List<T> filterSegments(List<T> segments, org.apache.commons.imaging.formats.jpeg.xmp.JpegRewriter.SegmentFilter filter) 
- 
filterSegmentsprotected <T extends JpegRewriter.JFIFPiece> List<T> filterSegments(List<T> segments, org.apache.commons.imaging.formats.jpeg.xmp.JpegRewriter.SegmentFilter filter, boolean reverse) 
- 
findPhotoshopApp13Segments
- 
insertAfterLastAppSegmentsprotected <T extends JpegRewriter.JFIFPiece,U extends JpegRewriter.JFIFPiece> List<JpegRewriter.JFIFPiece> insertAfterLastAppSegments(List<T> segments, List<U> newSegments) throws ImagingException - Throws:
- ImagingException
 
- 
insertBeforeFirstAppSegmentsprotected <T extends JpegRewriter.JFIFPiece,U extends JpegRewriter.JFIFPiece> List<JpegRewriter.JFIFPiece> insertBeforeFirstAppSegments(List<T> segments, List<U> newSegments) throws ImagingException - Throws:
- ImagingException
 
- 
removeExifSegments
- 
removePhotoshopApp13Segments
- 
removeXmpSegments
- 
writeSegmentsprotected void writeSegments(OutputStream outputStream, List<? extends JpegRewriter.JFIFPiece> segments) throws IOException - Throws:
- IOException
 
 
-