Package org.svetovid.io
Class StandardInputStreamProxy
java.lang.Object
java.io.InputStream
org.svetovid.io.StandardInputStreamProxy
- All Implemented Interfaces:
Closeable
,AutoCloseable
Instances of this class serve as proxies for the currently set-up standard
input stream (see
System.in
). If the standard input stream changes
(through System.setIn(java.io.InputStream)
) instances of this class
will request the input from the new stream.
All instances of this class are considered equal.
- Author:
- Ivan Pribela
- See Also:
-
Constructor Summary
-
Method Summary
Methods inherited from class java.io.InputStream
nullInputStream, readAllBytes, readNBytes, readNBytes, skipNBytes, transferTo
-
Constructor Details
-
StandardInputStreamProxy
public StandardInputStreamProxy()
-
-
Method Details
-
read
- Specified by:
read
in classInputStream
- Throws:
IOException
-
read
- Overrides:
read
in classInputStream
- Throws:
IOException
-
read
- Overrides:
read
in classInputStream
- Throws:
IOException
-
skip
- Overrides:
skip
in classInputStream
- Throws:
IOException
-
available
- Overrides:
available
in classInputStream
- Throws:
IOException
-
markSupported
public boolean markSupported()- Overrides:
markSupported
in classInputStream
-
mark
public void mark(int readlimit) - Overrides:
mark
in classInputStream
-
reset
- Overrides:
reset
in classInputStream
- Throws:
IOException
-
close
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Overrides:
close
in classInputStream
- Throws:
IOException
-
toString
-
hashCode
public int hashCode() -
equals
-