Package javax.imageio.stream

Examples of javax.imageio.stream.ImageInputStream.readByte()


                switch (operation) {
                    default: throw new AssertionError(operation);
                    case  0: assertEquals("read()",              r.read(),              t.read());              break;
                    case  1: assertEquals("readBoolean()",       r.readBoolean(),       t.readBoolean());       break;
                    case  2: assertEquals("readChar()",          r.readChar(),          t.readChar());          break;
                    case  3: assertEquals("readByte()",          r.readByte(),          t.readByte());          break;
                    case  4: assertEquals("readShort()",         r.readShort(),         t.readShort());         break;
                    case  5: assertEquals("readUnsignedShort()", r.readUnsignedShort(), t.readUnsignedShort()); break;
                    case  6: assertEquals("readInt()",           r.readInt(),           t.readInt());           break;
                    case  7: assertEquals("readUnsignedInt()",   r.readUnsignedInt(),   t.readUnsignedInt());   break;
                    case  8: assertEquals("readLong()",          r.readLong(),          t.readLong());          break;
View Full Code Here


        }

        ImageInputStream stream = (ImageInputStream)source;

        stream.mark();
        int type = stream.readByte();   // TypeField
        byte fixHeaderField = stream.readByte();

        int width = ImageUtil.readMultiByteInteger(stream);
        int height = ImageUtil.readMultiByteInteger(stream);
View Full Code Here

        ImageInputStream stream = (ImageInputStream)source;

        stream.mark();
        int type = stream.readByte();   // TypeField
        byte fixHeaderField = stream.readByte();

        int width = ImageUtil.readMultiByteInteger(stream);
        int height = ImageUtil.readMultiByteInteger(stream);

        long remainingBytes = stream.length() - stream.getStreamPosition();
View Full Code Here

            return false;
        }

        ImageInputStream stream = (ImageInputStream)source;
        stream.mark();
        byte b = stream.readByte();
        stream.reset();

        return (b==0x0A);
    }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.