public class ByteArrayDataOutput extends DataOutput
| Constructor | Description |
|---|---|
ByteArrayDataOutput() |
|
ByteArrayDataOutput(byte[] bytes) |
|
ByteArrayDataOutput(byte[] bytes,
int offset,
int len) |
| Modifier and Type | Method | Description |
|---|---|---|
int |
getPosition() |
|
void |
reset(byte[] bytes) |
|
void |
reset(byte[] bytes,
int offset,
int len) |
|
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 ByteArrayDataOutput(byte[] bytes)
public ByteArrayDataOutput(byte[] bytes,
int offset,
int len)
public ByteArrayDataOutput()
public void reset(byte[] bytes)
public void reset(byte[] bytes,
int offset,
int len)
public int getPosition()
public void writeByte(byte b)
DataOutputwriteByte in class DataOutputDataInput.readByte()public void writeBytes(byte[] b,
int offset,
int length)
DataOutputwriteBytes in class DataOutputb - the bytes to writeoffset - the offset in the byte arraylength - the number of bytes to writeDataInput.readBytes(byte[],int,int)Copyright © 2000-2018 Apache Software Foundation. All Rights Reserved.