Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- * To change this template, choose Tools | Templates
- * and open the template in the editor.
- */
- package su.vistar.gps.cdsforward.core;
- import java.io.IOException;
- import java.io.InputStream;
- /**
- *
- * @author serg
- */
- public class MyInputStream {
- private final InputStream is;
- public MyInputStream(InputStream is) {
- if (is == null) {
- throw new NullPointerException("is");
- }
- this.is = is;
- }
- public long skip(long n) throws IOException {
- return is.skip(n);
- }
- public synchronized void reset() throws IOException {
- is.reset();
- }
- public int read(byte[] b, int off, int len) throws IOException {
- return is.read(b, off, len);
- }
- public int read(byte[] b) throws IOException {
- return is.read(b);
- }
- public int read() throws IOException {
- return is.read();
- }
- public boolean markSupported() {
- return is.markSupported();
- }
- public synchronized void mark(int readlimit) {
- is.mark(readlimit);
- }
- public void close() throws IOException {
- is.close();
- }
- public int available() throws IOException {
- return is.available();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement