Package com.fasterxml.jackson.core.io
Class DataOutputAsStream
- java.lang.Object
-
- java.io.OutputStream
-
- com.fasterxml.jackson.core.io.DataOutputAsStream
-
- All Implemented Interfaces:
Closeable,Flushable,AutoCloseable
public class DataOutputAsStream extends OutputStream
Helper class to support use ofDataOutputfor output, directly, without caller having to provide for implementation.- Since:
- 2.8
-
-
Constructor Summary
Constructors Constructor Description DataOutputAsStream(DataOutput out)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidwrite(byte[] b)voidwrite(byte[] b, int offset, int length)voidwrite(int b)-
Methods inherited from class java.io.OutputStream
close, flush, nullOutputStream
-
-
-
-
Constructor Detail
-
DataOutputAsStream
public DataOutputAsStream(DataOutput out)
-
-
Method Detail
-
write
public void write(int b) throws IOException- Specified by:
writein classOutputStream- Throws:
IOException
-
write
public void write(byte[] b) throws IOException- Overrides:
writein classOutputStream- Throws:
IOException
-
write
public void write(byte[] b, int offset, int length) throws IOException- Overrides:
writein classOutputStream- Throws:
IOException
-
-