public class SocketInputStream extends LineInputStream
baEmpty, baEmptyDone
Constructor and Description |
---|
SocketInputStream(java.io.InputStream stream) |
SocketInputStream(java.net.Socket socket,
java.io.InputStream is) |
Modifier and Type | Method and Description |
---|---|
void |
close()
Closes this input stream and releases any system resources associated
with the stream.
|
void |
finalize() |
_read, available, mark, markSupported, read, read, read, readLineBytes, readLineTerminatorBytes, reset, skip
public SocketInputStream(java.net.Socket socket, java.io.InputStream is) throws java.io.IOException
java.io.IOException
public SocketInputStream(java.io.InputStream stream)
public void close() throws java.io.IOException
LineInputStream
The close
method of InputStream
does
nothing.
close
in interface java.io.Closeable
close
in interface java.lang.AutoCloseable
close
in class LineInputStream
java.io.IOException
- if an I/O error occurs.public void finalize() throws java.io.IOException
finalize
in class java.lang.Object
java.io.IOException