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, setDebug
public 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.ImageReadException
java.io.IOException
File
,
OutputStream
public 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.ImageReadException
java.io.IOException
public 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.ImageReadException
java.io.IOException
public 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.ImageReadException
java.io.IOException
public 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.ImageReadException
java.io.IOException
ImageWriteException
public 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.ImageReadException
java.io.IOException
ImageWriteException
public 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.ImageReadException
java.io.IOException
ImageWriteException
public 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.ImageReadException
java.io.IOException
ImageWriteException
"Copyright © 2010 - 2020 Adobe Systems Incorporated. All Rights Reserved"