@Override
            public boolean visitSegment(final int marker, final byte[] markerBytes, final int segmentLength, final byte[] segmentLengthBytes,
                    final byte[] segmentData) throws ImagingException, IOException {
                final JFIFPiece piece = new JFIFPieceSegment(marker, markerBytes, segmentLengthBytes, segmentData);
                pieces.add(piece);
                segmentPieces.add(piece);

                return true;
            }
Constructs a new instance with the default, big-endian, byte order.
<p>
Whether a file contains an image based on its file extension.
</p>
src/main/java/org/apache/commons/imaging/formats/jpeg/xmp/JpegRewriter.java