Package com.google.common.io
Interface ByteArrayDataOutput
-
- All Superinterfaces:
java.io.DataOutput
@Deprecated(since="2022-12-01") public interface ByteArrayDataOutput extends java.io.DataOutput
Deprecated.The Google Guava Core Libraries are deprecated and will not be part of the AEM SDK after April 2023An extension ofDataOutput
for 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.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(java.lang.String s)
Deprecated.This method is dangerous as it discards the high byte of every character.void
writeChar(int v)
Deprecated.void
writeChars(java.lang.String s)
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(java.lang.String s)
Deprecated.
-
-
-
Method Detail
-
write
void write(int b)
Deprecated.- Specified by:
write
in interfacejava.io.DataOutput
-
write
void write(byte[] b)
Deprecated.- Specified by:
write
in interfacejava.io.DataOutput
-
write
void write(byte[] b, int off, int len)
Deprecated.- Specified by:
write
in interfacejava.io.DataOutput
-
writeBoolean
void writeBoolean(boolean v)
Deprecated.- Specified by:
writeBoolean
in interfacejava.io.DataOutput
-
writeByte
void writeByte(int v)
Deprecated.- Specified by:
writeByte
in interfacejava.io.DataOutput
-
writeShort
void writeShort(int v)
Deprecated.- Specified by:
writeShort
in interfacejava.io.DataOutput
-
writeChar
void writeChar(int v)
Deprecated.- Specified by:
writeChar
in interfacejava.io.DataOutput
-
writeInt
void writeInt(int v)
Deprecated.- Specified by:
writeInt
in interfacejava.io.DataOutput
-
writeLong
void writeLong(long v)
Deprecated.- Specified by:
writeLong
in interfacejava.io.DataOutput
-
writeFloat
void writeFloat(float v)
Deprecated.- Specified by:
writeFloat
in interfacejava.io.DataOutput
-
writeDouble
void writeDouble(double v)
Deprecated.- Specified by:
writeDouble
in interfacejava.io.DataOutput
-
writeChars
void writeChars(java.lang.String s)
Deprecated.- Specified by:
writeChars
in interfacejava.io.DataOutput
-
writeUTF
void writeUTF(java.lang.String s)
Deprecated.- Specified by:
writeUTF
in 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:
writeBytes
in interfacejava.io.DataOutput
-
toByteArray
byte[] toByteArray()
Deprecated.Returns the contents that have been written to this instance, as a byte array.
-
-