Package org.apache.jena.atlas.io

Examples of org.apache.jena.atlas.io.InputStreamBuffered


        for ( String fn : args )
        {
            if ( args.length > 1 )
                label = fn+": " ;
            InputStream in = IO.openFile(fn) ;
            in = new InputStreamBuffered(in) ;
           
            long charCount = 0 ;
            long lineNum = INIT_LINE ;
            long colNum = INIT_COL ;
           
View Full Code Here


public class TestInputStreamBuffered extends BaseTest
{
    @Test public void test_01() throws IOException
    {
        InputStream in = stream("") ;
        InputStream in2 = new InputStreamBuffered(in) ;
        int x = count(in2) ;
        assertEquals(0, x) ;
    }
View Full Code Here

    }
   
    @Test public void test_02() throws IOException
    {
        InputStream in = stream(1,2,3,4) ;
        InputStream in2 = new InputStreamBuffered(in) ;
        check(in2, 1,2,3,4) ;
    }
View Full Code Here

    }
   
    @Test public void test_03() throws IOException
    {
        InputStream in = stream(1,2,3,4) ;
        InputStream in2 = new InputStreamBuffered(in, 2) ;
        check(in2, 1,2,3,4) ;
    }
View Full Code Here

    }
   
    @Test public void test_04() throws IOException
    {
        InputStream in = stream(1,2,3,4) ;
        InputStream in2 = new InputStreamBuffered(in, 1) ;
        check(in2, 1,2,3,4) ;
        assertEquals(-1, in.read()) ;
    }
View Full Code Here

TOP

Related Classes of org.apache.jena.atlas.io.InputStreamBuffered

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.