Package org.apache.commons.imaging.formats.psd.datareaders

Examples of org.apache.commons.imaging.formats.psd.datareaders.DataReader


            // break;
        default:
            throw new ImageReadException("Unknown Mode: "
                    + imageContents.header.mode);
        }
        DataReader fDataReader;
        switch (imageContents.Compression) {
        case 0:
            fDataReader = new UncompressedDataReader(dataParser);
            break;
        case 1:
            fDataReader = new CompressedDataReader(dataParser);
            break;
        default:
            throw new ImageReadException("Unknown Compression: "
                    + imageContents.Compression);
        }
       
        InputStream is = null;
        boolean canThrow = false;
        try {
            is = getInputStream(byteSource, PSD_SECTION_IMAGE_DATA);
            fDataReader.readData(is, result, imageContents, this);

            canThrow = true;
            // is.
            // ImageContents imageContents = readImageContents(is);
            // return imageContents;
View Full Code Here

TOP

Related Classes of org.apache.commons.imaging.formats.psd.datareaders.DataReader

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.