Skip bytes from InputStream - Java java.io

Java examples for java.io:InputStream Read

Description

Skip bytes from InputStream

Demo Code


//package com.java2s;
import java.io.IOException;
import java.io.InputStream;

public class Main {
    public static void Skip(InputStream is, int nrOfBytes)
            throws IOException {
        is.skip(nrOfBytes);//w ww . j a va2  s.  c  o  m
    }

    public static void Skip(InputStream is, long nrOfBytes)
            throws IOException {
        is.skip(nrOfBytes);
    }
}

Related Tutorials