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

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
              extended by org.apache.sanselan.formats.png.chunks.PNGTextChunk
                  extended by org.apache.sanselan.formats.png.chunks.PNGChunktEXt
All Implemented Interfaces:
BinaryConstants

public class PNGChunktEXt
extends PNGTextChunk


Field Summary
 java.lang.String keyword
           
 java.lang.String text
           
 
Fields inherited from class org.apache.sanselan.formats.png.chunks.PNGChunk
ancillary, bytes, chunkType, crc, isPrivate, length, propertyBits, reserved, 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
PNGChunktEXt(int length, int chunkType, int crc, byte[] bytes)
           
 
Method Summary
 PngText getContents()
           
 java.lang.String getKeyword()
           
 java.lang.String getText()
           
 
Methods inherited from class org.apache.sanselan.formats.png.chunks.PNGChunk
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

keyword

public final java.lang.String keyword

text

public final java.lang.String text
Constructor Detail

PNGChunktEXt

public PNGChunktEXt(int length,
                    int chunkType,
                    int crc,
                    byte[] bytes)
             throws ImageReadException,
                    java.io.IOException
Throws:
ImageReadException
java.io.IOException
Method Detail

getKeyword

public java.lang.String getKeyword()
Specified by:
getKeyword in class PNGTextChunk
Returns:
Returns the keyword.

getText

public java.lang.String getText()
Specified by:
getText in class PNGTextChunk
Returns:
Returns the text.

getContents

public PngText getContents()
Specified by:
getContents in class PNGTextChunk


Copyright © 2007-2009. All Rights Reserved.