Class JpegRewriter.JFIFPieceSegment
java.lang.Object
org.apache.commons.imaging.formats.jpeg.xmp.JpegRewriter.JFIFPiece
org.apache.commons.imaging.formats.jpeg.xmp.JpegRewriter.JFIFPieceSegment
- Enclosing class:
JpegRewriter
-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal intprivate final byte[]private final byte[]private final byte[] -
Constructor Summary
ConstructorsConstructorDescriptionJFIFPieceSegment(int marker, byte[] segmentData) JFIFPieceSegment(int marker, byte[] markerBytes, byte[] segmentLengthBytes, byte[] segmentData) -
Method Summary
Modifier and TypeMethodDescriptionbyte[]booleanbooleanbooleanbooleanbooleantoString()protected voidwrite(OutputStream os)
-
Field Details
-
marker
public final int marker -
markerBytes
private final byte[] markerBytes -
segmentLengthBytes
private final byte[] segmentLengthBytes -
segmentData
private final byte[] segmentData
-
-
Constructor Details
-
JFIFPieceSegment
public JFIFPieceSegment(int marker, byte[] segmentData) -
JFIFPieceSegment
JFIFPieceSegment(int marker, byte[] markerBytes, byte[] segmentLengthBytes, byte[] segmentData)
-
-
Method Details
-
getSegmentData
public byte[] getSegmentData() -
isApp1Segment
public boolean isApp1Segment() -
isAppSegment
public boolean isAppSegment() -
isExifSegment
public boolean isExifSegment() -
isPhotoshopApp13Segment
public boolean isPhotoshopApp13Segment() -
isXmpSegment
public boolean isXmpSegment() -
toString
- Overrides:
toStringin classJpegRewriter.JFIFPiece
-
write
- Specified by:
writein classJpegRewriter.JFIFPiece- Throws:
IOException
-