Class ByteBufferBackedOutputStream
- java.lang.Object
-
- java.io.OutputStream
-
- com.fasterxml.jackson.databind.util.ByteBufferBackedOutputStream
-
- All Implemented Interfaces:
Closeable
,Flushable
,AutoCloseable
public class ByteBufferBackedOutputStream extends OutputStream
SimpleOutputStream
implementation that appends content written in givenByteBuffer
instance.
-
-
Constructor Summary
Constructors Constructor Description ByteBufferBackedOutputStream(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
-
-
-
-
Constructor Detail
-
ByteBufferBackedOutputStream
public ByteBufferBackedOutputStream(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
-
-