Object
OutputStream
LinesOutputStream
- All Implemented Interfaces:
Closeable
,Flushable
,AutoCloseable
Concurrent write of data as sequence of bytes and read it back as
Stream
of lines.
Allows one thread to write data into this OutputStream
and another to receive such
data back as Stream
of lines.
OutputStream.write(int)
call blocks until another thread reads the next line.
-
Field Summary
-
Constructor Summary
-
Method Summary
Methods inherited from class OutputStream
flush, nullOutputStream, write, write
-
Field Details
-
EOQ
-
-
Constructor Details
-
LinesOutputStream
public LinesOutputStream()
-
-
Method Details
-
close
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Overrides:
close
in classOutputStream
- Throws:
IOException
-
write
- Specified by:
write
in classOutputStream
- Throws:
IOException
-
lines
-