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, writeSegments
debugNumber, debugNumber, getByteOrder, setByteOrder
public void removeXmpXml(File src, OutputStream os) throws ImageReadException, IOException
src
- Image file.os
- OutputStream to write the image to.ImageReadException
IOException
File
,
OutputStream
public void removeXmpXml(byte[] src, OutputStream os) throws ImageReadException, IOException
src
- Byte array containing Jpeg image data.os
- OutputStream to write the image to.ImageReadException
IOException
public void removeXmpXml(InputStream src, OutputStream os) throws ImageReadException, IOException
src
- InputStream containing Jpeg image data.os
- OutputStream to write the image to.ImageReadException
IOException
public void removeXmpXml(ByteSource byteSource, OutputStream os) throws ImageReadException, IOException
byteSource
- ByteSource containing Jpeg image data.os
- OutputStream to write the image to.ImageReadException
IOException
public 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
IOException
ImageWriteException
public 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
IOException
ImageWriteException
public 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
IOException
ImageWriteException
public 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
IOException
ImageWriteException
Copyright © 2007–2019 The Apache Software Foundation. All rights reserved.