public class StreamImplInputStream
extends java.io.InputStream
Constructor and Description |
---|
StreamImplInputStream(StreamImpl stream) |
Modifier and Type | Method and Description |
---|---|
void |
close()
Closes the stream.
|
int |
read()
Writes a byte to the underlying stream.
|
int |
read(byte[] buffer,
int offset,
int length)
Reads a buffer to the underlying stream.
|
public StreamImplInputStream(StreamImpl stream)
public int read() throws java.io.IOException
read
in class java.io.InputStream
v
- the value to writejava.io.IOException
public int read(byte[] buffer, int offset, int length) throws java.io.IOException
read
in class java.io.InputStream
buffer
- the byte array to write.offset
- the offset into the byte array.length
- the number of bytes to write.java.io.IOException
public void close() throws java.io.IOException
close
in interface java.io.Closeable
close
in interface java.lang.AutoCloseable
close
in class java.io.InputStream
java.io.IOException