private byte[] assembleSegments(final List<App2Segment> segments) throws ImagingException {
        try {
            return assembleSegments(segments, false);
        } catch (final ImagingException e) {
            return assembleSegments(segments, true);
        }
    }
Constructs a new instance with the big-endian byte order.
src/main/java/org/apache/commons/imaging/formats/jpeg/JpegImageParser.java