public class JpegXmpRewriter extends JpegRewriter
JpegRewriter.JpegSegmentOverflowException| Constructor and Description |
|---|
JpegXmpRewriter() |
| Modifier and Type | Method and Description |
|---|---|
void |
removeXmpXml(byte[] src,
java.io.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,
java.io.OutputStream os)
Reads a Jpeg image, removes all XMP XML (by removing the APP1 segment),
and writes the result to a stream.
|
void |
removeXmpXml(java.io.File src,
java.io.OutputStream os)
Reads a Jpeg image, removes all XMP XML (by removing the APP1 segment),
and writes the result to a stream.
|
void |
removeXmpXml(java.io.InputStream src,
java.io.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,
java.io.OutputStream os,
java.lang.String xmpXml)
Reads a Jpeg image, replaces the XMP XML and writes the result to a
stream.
|
void |
updateXmpXml(ByteSource byteSource,
java.io.OutputStream os,
java.lang.String xmpXml)
Reads a Jpeg image, replaces the XMP XML and writes the result to a
stream.
|
void |
updateXmpXml(java.io.File src,
java.io.OutputStream os,
java.lang.String xmpXml)
Reads a Jpeg image, replaces the XMP XML and writes the result to a
stream.
|
void |
updateXmpXml(java.io.InputStream src,
java.io.OutputStream os,
java.lang.String xmpXml)
Reads a Jpeg image, replaces the XMP XML and writes the result to a
stream.
|
getByteOrder, getDebug, setDebugpublic void removeXmpXml(java.io.File src,
java.io.OutputStream os)
throws ImageReadException,
java.io.IOException
src - Image file.os - OutputStream to write the image to.ImageReadExceptionjava.io.IOExceptionFile,
OutputStreampublic void removeXmpXml(byte[] src,
java.io.OutputStream os)
throws ImageReadException,
java.io.IOException
src - Byte array containing Jpeg image data.os - OutputStream to write the image to.ImageReadExceptionjava.io.IOExceptionpublic void removeXmpXml(java.io.InputStream src,
java.io.OutputStream os)
throws ImageReadException,
java.io.IOException
src - InputStream containing Jpeg image data.os - OutputStream to write the image to.ImageReadExceptionjava.io.IOExceptionpublic void removeXmpXml(ByteSource byteSource, java.io.OutputStream os) throws ImageReadException, java.io.IOException
byteSource - ByteSource containing Jpeg image data.os - OutputStream to write the image to.ImageReadExceptionjava.io.IOExceptionpublic void updateXmpXml(byte[] src,
java.io.OutputStream os,
java.lang.String xmpXml)
throws ImageReadException,
java.io.IOException,
ImageWriteException
src - Byte array containing Jpeg image data.os - OutputStream to write the image to.xmpXml - String containing XMP XML.ImageReadExceptionjava.io.IOExceptionImageWriteExceptionpublic void updateXmpXml(java.io.InputStream src,
java.io.OutputStream os,
java.lang.String xmpXml)
throws ImageReadException,
java.io.IOException,
ImageWriteException
src - InputStream containing Jpeg image data.os - OutputStream to write the image to.xmpXml - String containing XMP XML.ImageReadExceptionjava.io.IOExceptionImageWriteExceptionpublic void updateXmpXml(java.io.File src,
java.io.OutputStream os,
java.lang.String xmpXml)
throws ImageReadException,
java.io.IOException,
ImageWriteException
src - Image file.os - OutputStream to write the image to.xmpXml - String containing XMP XML.ImageReadExceptionjava.io.IOExceptionImageWriteExceptionpublic void updateXmpXml(ByteSource byteSource, java.io.OutputStream os, java.lang.String xmpXml) throws ImageReadException, java.io.IOException, ImageWriteException
byteSource - ByteSource containing Jpeg image data.os - OutputStream to write the image to.xmpXml - String containing XMP XML.ImageReadExceptionjava.io.IOExceptionImageWriteException"Copyright © 2010 - 2020 Adobe Systems Incorporated. All Rights Reserved"