public class OutputStreamDataOutput extends DataOutput implements java.io.Closeable
DataOutput wrapping a plain OutputStream.| Constructor and Description |
|---|
OutputStreamDataOutput(java.io.OutputStream os) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
writeByte(byte b)
Writes a single byte.
|
void |
writeBytes(byte[] b,
int offset,
int length)
Writes an array of bytes.
|
copyBytes, writeBytes, writeChars, writeChars, writeInt, writeLong, writeShort, writeString, writeStringStringMap, writeVInt, writeVLongpublic void writeByte(byte b)
throws java.io.IOException
DataOutputwriteByte in class DataOutputjava.io.IOExceptionDataInput.readByte()public void writeBytes(byte[] b,
int offset,
int length)
throws java.io.IOException
DataOutputwriteBytes in class DataOutputb - the bytes to writeoffset - the offset in the byte arraylength - the number of bytes to writejava.io.IOExceptionDataInput.readBytes(byte[],int,int)public void close()
throws java.io.IOException
close in interface java.io.Closeableclose in interface java.lang.AutoCloseablejava.io.IOExceptionCopyright © 2000-2022 Apache Software Foundation. All Rights Reserved.