![JAR search and dependency download from the Maven repository](/logo.png)
javadoc.com.google.common.io.ByteArrayDataOutput.html Maven / Gradle / Ivy
The newest version!
ByteArrayDataOutput (Guava: Google Core Libraries for Java 11.0.1 API)
Overview
Package
Class
Use
Tree
Deprecated
Index
Help
PREV CLASS
NEXT CLASS
FRAMES
NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD
DETAIL: FIELD | CONSTR | METHOD
com.google.common.io
Interface ByteArrayDataOutput
- All Superinterfaces:
- DataOutput
public interface ByteArrayDataOutput
- extends DataOutput
An extension of DataOutput
for writing to in-memory byte arrays; its
methods offer identical functionality but do not throw IOException
.
- Since:
- 1.0
- Author:
- Jayaprabhakar Kadarkarai
Method Summary | |
---|---|
byte[] |
toByteArray()
Returns the contents that have been written to this instance, as a byte array. |
void |
write(byte[] b)
|
void |
write(byte[] b,
int off,
int len)
|
void |
write(int b)
|
void |
writeBoolean(boolean v)
|
void |
writeByte(int v)
|
void |
writeBytes(String s)
Deprecated. This method is dangerous as it discards the high byte of every character. For UTF-8, use write(s.getBytes(Charsets.UTF_8)) . |
void |
writeChar(int v)
|
void |
writeChars(String s)
|
void |
writeDouble(double v)
|
void |
writeFloat(float v)
|
void |
writeInt(int v)
|
void |
writeLong(long v)
|
void |
writeShort(int v)
|
void |
writeUTF(String s)
|
Method Detail |
---|
write
void write(int b)
- Specified by:
write
in interfaceDataOutput
write
void write(byte[] b)
- Specified by:
write
in interfaceDataOutput
write
void write(byte[] b, int off, int len)
- Specified by:
write
in interfaceDataOutput
writeBoolean
void writeBoolean(boolean v)
- Specified by:
writeBoolean
in interfaceDataOutput
writeByte
void writeByte(int v)
- Specified by:
writeByte
in interfaceDataOutput
writeShort
void writeShort(int v)
- Specified by:
writeShort
in interfaceDataOutput
writeChar
void writeChar(int v)
- Specified by:
writeChar
in interfaceDataOutput
writeInt
void writeInt(int v)
- Specified by:
writeInt
in interfaceDataOutput
writeLong
void writeLong(long v)
- Specified by:
writeLong
in interfaceDataOutput
writeFloat
void writeFloat(float v)
- Specified by:
writeFloat
in interfaceDataOutput
writeDouble
void writeDouble(double v)
- Specified by:
writeDouble
in interfaceDataOutput
writeChars
void writeChars(String s)
- Specified by:
writeChars
in interfaceDataOutput
writeUTF
void writeUTF(String s)
- Specified by:
writeUTF
in interfaceDataOutput
writeBytes
@Deprecated void writeBytes(String s)
- Deprecated. This method is dangerous as it discards the high byte of
every character. For UTF-8, use
write(s.getBytes(Charsets.UTF_8))
.- Specified by:
writeBytes
in interfaceDataOutput
toByteArray
byte[] toByteArray()
- Returns the contents that have been written to this instance,
as a byte array.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright © 2010-2012. All Rights Reserved.
© 2015 - 2025 Weber Informatics LLC | Privacy Policy