public abstract class ImageParser extends BinaryFileParser implements SanselanConstants
debugBUFFERED_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 |
|---|
ImageParser() |
byteArrayHasPrefix, 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 static final ImageParser[] getAllImageParsers()
public final IImageMetadata getMetadata(ByteSource byteSource) throws ImageReadException, IOException
ImageReadExceptionIOExceptionpublic abstract IImageMetadata getMetadata(ByteSource byteSource, Map params) throws ImageReadException, IOException
ImageReadExceptionIOExceptionpublic final IImageMetadata getMetadata(byte[] bytes) throws ImageReadException, IOException
ImageReadExceptionIOExceptionpublic final IImageMetadata getMetadata(byte[] bytes, Map params) throws ImageReadException, IOException
ImageReadExceptionIOExceptionpublic final IImageMetadata getMetadata(File file) throws ImageReadException, IOException
ImageReadExceptionIOExceptionpublic final IImageMetadata getMetadata(File file, Map params) throws ImageReadException, IOException
ImageReadExceptionIOExceptionpublic abstract ImageInfo getImageInfo(ByteSource byteSource, Map params) throws ImageReadException, IOException
ImageReadExceptionIOExceptionpublic final ImageInfo getImageInfo(ByteSource byteSource) throws ImageReadException, IOException
ImageReadExceptionIOExceptionpublic final ImageInfo getImageInfo(byte[] bytes, Map params) throws ImageReadException, IOException
ImageReadExceptionIOExceptionpublic final ImageInfo getImageInfo(File file, Map params) throws ImageReadException, IOException
ImageReadExceptionIOExceptionpublic FormatCompliance getFormatCompliance(ByteSource byteSource) throws ImageReadException, IOException
ImageReadExceptionIOExceptionpublic final FormatCompliance getFormatCompliance(byte[] bytes) throws ImageReadException, IOException
ImageReadExceptionIOExceptionpublic final FormatCompliance getFormatCompliance(File file) throws ImageReadException, IOException
ImageReadExceptionIOExceptionpublic ArrayList getAllBufferedImages(ByteSource byteSource) throws ImageReadException, IOException
ImageReadExceptionIOExceptionpublic final ArrayList getAllBufferedImages(byte[] bytes) throws ImageReadException, IOException
ImageReadExceptionIOExceptionpublic final ArrayList getAllBufferedImages(File file) throws ImageReadException, IOException
ImageReadExceptionIOExceptionpublic abstract BufferedImage getBufferedImage(ByteSource byteSource, Map params) throws ImageReadException, IOException
ImageReadExceptionIOExceptionpublic final BufferedImage getBufferedImage(byte[] bytes, Map params) throws ImageReadException, IOException
ImageReadExceptionIOExceptionpublic final BufferedImage getBufferedImage(File file, Map params) throws ImageReadException, IOException
ImageReadExceptionIOExceptionpublic void writeImage(BufferedImage src, OutputStream os, Map params) throws ImageWriteException, IOException
ImageWriteExceptionIOExceptionpublic final Dimension getImageSize(byte[] bytes) throws ImageReadException, IOException
ImageReadExceptionIOExceptionpublic final Dimension getImageSize(byte[] bytes, Map params) throws ImageReadException, IOException
ImageReadExceptionIOExceptionpublic final Dimension getImageSize(File file) throws ImageReadException, IOException
ImageReadExceptionIOExceptionpublic final Dimension getImageSize(File file, Map params) throws ImageReadException, IOException
ImageReadExceptionIOExceptionpublic abstract Dimension getImageSize(ByteSource byteSource, Map params) throws ImageReadException, IOException
ImageReadExceptionIOExceptionpublic abstract String getXmpXml(ByteSource byteSource, Map params) throws ImageReadException, IOException
ImageReadExceptionIOExceptionpublic final byte[] getICCProfileBytes(byte[] bytes)
throws ImageReadException,
IOException
ImageReadExceptionIOExceptionpublic final byte[] getICCProfileBytes(byte[] bytes,
Map params)
throws ImageReadException,
IOException
ImageReadExceptionIOExceptionpublic final byte[] getICCProfileBytes(File file) throws ImageReadException, IOException
ImageReadExceptionIOExceptionpublic final byte[] getICCProfileBytes(File file, Map params) throws ImageReadException, IOException
ImageReadExceptionIOExceptionpublic abstract byte[] getICCProfileBytes(ByteSource byteSource, Map params) throws ImageReadException, IOException
ImageReadExceptionIOExceptionpublic final String dumpImageFile(byte[] bytes) throws ImageReadException, IOException
ImageReadExceptionIOExceptionpublic final String dumpImageFile(File file) throws ImageReadException, IOException
ImageReadExceptionIOExceptionpublic final String dumpImageFile(ByteSource byteSource) throws ImageReadException, IOException
ImageReadExceptionIOExceptionpublic boolean dumpImageFile(PrintWriter pw, ByteSource byteSource) throws ImageReadException, IOException
ImageReadExceptionIOExceptionpublic abstract String getName()
public abstract String getDefaultExtension()
protected abstract String[] getAcceptedExtensions()
protected abstract ImageFormat[] getAcceptedTypes()
public boolean canAcceptType(ImageFormat type)
protected final boolean canAcceptExtension(File file)
protected final boolean canAcceptExtension(String filename)
protected IBufferedImageFactory getBufferedImageFactory(Map params)
public static final boolean isStrict(Map params)
Copyright © 2007-2012. All Rights Reserved.