1 /* Copyright (C) 1998, 1999 Cygnus Solutions
3 This file is part of libgcj.
5 This software is copyrighted work licensed under the terms of the
6 Libgcj License. Please consult the file "LIBGCJ_LICENSE" for
12 * @author Warren Levy <warrenl@cygnus.com>
13 * @date October 8, 1998.
15 /* Written using "Java Class Libraries", 2nd edition, ISBN 0-201-31002-3
16 * "The Java Language Specification", ISBN 0-201-63451-1
17 * plus online API docs for JDK 1.2 beta from http://www.javasoft.com.
18 * Status: Believed complete and correct.
21 public class FilterInputStream extends InputStream
23 /* The input stream to be filtered. */
24 protected InputStream in;
26 protected FilterInputStream(InputStream in)
31 public int available() throws IOException
33 return in.available();
36 public void close() throws IOException
41 public synchronized void mark(int readlimit)
46 public boolean markSupported()
48 return in.markSupported();
51 public int read() throws IOException
56 public int read(byte[] b) throws IOException
58 return read(b, 0, b.length);
61 public int read(byte[] b, int off, int len) throws IOException
63 return in.read(b, off, len);
66 public synchronized void reset() throws IOException
71 public long skip(long n) throws IOException