Package org.analogweb.util
Class ByteBufferOutputStream
- java.lang.Object
-
- java.io.OutputStream
-
- org.analogweb.util.ByteBufferOutputStream
-
- All Implemented Interfaces:
Closeable
,Flushable
,AutoCloseable
public class ByteBufferOutputStream extends OutputStream
- Author:
- y2k2mt
-
-
Field Summary
Fields Modifier and Type Field Description protected ByteBuffer
buffer
-
Constructor Summary
Constructors Constructor Description ByteBufferOutputStream(ByteBuffer buf)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
write(byte[] bytes, int off, int len)
void
write(int b)
-
Methods inherited from class java.io.OutputStream
close, flush, nullOutputStream, write
-
-
-
-
Field Detail
-
buffer
protected final ByteBuffer buffer
-
-
Constructor Detail
-
ByteBufferOutputStream
public ByteBufferOutputStream(ByteBuffer buf)
-
-
Method Detail
-
write
public void write(int b) throws IOException
- Specified by:
write
in classOutputStream
- Throws:
IOException
-
write
public void write(byte[] bytes, int off, int len) throws IOException
- Overrides:
write
in classOutputStream
- Throws:
IOException
-
-