Package javax.imageio.stream

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


        i.seek(0);
        h.check(i.readChar() == '\u7270');
        i.seek(0);
        h.check(Double.compare(i.readDouble(), 1.709290273164385E243) == 0);
        i.seek(0);
        h.check(Float.compare(i.readFloat(), 4.7541126E30f) == 0);
        i.seek(0);
        h.check(i.readInt() == 1919944055);
        i.seek(0);
        h.check(i.readLong() == 8246096929276181351L);
        i.seek(0);
View Full Code Here


        i.seek(0);
        h.check(i.readChar() == '\u7072');
        i.seek(0);
        h.check(Double.compare(i.readDouble(), 1.9456609400629563E189) == 0);
        i.seek(0);
        h.check(Float.compare(i.readFloat(), 2.7064693E33f) == 0);
        i.seek(0);
        h.check(i.readInt() == 1996845170);
        i.seek(0);
        h.check(i.readLong() == 7438806032077647986L);
        i.seek(0);
View Full Code Here

        i.seek(0);
        h.check(i.readChar() == '\u9280');
        i.seek(0);
        h.check(Double.compare(i.readDouble(), -1.4183142849706364E-219) == 0);
        i.seek(0);
        h.check(Float.compare(i.readFloat(), -8.079283E-28f) == 0);
        i.seek(0);
        h.check(i.readInt() == -1837103753);
        i.seek(0);
        h.check(i.readLong() == -7890300535592285273L);
        i.seek(0);
View Full Code Here

        i.seek(0);
        h.check(i.readChar() == '\u8092');
        i.seek(0);
        h.check(Double.compare(i.readDouble(), -3.463391436203922E-118) == 0);
        i.seek(0);
        h.check(Float.compare(i.readFloat(), 2.707747E33f) == 0);
        i.seek(0);
        h.check(i.readInt() == 1996849298);
        i.seek(0);
        h.check(i.readLong() == -6373734025067659118L);
        i.seek(0);
View Full Code Here

                    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;
                    case  9: assertEquals("readFloat()",         r.readFloat(),         t.readFloat()0f);    break;
                    case 10: assertEquals("readDouble()",        r.readDouble(),        t.readDouble(), 0d);    break;
                    case 11: assertEquals("readBit()",           r.readBit(),           t.readBit());           break;
                    case 12: {
                        final int n = random.nextInt(Long.SIZE + 1);
                        assertEquals("readBits(" + n + ')', r.readBits(n), t.readBits(n));
View Full Code Here

                    if (pos + 4 > length) {
                        iis.reset();
                        iis.mark();
                        pos = 0;
                    }
                    iis.readFloat();
                    pos += 4;
                } while (--numReps >= 0);
            } catch (IOException e) {
                e.printStackTrace();
            } finally {
View Full Code Here

                    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;
                    case  9: assertEquals("readFloat()",         r.readFloat(),         t.readFloat()0f);    break;
                    case 10: assertEquals("readDouble()",        r.readDouble(),        t.readDouble(), 0d);    break;
                    case 11: assertEquals("readBit()",           r.readBit(),           t.readBit());           break;
                    case 12: {
                        final int n = random.nextInt(Long.SIZE + 1);
                        assertEquals("readBits(" + n + ')', r.readBits(n), t.readBits(n));
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.