File: java.io.FilterInputStream

package info (click to toggle)
bock 0.20.2.1
  • links: PTS
  • area: main
  • in suites: woody
  • size: 1,228 kB
  • ctags: 1,370
  • sloc: ansic: 7,367; java: 5,553; yacc: 963; lex: 392; makefile: 243; sh: 90; perl: 42
file content (29 lines) | stat: -rw-r--r-- 1,023 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
// java.io.FilterInputStream
// An implementation of the Java Language Specification section 20.9
// Written by Charles Briscoe-Smith; refer to the file LEGAL for details.

package java.io;

public class FilterInputStream extends InputStream {

	protected InputStream in;

	protected FilterInputStream(InputStream s) { in=s; }
	public int read() throws IOException { return in.read(); }

	public int read(byte[] b) throws IOException, NullPointerException
	{ return read(b, 0, b.length); }

	public int read(byte[] b, int off, int len)
		throws IOException, NullPointerException,
		       IndexOutOfBoundsException
	{ return in.read(b, off, len); }

	public long skip(long n) throws IOException { return in.skip(n); }
	public int available() throws IOException { return in.available(); }
	public void close() throws IOException { in.close(); }
	public void mark(int readlimit) { in.mark(readlimit); }
	public void reset() throws IOException { in.reset(); }
	public boolean markSupported() { return in.markSupported(); }

}