Package org.fusesource.jansi.io
Class FastBufferedOutputStream
- java.lang.Object
-
- java.io.OutputStream
-
- java.io.FilterOutputStream
-
- org.fusesource.jansi.io.FastBufferedOutputStream
-
- All Implemented Interfaces:
Closeable
,Flushable
,AutoCloseable
public class FastBufferedOutputStream extends FilterOutputStream
A simple buffering output stream with no synchronization.
-
-
Field Summary
Fields Modifier and Type Field Description protected byte[]
buf
protected int
count
-
Fields inherited from class java.io.FilterOutputStream
out
-
-
Constructor Summary
Constructors Constructor Description FastBufferedOutputStream(OutputStream out)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
flush()
void
write(byte[] b, int off, int len)
void
write(int b)
-
Methods inherited from class java.io.FilterOutputStream
close, write
-
Methods inherited from class java.io.OutputStream
nullOutputStream
-
-
-
-
Constructor Detail
-
FastBufferedOutputStream
public FastBufferedOutputStream(OutputStream out)
-
-
Method Detail
-
write
public void write(int b) throws IOException
- Overrides:
write
in classFilterOutputStream
- Throws:
IOException
-
write
public void write(byte[] b, int off, int len) throws IOException
- Overrides:
write
in classFilterOutputStream
- Throws:
IOException
-
flush
public void flush() throws IOException
- Specified by:
flush
in interfaceFlushable
- Overrides:
flush
in classFilterOutputStream
- Throws:
IOException
-
-