Package cn.sliew.milky.io
Class OutputStreamDataOutputView
- java.lang.Object
-
- cn.sliew.milky.io.OutputStreamDataOutputView
-
- All Implemented Interfaces:
DataOutputView,Closeable,DataOutput,Flushable,Serializable,AutoCloseable
public class OutputStreamDataOutputView extends Object implements DataOutputView
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from interface cn.sliew.milky.io.DataOutputView
ONE, TWO, ZERO
-
-
Constructor Summary
Constructors Constructor Description OutputStreamDataOutputView(OutputStream out)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()voidflush()byte[]getBuffer()fixme buffer recyclervoidwrite(int b)voidwriteByte(int v)voidwriteBytes(byte[] b)voidwriteBytes(byte[] b, int off, int len)voidwriteBytes(String s)voidwriteChars(String s)voidwriteUTF(String s)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface cn.sliew.milky.io.DataOutputView
write, write, writeBoolean, writeChar, writeDouble, writeFloat, writeInt, writeLong, writeOptionalBoolean, writeOptionalDouble, writeOptionalFloat, writeOptionalInt, writeOptionalLong, writeOptionalVInt, writeOptionalVLong, writeOptionalZLong, writeShort, writeVDouble, writeVFloat, writeVInt, writeVLong, writeZInt, writeZLong
-
-
-
-
Constructor Detail
-
OutputStreamDataOutputView
public OutputStreamDataOutputView(OutputStream out)
-
-
Method Detail
-
writeBytes
public void writeBytes(byte[] b) throws IOException- Specified by:
writeBytesin interfaceDataOutputView- Throws:
IOException
-
writeBytes
public void writeBytes(byte[] b, int off, int len) throws IOException- Specified by:
writeBytesin interfaceDataOutputView- Throws:
IOException
-
getBuffer
public byte[] getBuffer()
fixme buffer recycler- Specified by:
getBufferin interfaceDataOutputView
-
write
public void write(int b) throws IOException- Specified by:
writein interfaceDataOutput- Throws:
IOException
-
writeByte
public void writeByte(int v) throws IOException- Specified by:
writeBytein interfaceDataOutput- Throws:
IOException
-
writeBytes
public void writeBytes(String s) throws IOException
- Specified by:
writeBytesin interfaceDataOutput- Throws:
IOException
-
writeChars
public void writeChars(String s) throws IOException
- Specified by:
writeCharsin interfaceDataOutput- Throws:
IOException
-
writeUTF
public void writeUTF(String s) throws IOException
- Specified by:
writeUTFin interfaceDataOutput- Throws:
IOException
-
flush
public void flush() throws IOException- Specified by:
flushin interfaceDataOutputView- Specified by:
flushin interfaceFlushable- Throws:
IOException
-
close
public void close() throws IOException- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Specified by:
closein interfaceDataOutputView- Throws:
IOException
-
-