Stream

Stream — klasa Stream. Nasleđuje od: FilterInputStream.


NameTypeAccessDescription
outputStreamOutputStreamReadGets the output stream.
inputStreamjava.io.InputStreamReadGets the input stream.

SignatureDescription
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()OutputStreamReturns the output stream.
getInputStream()java.io.InputStreamCreates 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)StreamWrap an InputStream as Stream.
wrap(stream: OutputStream)StreamWrap an OutputStream as Stream, the stream must be closed to flush data to output stream.

Vidi takođe

 Српски