Package com.jitlogic.zorka.common.util

Examples of com.jitlogic.zorka.common.util.TapInputStream.mark()


    @Test
    public void testTapInputStreamWithMarkAndReset() throws Exception {
        TapInputStream tis = new TapInputStream(new ByteArrayInputStream("ABCDEF".getBytes()));

        tis.read(new byte[2]); tis.mark(100);
        tis.read(new byte[2]); tis.reset();
        tis.read(new byte[3]);

        assertEquals("ABCDE", tis.asString());
    }
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.