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 int
private 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[]
boolean
boolean
boolean
boolean
boolean
toString()
protected void
write
(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
-
toString
- Overrides:
toString
in classJpegRewriter.JFIFPiece
-
write
- Specified by:
write
in classJpegRewriter.JFIFPiece
- Throws:
IOException
-
isApp1Segment
public boolean isApp1Segment() -
isAppSegment
public boolean isAppSegment() -
isExifSegment
public boolean isExifSegment() -
isPhotoshopApp13Segment
public boolean isPhotoshopApp13Segment() -
isXmpSegment
public boolean isXmpSegment() -
getSegmentData
public byte[] getSegmentData()
-