Class SystemInputStream
public class SystemInputStream extends FilterInputStream
{
// Constructors
public SystemInputStream (InputStream out, int id);
// Methods
public void close () throws IOException;
}
This class provides methods that allow an application to hand an input stream to untrusted code and prevent the untrusted code from closing it. System.in objects are wrapped with this class, which extends the FilterInputStream class.
FilterInputStream
|
+--SystemInputStream
public SystemInputStream (InputStream out, int id);
Creates a SystemInputStream object by using the specified input stream and an identifier. The identifier will be used for security checks.
Parameter | Description |
out
| The input stream.
|
id
| The identifier for the new SystemInputStream object.
|
public void close () throws IOException;
Closes the system input stream.
Return Value:
No return value.
Exceptions:
IOException
if an I/O error occurs while attempting to close the output stream.