Package org.boris.pecoff4j.io

Examples of org.boris.pecoff4j.io.DataReader


    public String toString() {
        return Reflection.toString(this);
    }

    public static GroupIconDirectory read(byte[] data) throws IOException {
        return read(new DataReader(data));
    }
View Full Code Here


{
    private IconDirectory directory;
    private IconImage[] images;

    public static IconFile parse(String filename) throws IOException {
        return read(new DataReader(new FileInputStream(filename)));
    }
View Full Code Here

    public static IconFile parse(String filename) throws IOException {
        return read(new DataReader(new FileInputStream(filename)));
    }

    public static IconFile parse(File file) throws IOException {
        return read(new DataReader(new FileInputStream(file)));
    }
View Full Code Here

                // Check for PNG data
                if (gide.getWidth() == 0 && gide.getHeight() == 0) {
                    IconImage ii = ResourceParser.readPNG(d);
                    images[j] = ii;
                } else {
                    IconImage ii = ResourceParser.readIconImage(new DataReader(
                            d), gide.getBytesInRes());
                    images[j] = ii;
                }
            }
View Full Code Here

TOP

Related Classes of org.boris.pecoff4j.io.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.