public class JpegRewriter extends BinaryFileParser implements JpegConstants
See the source of the XmpXmlUpdateExample class for example usage.
org.apache.sanselan.sampleUsage.WriteXmpXmlExample| Modifier and Type | Class and Description |
|---|---|
protected static class |
JpegRewriter.JFIFPiece |
protected static class |
JpegRewriter.JFIFPieceImageData |
protected static class |
JpegRewriter.JFIFPieces |
protected static class |
JpegRewriter.JFIFPieceSegment |
static class |
JpegRewriter.JpegSegmentOverflowException |
debugCONST_8BIM, EOI, EXIF_IDENTIFIER_CODE, icc_profile_label, JFIF0_SIGNATURE, JFIF0_SIGNATURE_ALTERNATIVE, JFIFMarker, JPEG_APP0, JPEG_APP0_Marker, JPEG_APP1_Marker, JPEG_APP13_Marker, JPEG_APP14_Marker, JPEG_APP15_Marker, JPEG_APP2_Marker, MARKERS, MAX_SEGMENT_SIZE, PHOTOSHOP_IDENTIFICATION_STRING, SOF0Marker, SOF10Marker, SOF11Marker, SOF12Marker, SOF13Marker, SOF14Marker, SOF15Marker, SOF1Marker, SOF2Marker, SOF3Marker, SOF4Marker, SOF5Marker, SOF6Marker, SOF7Marker, SOF8Marker, SOF9Marker, SOI, SOS_Marker, XMP_IDENTIFIERBYTE_ORDER_BIG_ENDIAN, BYTE_ORDER_INTEL, BYTE_ORDER_LEAST_SIGNIFICANT_BYTE, BYTE_ORDER_LITTLE_ENDIAN, BYTE_ORDER_LSB, BYTE_ORDER_MOST_SIGNIFICANT_BYTE, BYTE_ORDER_MOTOROLA, BYTE_ORDER_MSB, BYTE_ORDER_NETWORK| Constructor and Description |
|---|
JpegRewriter()
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected JpegRewriter.JFIFPieces |
analyzeJFIF(ByteSource byteSource) |
protected List |
filterSegments(List segments,
org.apache.sanselan.formats.jpeg.xmp.JpegRewriter.SegmentFilter filter) |
protected List |
filterSegments(List segments,
org.apache.sanselan.formats.jpeg.xmp.JpegRewriter.SegmentFilter filter,
boolean reverse) |
protected List |
findPhotoshopApp13Segments(List segments) |
protected List |
insertAfterLastAppSegments(List segments,
List newSegments) |
protected List |
insertBeforeFirstAppSegments(List segments,
List newSegments) |
protected List |
removeExifSegments(List segments) |
protected List |
removePhotoshopApp13Segments(List segments) |
protected List |
removeXmpSegments(List segments) |
protected void |
writeSegments(OutputStream os,
List segments) |
byteArrayHasPrefix, convertByteArrayToInt, convertByteArrayToInt, convertByteArrayToShort, convertByteArrayToShort, getByteOrder, int2ToByteArray, read2Bytes, read3Bytes, read4Bytes, setByteOrder, setByteOrderCharsToQuad, compareByteArrays, compareByteArrays, compareBytes, compareBytes, convertByteArrayToDouble, convertByteArrayToDouble, convertByteArrayToDoubleArray, convertByteArrayToFloat, convertByteArrayToFloat, convertByteArrayToFloatArray, convertByteArrayToInt, convertByteArrayToInt, convertByteArrayToIntArray, convertByteArrayToRational, convertByteArrayToRational, convertByteArrayToRationalArray, convertByteArrayToShort, convertByteArrayToShort, convertByteArrayToShortArray, convertDoubleArrayToByteArray, convertDoubleToByteArray, convertFloatArrayToByteArray, convertFloatToByteArray, convertIntArrayToByteArray, convertIntArrayToRationalArray, convertRationalArrayToByteArray, convertRationalToByteArray, convertShortArrayToByteArray, convertShortToByteArray, copyStreamToStream, debugByteArray, debugNumber, debugNumber, debugNumber, debugNumber, debugNumberArray, findNull, findNull, getBytearrayHead, getByteArrayTail, getDebug, getRAFBytes, getStreamBytes, head, int2ToByteArray, printByteBits, printCharQuad, printCharQuad, read2Bytes, read3Bytes, read4Bytes, readAndVerifyBytes, readAndVerifyBytes, readByte, readBytearray, readByteArray, readByteArray, readBytes, readRandomBytes, scanForByte, setDebug, skipBytes, skipBytes, slice, startsWith, tail, writeIntInToByteArraypublic JpegRewriter()
protected JpegRewriter.JFIFPieces analyzeJFIF(ByteSource byteSource) throws ImageReadException, IOException
ImageReadExceptionIOExceptionprotected List filterSegments(List segments, org.apache.sanselan.formats.jpeg.xmp.JpegRewriter.SegmentFilter filter)
protected List filterSegments(List segments, org.apache.sanselan.formats.jpeg.xmp.JpegRewriter.SegmentFilter filter, boolean reverse)
protected List insertBeforeFirstAppSegments(List segments, List newSegments) throws ImageWriteException
ImageWriteExceptionprotected List insertAfterLastAppSegments(List segments, List newSegments) throws ImageWriteException
ImageWriteExceptionprotected void writeSegments(OutputStream os, List segments) throws ImageWriteException, IOException
ImageWriteExceptionIOExceptionCopyright © 2007-2012. All Rights Reserved.