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
Constructors -
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:
readin classInputStream- Throws:
IOException
-
read
- Overrides:
readin classInputStream- Throws:
IOException
-
read
- Overrides:
readin classInputStream- Throws:
IOException
-
skip
- Overrides:
skipin classInputStream- Throws:
IOException
-
available
- Overrides:
availablein classInputStream- Throws:
IOException
-
markSupported
public boolean markSupported()- Overrides:
markSupportedin classInputStream
-
mark
public void mark(int readlimit) - Overrides:
markin classInputStream
-
reset
- Overrides:
resetin classInputStream- Throws:
IOException
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Overrides:
closein classInputStream- Throws:
IOException
-
toString
-
hashCode
public int hashCode() -
equals
-