org.apache.sanselan.formats.png.chunks
Class PNGChunk

java.lang.Object
  extended by org.apache.sanselan.common.BinaryFileFunctions
      extended by org.apache.sanselan.common.BinaryFileParser
          extended by org.apache.sanselan.formats.png.chunks.PNGChunk
All Implemented Interfaces:
BinaryConstants
Direct Known Subclasses:
PNGChunkgAMA, PNGChunkiCCP, PNGChunkIDAT, PNGChunkIHDR, PNGChunkpHYs, PNGChunkPLTE, PNGTextChunk

public class PNGChunk
extends BinaryFileParser


Field Summary
 boolean ancillary
           
 byte[] bytes
           
 int chunkType
           
 int crc
           
 boolean isPrivate
           
 int length
           
 boolean[] propertyBits
           
 boolean reserved
           
 boolean safeToCopy
           
 
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
PNGChunk(int Length, int ChunkType, int CRC, byte[] bytes)
           
 
Method Summary
protected  java.io.ByteArrayInputStream getDataStream()
           
 
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, toString, wait, wait, wait
 

Field Detail

length

public final int length

chunkType

public final int chunkType

crc

public final int crc

bytes

public final byte[] bytes

propertyBits

public final boolean[] propertyBits

ancillary

public final boolean ancillary

isPrivate

public final boolean isPrivate

reserved

public final boolean reserved

safeToCopy

public final boolean safeToCopy
Constructor Detail

PNGChunk

public PNGChunk(int Length,
                int ChunkType,
                int CRC,
                byte[] bytes)
Method Detail

getDataStream

protected java.io.ByteArrayInputStream getDataStream()


Copyright © 2007-2009. All Rights Reserved.