public class JpegIptcRewriter extends JpegRewriter
JpegRewriter.JFIFPiece, JpegRewriter.JFIFPieces, JpegRewriter.JFIFPieceSegment, JpegRewriter.JpegSegmentOverflowException| Constructor and Description |
|---|
JpegIptcRewriter() |
| Modifier and Type | Method and Description |
|---|---|
void |
removeIPTC(byte[] src,
OutputStream os)
Reads a Jpeg image, removes all IPTC data from the App13 segment but
leaves the other data in that segment (if present) unchanged and writes
the result to a stream.
|
void |
removeIPTC(byte[] src,
OutputStream os,
boolean removeSegment)
Reads a Jpeg image, removes all IPTC data from the App13 segment but
leaves the other data in that segment (if present) unchanged (unless
removeSegment is true) and writes the result to a stream.
|
void |
removeIPTC(ByteSource byteSource,
OutputStream os)
Reads a Jpeg image, removes all IPTC data from the App13 segment but
leaves the other data in that segment (if present) unchanged and writes
the result to a stream.
|
void |
removeIPTC(ByteSource byteSource,
OutputStream os,
boolean removeSegment)
Reads a Jpeg image, removes all IPTC data from the App13 segment but
leaves the other data in that segment (if present) unchanged (unless
removeSegment is true) and writes the result to a stream.
|
void |
removeIPTC(File src,
OutputStream os)
Reads a Jpeg image, removes all IPTC data from the App13 segment but
leaves the other data in that segment (if present) unchanged and writes
the result to a stream.
|
void |
removeIPTC(File src,
OutputStream os,
boolean removeSegment)
Reads a Jpeg image, removes all IPTC data from the App13 segment but
leaves the other data in that segment (if present) unchanged (unless
removeSegment is true) and writes the result to a stream.
|
void |
removeIPTC(InputStream src,
OutputStream os)
Reads a Jpeg image, removes all IPTC data from the App13 segment but
leaves the other data in that segment (if present) unchanged and writes
the result to a stream.
|
void |
removeIPTC(InputStream src,
OutputStream os,
boolean removeSegment)
Reads a Jpeg image, removes all IPTC data from the App13 segment but
leaves the other data in that segment (if present) unchanged (unless
removeSegment is true) and writes the result to a stream.
|
void |
writeIPTC(byte[] src,
OutputStream os,
PhotoshopApp13Data newData)
Reads a Jpeg image, replaces the IPTC data in the App13 segment but
leaves the other data in that segment (if present) unchanged and writes
the result to a stream.
|
void |
writeIPTC(ByteSource byteSource,
OutputStream os,
PhotoshopApp13Data newData)
Reads a Jpeg image, replaces the IPTC data in the App13 segment but
leaves the other data in that segment (if present) unchanged and writes
the result to a stream.
|
void |
writeIPTC(File src,
OutputStream os,
PhotoshopApp13Data newData)
Reads a Jpeg image, replaces the IPTC data in the App13 segment but
leaves the other data in that segment (if present) unchanged and writes
the result to a stream.
|
void |
writeIPTC(InputStream src,
OutputStream os,
PhotoshopApp13Data newData)
Reads a Jpeg image, replaces the IPTC data in the App13 segment but
leaves the other data in that segment (if present) unchanged and writes
the result to a stream.
|
analyzeJFIF, filterSegments, filterSegments, findPhotoshopApp13Segments, insertAfterLastAppSegments, insertBeforeFirstAppSegments, removeExifSegments, removePhotoshopApp13Segments, removeXmpSegments, writeSegmentsdebugNumber, debugNumber, getByteOrder, setByteOrderpublic void removeIPTC(File src, OutputStream os) throws ImageReadException, IOException, ImageWriteException
src - Image file.os - OutputStream to write the image to.ImageReadExceptionIOExceptionImageWriteExceptionFile,
OutputStreampublic void removeIPTC(File src, OutputStream os, boolean removeSegment) throws ImageReadException, IOException, ImageWriteException
src - Image file.os - OutputStream to write the image to.removeSegment - Remove the App13 segment.ImageReadExceptionIOExceptionImageWriteExceptionFile,
OutputStreampublic void removeIPTC(byte[] src,
OutputStream os)
throws ImageReadException,
IOException,
ImageWriteException
src - Byte array containing Jpeg image data.os - OutputStream to write the image to.ImageReadExceptionIOExceptionImageWriteExceptionpublic void removeIPTC(byte[] src,
OutputStream os,
boolean removeSegment)
throws ImageReadException,
IOException,
ImageWriteException
src - Byte array containing Jpeg image data.os - OutputStream to write the image to.removeSegment - Remove the App13 segment.ImageReadExceptionIOExceptionImageWriteExceptionpublic void removeIPTC(InputStream src, OutputStream os) throws ImageReadException, IOException, ImageWriteException
src - InputStream containing Jpeg image data.os - OutputStream to write the image to.ImageReadExceptionIOExceptionImageWriteExceptionpublic void removeIPTC(InputStream src, OutputStream os, boolean removeSegment) throws ImageReadException, IOException, ImageWriteException
src - InputStream containing Jpeg image data.os - OutputStream to write the image to.removeSegment - Remove the App13 segment.ImageReadExceptionIOExceptionImageWriteExceptionpublic void removeIPTC(ByteSource byteSource, OutputStream os) throws ImageReadException, IOException, ImageWriteException
byteSource - ByteSource containing Jpeg image data.os - OutputStream to write the image to.ImageReadExceptionIOExceptionImageWriteExceptionpublic void removeIPTC(ByteSource byteSource, OutputStream os, boolean removeSegment) throws ImageReadException, IOException, ImageWriteException
byteSource - ByteSource containing Jpeg image data.os - OutputStream to write the image to.removeSegment - Remove the App13 segment.ImageReadExceptionIOExceptionImageWriteExceptionpublic void writeIPTC(byte[] src,
OutputStream os,
PhotoshopApp13Data newData)
throws ImageReadException,
IOException,
ImageWriteException
src - Byte array containing Jpeg image data.os - OutputStream to write the image to.newData - structure containing IPTC data.ImageReadExceptionIOExceptionImageWriteExceptionpublic void writeIPTC(InputStream src, OutputStream os, PhotoshopApp13Data newData) throws ImageReadException, IOException, ImageWriteException
src - InputStream containing Jpeg image data.os - OutputStream to write the image to.newData - structure containing IPTC data.ImageReadExceptionIOExceptionImageWriteExceptionpublic void writeIPTC(File src, OutputStream os, PhotoshopApp13Data newData) throws ImageReadException, IOException, ImageWriteException
src - Image file.os - OutputStream to write the image to.newData - structure containing IPTC data.ImageReadExceptionIOExceptionImageWriteExceptionpublic void writeIPTC(ByteSource byteSource, OutputStream os, PhotoshopApp13Data newData) throws ImageReadException, IOException, ImageWriteException
byteSource - ByteSource containing Jpeg image data.os - OutputStream to write the image to.newData - structure containing IPTC data.ImageReadExceptionIOExceptionImageWriteExceptionCopyright © 2007–2019 The Apache Software Foundation. All rights reserved.