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.ImageReadExceptionIOExceptionFile,
OutputStreampublic void removeXmpXml(byte[] src,
OutputStream os)
throws ImageReadException,
IOException
src - Byte array containing Jpeg image data.os - OutputStream to write the image to.ImageReadExceptionIOExceptionpublic void removeXmpXml(InputStream src, OutputStream os) throws ImageReadException, IOException
src - InputStream containing Jpeg image data.os - OutputStream to write the image to.ImageReadExceptionIOExceptionpublic void removeXmpXml(ByteSource byteSource, OutputStream os) throws ImageReadException, IOException
byteSource - ByteSource containing Jpeg image data.os - OutputStream to write the image to.ImageReadExceptionIOExceptionpublic 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.ImageReadExceptionIOExceptionImageWriteExceptionpublic 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.ImageReadExceptionIOExceptionImageWriteExceptionpublic 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.ImageReadExceptionIOExceptionImageWriteExceptionpublic 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.ImageReadExceptionIOExceptionImageWriteExceptionCopyright © 2007–2019 The Apache Software Foundation. All rights reserved.