Examples of MaxLengthRecordingInputStream


Examples of org.jwat.common.MaxLengthRecordingInputStream

        in = new FixedLengthInputStream( new ByteArrayInputStream( srcArr ), srcArr.length );
        Assert.assertEquals( 1, in.skip( 10 ) );
        Assert.assertEquals( 0, in.skip( 10 ) );

        in = new MaxLengthRecordingInputStream( new ByteArrayInputStream( srcArr ), srcArr.length );
        Assert.assertEquals( 1, in.skip( 10 ) );
        Assert.assertEquals( 0, in.skip( 10 ) );
    }
View Full Code Here

Examples of org.jwat.common.MaxLengthRecordingInputStream

                diagnostics.addError(
                        new Diagnosis(DiagnosisType.INVALID_DATA,
                                "Magic Version string", versionStr));
            }

            MaxLengthRecordingInputStream mrin = new MaxLengthRecordingInputStream(in, reader.recordHeaderMaxSize);
            ByteCountingPushBackInputStream pbin = new ByteCountingPushBackInputStream(mrin, reader.recordHeaderMaxSize);

            parseHeaders(pbin);
            pbin.close();
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.