Package org.broad.igv.util.stream

Examples of org.broad.igv.util.stream.IGVSeekableFTPStream


    @Test
    public void testRead() throws IOException {

        byte[] buffer = new byte[100];

        IGVSeekableFTPStream stream = new IGVSeekableFTPStream(new URL(url));

        for (int j = 0; j < 10; j++) {
            stream.seek(20 + j * 100);

            stream.read(buffer, 0, buffer.length);

            //for (int i = 0; i < 10; i++) {
            //System.out.println(buffer[i]);
            //}
        }
        stream.close();
    }
View Full Code Here

TOP

Related Classes of org.broad.igv.util.stream.IGVSeekableFTPStream

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.