public class PngImageParser extends ImageParser implements PngConstants
debugCOLOR_TYPE_GREYSCALE, COLOR_TYPE_GREYSCALE_WITH_ALPHA, COLOR_TYPE_INDEXED_COLOR, COLOR_TYPE_TRUE_COLOR, COLOR_TYPE_TRUE_COLOR_WITH_ALPHA, COMPRESSION_DEFLATE_INFLATE, COMPRESSION_TYPE_INFLATE_DEFLATE, FILTER_METHOD_ADAPTIVE, FILTER_TYPE_AVERAGE, FILTER_TYPE_NONE, FILTER_TYPE_PAETH, FILTER_TYPE_SUB, FILTER_TYPE_UP, gAMA, iCCP, IDAT, IDAT_CHUNK_TYPE, IEND, IEND_CHUNK_TYPE, IHDR, IHDR_CHUNK_TYPE, INTERLACE_METHOD_ADAM7, INTERLACE_METHOD_NONE, iTXt, iTXt_CHUNK_TYPE, PARAM_KEY_PNG_BIT_DEPTH, PARAM_KEY_PNG_FORCE_INDEXED_COLOR, PARAM_KEY_PNG_FORCE_TRUE_COLOR, PARAM_KEY_PNG_TEXT_CHUNKS, pHYs, PLTE, PLTE_CHUNK_TYPE, PNG_Signature, sRGB, tEXt, tEXt_CHUNK_TYPE, tRNS, XMP_KEYWORD, zTXt, zTXt_CHUNK_TYPEBUFFERED_IMAGE_FACTORY, PARAM_KEY_COMPRESSION, PARAM_KEY_FILENAME, PARAM_KEY_FORMAT, PARAM_KEY_READ_THUMBNAILS, PARAM_KEY_STRICT, PARAM_KEY_VERBOSE, PARAM_KEY_XMP_XMLBYTE_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 and Description |
|---|
PngImageParser() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
dumpImageFile(PrintWriter pw,
ByteSource byteSource) |
byte[] |
embedICCProfile(byte[] image,
byte[] profile) |
boolean |
embedICCProfile(File src,
File dst,
byte[] profile) |
protected String[] |
getAcceptedExtensions() |
protected ImageFormat[] |
getAcceptedTypes() |
BufferedImage |
getBufferedImage(ByteSource byteSource,
Map params) |
String |
getDefaultExtension() |
byte[] |
getICCProfileBytes(ByteSource byteSource,
Map params) |
ImageInfo |
getImageInfo(ByteSource byteSource,
Map params) |
Dimension |
getImageSize(ByteSource byteSource,
Map params) |
IImageMetadata |
getMetadata(ByteSource byteSource,
Map params) |
String |
getName() |
String |
getXmpXml(ByteSource byteSource,
Map params)
Extracts embedded XML metadata as XML string.
|
void |
writeImage(BufferedImage src,
OutputStream os,
Map params) |
canAcceptExtension, canAcceptExtension, canAcceptType, dumpImageFile, dumpImageFile, dumpImageFile, getAllBufferedImages, getAllBufferedImages, getAllBufferedImages, getAllImageParsers, getBufferedImage, getBufferedImage, getBufferedImageFactory, getFormatCompliance, getFormatCompliance, getFormatCompliance, getICCProfileBytes, getICCProfileBytes, getICCProfileBytes, getICCProfileBytes, getImageInfo, getImageInfo, getImageInfo, getImageSize, getImageSize, getImageSize, getImageSize, getMetadata, getMetadata, getMetadata, getMetadata, getMetadata, isStrictbyteArrayHasPrefix, convertByteArrayToInt, convertByteArrayToInt, convertByteArrayToShort, convertByteArrayToShort, getByteOrder, int2ToByteArray, read2Bytes, read3Bytes, read4Bytes, setByteOrder, setByteOrderCharsToQuad, 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, writeIntInToByteArraypublic String getName()
getName in class ImageParserpublic String getDefaultExtension()
getDefaultExtension in class ImageParserprotected String[] getAcceptedExtensions()
getAcceptedExtensions in class ImageParserprotected ImageFormat[] getAcceptedTypes()
getAcceptedTypes in class ImageParserpublic byte[] getICCProfileBytes(ByteSource byteSource, Map params) throws ImageReadException, IOException
getICCProfileBytes in class ImageParserImageReadExceptionIOExceptionpublic Dimension getImageSize(ByteSource byteSource, Map params) throws ImageReadException, IOException
getImageSize in class ImageParserImageReadExceptionIOExceptionpublic byte[] embedICCProfile(byte[] image,
byte[] profile)
public boolean embedICCProfile(File src, File dst, byte[] profile)
embedICCProfile in class ImageParserpublic IImageMetadata getMetadata(ByteSource byteSource, Map params) throws ImageReadException, IOException
getMetadata in class ImageParserImageReadExceptionIOExceptionpublic ImageInfo getImageInfo(ByteSource byteSource, Map params) throws ImageReadException, IOException
getImageInfo in class ImageParserImageReadExceptionIOExceptionpublic BufferedImage getBufferedImage(ByteSource byteSource, Map params) throws ImageReadException, IOException
getBufferedImage in class ImageParserImageReadExceptionIOExceptionpublic boolean dumpImageFile(PrintWriter pw, ByteSource byteSource) throws ImageReadException, IOException
dumpImageFile in class ImageParserImageReadExceptionIOExceptionpublic void writeImage(BufferedImage src, OutputStream os, Map params) throws ImageWriteException, IOException
writeImage in class ImageParserImageWriteExceptionIOExceptionpublic String getXmpXml(ByteSource byteSource, Map params) throws ImageReadException, IOException
getXmpXml in class ImageParserfile - File containing image data.params - Map of optional parameters, defined in SanselanConstants.ImageReadExceptionIOExceptionCopyright © 2007-2012. All Rights Reserved.