org.apache.sanselan.formats.jpeg.segments
Class App2Segment

java.lang.Object
  extended by org.apache.sanselan.common.BinaryFileFunctions
      extended by org.apache.sanselan.common.BinaryFileParser
          extended by org.apache.sanselan.formats.jpeg.segments.Segment
              extended by org.apache.sanselan.formats.jpeg.segments.GenericSegment
                  extended by org.apache.sanselan.formats.jpeg.segments.APPNSegment
                      extended by org.apache.sanselan.formats.jpeg.segments.App2Segment
All Implemented Interfaces:
java.lang.Comparable, BinaryConstants

public class App2Segment
extends APPNSegment
implements java.lang.Comparable


Field Summary
 int cur_marker
           
 byte[] icc_bytes
           
 int num_markers
           
 
Fields inherited from class org.apache.sanselan.formats.jpeg.segments.GenericSegment
bytes
 
Fields inherited from class org.apache.sanselan.formats.jpeg.segments.Segment
length, marker
 
Fields inherited from class org.apache.sanselan.common.BinaryFileFunctions
debug
 
Fields inherited from interface org.apache.sanselan.common.BinaryConstants
BYTE_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 Summary
App2Segment(int marker, byte[] segmentData)
           
App2Segment(int marker, int marker_length, java.io.InputStream is2)
           
 
Method Summary
 int compareTo(java.lang.Object o)
           
 
Methods inherited from class org.apache.sanselan.formats.jpeg.segments.APPNSegment
getDescription
 
Methods inherited from class org.apache.sanselan.formats.jpeg.segments.GenericSegment
dump, dump
 
Methods inherited from class org.apache.sanselan.formats.jpeg.segments.Segment
getSegmentType, toString
 
Methods inherited from class org.apache.sanselan.common.BinaryFileParser
byteArrayHasPrefix, convertByteArrayToInt, convertByteArrayToInt, convertByteArrayToShort, convertByteArrayToShort, getByteOrder, int2ToByteArray, read2Bytes, read3Bytes, read4Bytes, setByteOrder, setByteOrder
 
Methods inherited from class org.apache.sanselan.common.BinaryFileFunctions
CharsToQuad, 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, writeIntInToByteArray
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

icc_bytes

public final byte[] icc_bytes

cur_marker

public final int cur_marker

num_markers

public final int num_markers
Constructor Detail

App2Segment

public App2Segment(int marker,
                   byte[] segmentData)
            throws ImageReadException,
                   java.io.IOException
Throws:
ImageReadException
java.io.IOException

App2Segment

public App2Segment(int marker,
                   int marker_length,
                   java.io.InputStream is2)
            throws ImageReadException,
                   java.io.IOException
Throws:
ImageReadException
java.io.IOException
Method Detail

compareTo

public int compareTo(java.lang.Object o)
Specified by:
compareTo in interface java.lang.Comparable


Copyright © 2007-2009. All Rights Reserved.