Package com.google.common.io
Interface ByteArrayDataOutput
-
- All Superinterfaces:
java.io.DataOutput
@Deprecated(since="2022-12-01") public interface ByteArrayDataOutput extends java.io.DataOutputDeprecated.The Google Guava Core Libraries are deprecated and will not be part of the AEM SDK after April 2023An extension ofDataOutputfor writing to in-memory byte arrays; its methods offer identical functionality but do not throwIOException.- Since:
- 1.0
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description byte[]toByteArray()Deprecated.Returns the contents that have been written to this instance, as a byte array.voidwrite(byte[] b)Deprecated.voidwrite(byte[] b, int off, int len)Deprecated.voidwrite(int b)Deprecated.voidwriteBoolean(boolean v)Deprecated.voidwriteByte(int v)Deprecated.voidwriteBytes(java.lang.String s)Deprecated.This method is dangerous as it discards the high byte of every character.voidwriteChar(int v)Deprecated.voidwriteChars(java.lang.String s)Deprecated.voidwriteDouble(double v)Deprecated.voidwriteFloat(float v)Deprecated.voidwriteInt(int v)Deprecated.voidwriteLong(long v)Deprecated.voidwriteShort(int v)Deprecated.voidwriteUTF(java.lang.String s)Deprecated.
-
-
-
Method Detail
-
write
void write(int b)
Deprecated.- Specified by:
writein interfacejava.io.DataOutput
-
write
void write(byte[] b)
Deprecated.- Specified by:
writein interfacejava.io.DataOutput
-
write
void write(byte[] b, int off, int len)Deprecated.- Specified by:
writein interfacejava.io.DataOutput
-
writeBoolean
void writeBoolean(boolean v)
Deprecated.- Specified by:
writeBooleanin interfacejava.io.DataOutput
-
writeByte
void writeByte(int v)
Deprecated.- Specified by:
writeBytein interfacejava.io.DataOutput
-
writeShort
void writeShort(int v)
Deprecated.- Specified by:
writeShortin interfacejava.io.DataOutput
-
writeChar
void writeChar(int v)
Deprecated.- Specified by:
writeCharin interfacejava.io.DataOutput
-
writeInt
void writeInt(int v)
Deprecated.- Specified by:
writeIntin interfacejava.io.DataOutput
-
writeLong
void writeLong(long v)
Deprecated.- Specified by:
writeLongin interfacejava.io.DataOutput
-
writeFloat
void writeFloat(float v)
Deprecated.- Specified by:
writeFloatin interfacejava.io.DataOutput
-
writeDouble
void writeDouble(double v)
Deprecated.- Specified by:
writeDoublein interfacejava.io.DataOutput
-
writeChars
void writeChars(java.lang.String s)
Deprecated.- Specified by:
writeCharsin interfacejava.io.DataOutput
-
writeUTF
void writeUTF(java.lang.String s)
Deprecated.- Specified by:
writeUTFin interfacejava.io.DataOutput
-
writeBytes
@Deprecated void writeBytes(java.lang.String s)
Deprecated.This method is dangerous as it discards the high byte of every character. For UTF-8, usewrite(s.getBytes(Charsets.UTF_8)).- Specified by:
writeBytesin interfacejava.io.DataOutput
-
toByteArray
byte[] toByteArray()
Deprecated.Returns the contents that have been written to this instance, as a byte array.
-
-