public class JpegXmpRewriter extends JpegRewriter
JpegRewriter.JFIFPiece, JpegRewriter.JFIFPieces, JpegRewriter.JFIFPieceSegment, JpegRewriter.JpegSegmentOverflowException| Constructor and Description |
|---|
JpegXmpRewriter() |
| Modifier and Type | Method and Description |
|---|---|
void |
removeXmpXml(byte[] src,
OutputStream os)
Reads a Jpeg image, removes all XMP XML (by removing the APP1 segment),
and writes the result to a stream.
|
void |
removeXmpXml(ByteSource byteSource,
OutputStream os)
Reads a Jpeg image, removes all XMP XML (by removing the APP1 segment),
and writes the result to a stream.
|
void |
removeXmpXml(File src,
OutputStream os)
Reads a Jpeg image, removes all XMP XML (by removing the APP1 segment),
and writes the result to a stream.
|
void |
removeXmpXml(InputStream src,
OutputStream os)
Reads a Jpeg image, removes all XMP XML (by removing the APP1 segment),
and writes the result to a stream.
|
void |
updateXmpXml(byte[] src,
OutputStream os,
String xmpXml)
Reads a Jpeg image, replaces the XMP XML and writes the result to a
stream.
|
void |
updateXmpXml(ByteSource byteSource,
OutputStream os,
String xmpXml)
Reads a Jpeg image, replaces the XMP XML and writes the result to a
stream.
|
void |
updateXmpXml(File src,
OutputStream os,
String xmpXml)
Reads a Jpeg image, replaces the XMP XML and writes the result to a
stream.
|
void |
updateXmpXml(InputStream src,
OutputStream os,
String xmpXml)
Reads a Jpeg image, replaces the XMP XML and writes the result to a
stream.
|
analyzeJFIF, filterSegments, filterSegments, findPhotoshopApp13Segments, insertAfterLastAppSegments, insertBeforeFirstAppSegments, removeExifSegments, removePhotoshopApp13Segments, removeXmpSegments, writeSegmentsdebugNumber, debugNumber, getByteOrder, setByteOrderpublic void removeXmpXml(File src, OutputStream os) throws ImageReadException, IOException
src - Image file.os - OutputStream to write the image to.ImageReadException - if it fails to read the JFIF segmentsIOException - if it fails to read or write the data from the segmentsFile,
OutputStreampublic void removeXmpXml(byte[] src,
OutputStream os)
throws ImageReadException,
IOException
src - Byte array containing Jpeg image data.os - OutputStream to write the image to.ImageReadException - if it fails to read the JFIF segmentsIOException - if it fails to read or write the data from the segmentspublic void removeXmpXml(InputStream src, OutputStream os) throws ImageReadException, IOException
src - InputStream containing Jpeg image data.os - OutputStream to write the image to.ImageReadException - if it fails to read the JFIF segmentsIOException - if it fails to read or write the data from the segmentspublic void removeXmpXml(ByteSource byteSource, OutputStream os) throws ImageReadException, IOException
byteSource - ByteSource containing Jpeg image data.os - OutputStream to write the image to.ImageReadException - if it fails to read the JFIF segmentsIOException - if it fails to read or write the data from the segmentspublic void updateXmpXml(byte[] src,
OutputStream os,
String xmpXml)
throws ImageReadException,
IOException,
ImageWriteException
src - Byte array containing Jpeg image data.os - OutputStream to write the image to.xmpXml - String containing XMP XML.ImageReadException - if it fails to read the JFIF segmentsIOException - if it fails to read or write the data from the segmentsImageWriteException - if it fails to write the JFIF segmentspublic void updateXmpXml(InputStream src, OutputStream os, String xmpXml) throws ImageReadException, IOException, ImageWriteException
src - InputStream containing Jpeg image data.os - OutputStream to write the image to.xmpXml - String containing XMP XML.ImageReadException - if it fails to read the JFIF segmentsIOException - if it fails to read or write the data from the segmentsImageWriteException - if it fails to write the JFIF segmentspublic void updateXmpXml(File src, OutputStream os, String xmpXml) throws ImageReadException, IOException, ImageWriteException
src - Image file.os - OutputStream to write the image to.xmpXml - String containing XMP XML.ImageReadException - if it fails to read the JFIF segmentsIOException - if it fails to read or write the data from the segmentsImageWriteException - if it fails to write the JFIF segmentspublic void updateXmpXml(ByteSource byteSource, OutputStream os, String xmpXml) throws ImageReadException, IOException, ImageWriteException
byteSource - ByteSource containing Jpeg image data.os - OutputStream to write the image to.xmpXml - String containing XMP XML.ImageReadException - if it fails to read the JFIF segmentsIOException - if it fails to read or write the data from the segmentsImageWriteException - if it fails to write the JFIF segmentsCopyright © 2007–2020 The Apache Software Foundation. All rights reserved.