public abstract class ImageParser extends BinaryFileParser implements SanselanConstants
debug
BUFFERED_IMAGE_FACTORY, PARAM_KEY_COMPRESSION, PARAM_KEY_FILENAME, PARAM_KEY_FORMAT, PARAM_KEY_READ_THUMBNAILS, PARAM_KEY_STRICT, PARAM_KEY_VERBOSE, PARAM_KEY_XMP_XML
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 and Description |
---|
ImageParser() |
byteArrayHasPrefix, convertByteArrayToInt, convertByteArrayToInt, convertByteArrayToShort, convertByteArrayToShort, getByteOrder, int2ToByteArray, read2Bytes, read3Bytes, read4Bytes, setByteOrder, setByteOrder
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
public static final ImageParser[] getAllImageParsers()
public final IImageMetadata getMetadata(ByteSource byteSource) throws ImageReadException, IOException
ImageReadException
IOException
public abstract IImageMetadata getMetadata(ByteSource byteSource, Map params) throws ImageReadException, IOException
ImageReadException
IOException
public final IImageMetadata getMetadata(byte[] bytes) throws ImageReadException, IOException
ImageReadException
IOException
public final IImageMetadata getMetadata(byte[] bytes, Map params) throws ImageReadException, IOException
ImageReadException
IOException
public final IImageMetadata getMetadata(File file) throws ImageReadException, IOException
ImageReadException
IOException
public final IImageMetadata getMetadata(File file, Map params) throws ImageReadException, IOException
ImageReadException
IOException
public abstract ImageInfo getImageInfo(ByteSource byteSource, Map params) throws ImageReadException, IOException
ImageReadException
IOException
public final ImageInfo getImageInfo(ByteSource byteSource) throws ImageReadException, IOException
ImageReadException
IOException
public final ImageInfo getImageInfo(byte[] bytes, Map params) throws ImageReadException, IOException
ImageReadException
IOException
public final ImageInfo getImageInfo(File file, Map params) throws ImageReadException, IOException
ImageReadException
IOException
public FormatCompliance getFormatCompliance(ByteSource byteSource) throws ImageReadException, IOException
ImageReadException
IOException
public final FormatCompliance getFormatCompliance(byte[] bytes) throws ImageReadException, IOException
ImageReadException
IOException
public final FormatCompliance getFormatCompliance(File file) throws ImageReadException, IOException
ImageReadException
IOException
public ArrayList getAllBufferedImages(ByteSource byteSource) throws ImageReadException, IOException
ImageReadException
IOException
public final ArrayList getAllBufferedImages(byte[] bytes) throws ImageReadException, IOException
ImageReadException
IOException
public final ArrayList getAllBufferedImages(File file) throws ImageReadException, IOException
ImageReadException
IOException
public abstract BufferedImage getBufferedImage(ByteSource byteSource, Map params) throws ImageReadException, IOException
ImageReadException
IOException
public final BufferedImage getBufferedImage(byte[] bytes, Map params) throws ImageReadException, IOException
ImageReadException
IOException
public final BufferedImage getBufferedImage(File file, Map params) throws ImageReadException, IOException
ImageReadException
IOException
public void writeImage(BufferedImage src, OutputStream os, Map params) throws ImageWriteException, IOException
ImageWriteException
IOException
public final Dimension getImageSize(byte[] bytes) throws ImageReadException, IOException
ImageReadException
IOException
public final Dimension getImageSize(byte[] bytes, Map params) throws ImageReadException, IOException
ImageReadException
IOException
public final Dimension getImageSize(File file) throws ImageReadException, IOException
ImageReadException
IOException
public final Dimension getImageSize(File file, Map params) throws ImageReadException, IOException
ImageReadException
IOException
public abstract Dimension getImageSize(ByteSource byteSource, Map params) throws ImageReadException, IOException
ImageReadException
IOException
public abstract String getXmpXml(ByteSource byteSource, Map params) throws ImageReadException, IOException
ImageReadException
IOException
public final byte[] getICCProfileBytes(byte[] bytes) throws ImageReadException, IOException
ImageReadException
IOException
public final byte[] getICCProfileBytes(byte[] bytes, Map params) throws ImageReadException, IOException
ImageReadException
IOException
public final byte[] getICCProfileBytes(File file) throws ImageReadException, IOException
ImageReadException
IOException
public final byte[] getICCProfileBytes(File file, Map params) throws ImageReadException, IOException
ImageReadException
IOException
public abstract byte[] getICCProfileBytes(ByteSource byteSource, Map params) throws ImageReadException, IOException
ImageReadException
IOException
public final String dumpImageFile(byte[] bytes) throws ImageReadException, IOException
ImageReadException
IOException
public final String dumpImageFile(File file) throws ImageReadException, IOException
ImageReadException
IOException
public final String dumpImageFile(ByteSource byteSource) throws ImageReadException, IOException
ImageReadException
IOException
public boolean dumpImageFile(PrintWriter pw, ByteSource byteSource) throws ImageReadException, IOException
ImageReadException
IOException
public 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.