public class StreamImplOutputStream
extends java.io.OutputStream
| Constructor and Description |
|---|
StreamImplOutputStream(StreamImpl stream) |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Closes the stream.
|
void |
flush()
Flushes the write output.
|
void |
write(byte[] buffer,
int offset,
int length)
Writes a buffer to the underlying stream.
|
void |
write(int v)
Writes a byte to the underlying stream.
|
public StreamImplOutputStream(StreamImpl stream)
public void write(int v)
throws java.io.IOException
write in class java.io.OutputStreamv - the value to writejava.io.IOExceptionpublic void write(byte[] buffer,
int offset,
int length)
throws java.io.IOException
write in class java.io.OutputStreambuffer - the byte array to write.offset - the offset into the byte array.length - the number of bytes to write.java.io.IOExceptionpublic void flush()
throws java.io.IOException
flush in interface java.io.Flushableflush in class java.io.OutputStreamjava.io.IOExceptionpublic void close()
throws java.io.IOException
close in interface java.io.Closeableclose in interface java.lang.AutoCloseableclose in class java.io.OutputStreamjava.io.IOException