ByteArrayOutput class instead.@Deprecated public class ByteArrayDataOutput extends ByteArrayBuffer implements DataOutput
ByteArrayDataOutput implements DataOutput interface
using byte array buffer.buffer, limit, position| Constructor and Description |
|---|
ByteArrayDataOutput()
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
byte[] |
toByteArray()
Deprecated.
Returns full copy of bytes buffer from zero to current position.
|
void |
write(byte[] b)
Deprecated.
|
void |
write(byte[] b,
int off,
int len)
Deprecated.
|
void |
write(int b)
Deprecated.
|
void |
writeBoolean(boolean v)
Deprecated.
|
void |
writeByte(int v)
Deprecated.
|
void |
writeBytes(String str)
Deprecated.
|
void |
writeChar(int v)
Deprecated.
|
void |
writeChars(String str)
Deprecated.
|
void |
writeDouble(double v)
Deprecated.
|
void |
writeFloat(float v)
Deprecated.
|
void |
writeInt(int v)
Deprecated.
|
void |
writeLong(long v)
Deprecated.
|
void |
writeShort(int v)
Deprecated.
|
void |
writeUTF(String str)
Deprecated.
|
clear, copy, ensureCapacity, expandLimit, getBuffer, getLimit, getPosition, setBuffer, setLimit, setPositionpublic byte[] toByteArray()
public void write(int b)
throws IOException
write in interface DataOutputIOExceptionpublic void write(byte[] b)
throws IOException
write in interface DataOutputIOExceptionpublic void write(byte[] b,
int off,
int len)
throws IOException
write in interface DataOutputIOExceptionpublic void writeBoolean(boolean v)
throws IOException
writeBoolean in interface DataOutputIOExceptionpublic void writeByte(int v)
throws IOException
writeByte in interface DataOutputIOExceptionpublic void writeShort(int v)
throws IOException
writeShort in interface DataOutputIOExceptionpublic void writeChar(int v)
throws IOException
writeChar in interface DataOutputIOExceptionpublic void writeInt(int v)
throws IOException
writeInt in interface DataOutputIOExceptionpublic void writeLong(long v)
throws IOException
writeLong in interface DataOutputIOExceptionpublic void writeFloat(float v)
throws IOException
writeFloat in interface DataOutputIOExceptionpublic void writeDouble(double v)
throws IOException
writeDouble in interface DataOutputIOExceptionpublic void writeBytes(String str) throws IOException
writeBytes in interface DataOutputIOExceptionpublic void writeChars(String str) throws IOException
writeChars in interface DataOutputIOExceptionpublic void writeUTF(String str) throws IOException
writeUTF in interface DataOutputIOExceptionCopyright © 2002–2025 Devexperts LLC. All rights reserved.