Stream — klasa Stream. Nasleđuje od: FilterInputStream.
| Name | Type | Access | Description |
|---|
outputStream | OutputStream | Read | Gets the output stream. |
inputStream | java.io.InputStream | Read | Gets the input stream. |
| Signature | Description |
|---|
Stream(in: InputStream) | File stream for reading and writing files. |
Stream(out: OutputStream) | Creates a Stream wrapping the given InputStream |
flush() | Flushes any buffered data to the underlying stream |
getOutputStream() → OutputStream | Returns the output stream. |
getInputStream() → java.io.InputStream | Creates a new file stream. |
writeByte(b: int) | Writes a byte to the stream. |
write(buf: byte[]) | Writes bytes to the stream. |
write(buf: byte[], start: int, len: int) | Writes bytes to the stream. |
wrap(stream: InputStream) → Stream | Wrap an InputStream as Stream. |
wrap(stream: OutputStream) → Stream | Wrap an OutputStream as Stream, the stream must be closed to flush data to output stream. |
Vidi takođe