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

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.JFIFSegment
All Implemented Interfaces:
BinaryConstants, JpegConstants

public class JFIFSegment
extends Segment
implements JpegConstants


Field Summary
 int densityUnits
           
 int jfifMajorVersion
           
 int jfifMinorVersion
           
 int thumbnailSize
           
 int xDensity
           
 int xThumbnail
           
 int yDensity
           
 int yThumbnail
           
 
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.formats.jpeg.JpegConstants
CONST_8BIM, EOI, EXIF_IDENTIFIER_CODE, icc_profile_label, JFIF0_SIGNATURE, JFIF0_SIGNATURE_ALTERNATIVE, JFIFMarker, JPEG_APP0, JPEG_APP0_Marker, JPEG_APP1_Marker, JPEG_APP13_Marker, JPEG_APP14_Marker, JPEG_APP15_Marker, JPEG_APP2_Marker, MARKERS, MAX_SEGMENT_SIZE, PHOTOSHOP_IDENTIFICATION_STRING, SOF0Marker, SOF10Marker, SOF11Marker, SOF12Marker, SOF13Marker, SOF14Marker, SOF15Marker, SOF1Marker, SOF2Marker, SOF3Marker, SOF4Marker, SOF5Marker, SOF6Marker, SOF7Marker, SOF8Marker, SOF9Marker, SOI, SOS_Marker, XMP_IDENTIFIER
 
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
JFIFSegment(int marker, byte[] segmentData)
           
JFIFSegment(int marker, int marker_length, java.io.InputStream is)
           
 
Method Summary
 java.lang.String getDescription()
           
 
Methods inherited from class org.apache.sanselan.formats.jpeg.segments.Segment
dump, 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

jfifMajorVersion

public final int jfifMajorVersion

jfifMinorVersion

public final int jfifMinorVersion

densityUnits

public final int densityUnits

xDensity

public final int xDensity

yDensity

public final int yDensity

xThumbnail

public final int xThumbnail

yThumbnail

public final int yThumbnail

thumbnailSize

public final int thumbnailSize
Constructor Detail

JFIFSegment

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

JFIFSegment

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

getDescription

public java.lang.String getDescription()
Specified by:
getDescription in class Segment


Copyright © 2007-2009. All Rights Reserved.