Package com.google.common.io
Class LittleEndianDataOutputStream
java.lang.Object
java.io.OutputStream
java.io.FilterOutputStream
com.google.common.io.LittleEndianDataOutputStream
- All Implemented Interfaces:
Closeable,DataOutput,Flushable,AutoCloseable
@Beta
@Deprecated(since="2022-12-01")
public class LittleEndianDataOutputStream
extends FilterOutputStream
implements DataOutput
Deprecated.
The Google Guava Core Libraries are deprecated and will not be part of the AEM SDK after April 2023
An implementation of
DataOutput that uses little-endian byte ordering
for writing char, short, int, float,
double, and long values.
Note: This class intentionally violates the specification of its
supertype DataOutput, which explicitly requires big-endian byte
order.
- Since:
- 8.0
-
Constructor Summary
ConstructorsConstructorDescriptionDeprecated.Creates aLittleEndianDataOutputStreamthat wraps the given stream. -
Method Summary
Modifier and TypeMethodDescriptionvoidwrite(byte[] b, int off, int len) Deprecated.voidwriteBoolean(boolean v) Deprecated.voidwriteByte(int v) Deprecated.voidwriteBytes(String s) Deprecated.The semantics ofwriteBytes(String s)are considered dangerous.voidwriteChar(int v) Deprecated.Writes a char as specified byDataOutputStream.writeChar(int), except using little-endian byte order.voidwriteChars(String s) Deprecated.Writes aStringas specified byDataOutputStream.writeChars(String), except each character is written using little-endian byte order.voidwriteDouble(double v) Deprecated.Writes adoubleas specified byDataOutputStream.writeDouble(double), except using little-endian byte order.voidwriteFloat(float v) Deprecated.Writes afloatas specified byDataOutputStream.writeFloat(float), except using little-endian byte order.voidwriteInt(int v) Deprecated.Writes anintas specified byDataOutputStream.writeInt(int), except using little-endian byte order.voidwriteLong(long v) Deprecated.Writes alongas specified byDataOutputStream.writeLong(long), except using little-endian byte order.voidwriteShort(int v) Deprecated.Writes ashortas specified byDataOutputStream.writeShort(int), except using little-endian byte order.voidDeprecated.Methods inherited from class java.io.FilterOutputStream
close, flush, write, writeMethods inherited from class java.io.OutputStream
nullOutputStreamMethods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.io.DataOutput
write, write
-
Constructor Details
-
LittleEndianDataOutputStream
Deprecated.Creates aLittleEndianDataOutputStreamthat wraps the given stream.- Parameters:
out- the stream to delegate to
-
-
Method Details
-
write
Deprecated.- Specified by:
writein interfaceDataOutput- Overrides:
writein classFilterOutputStream- Throws:
IOException
-
writeBoolean
Deprecated.- Specified by:
writeBooleanin interfaceDataOutput- Throws:
IOException
-
writeByte
Deprecated.- Specified by:
writeBytein interfaceDataOutput- Throws:
IOException
-
writeBytes
Deprecated.The semantics ofwriteBytes(String s)are considered dangerous. Please usewriteUTF(String s),writeChars(String s)or another write method instead.- Specified by:
writeBytesin interfaceDataOutput- Throws:
IOException
-
writeChar
Deprecated.Writes a char as specified byDataOutputStream.writeChar(int), except using little-endian byte order.- Specified by:
writeCharin interfaceDataOutput- Throws:
IOException- if an I/O error occurs
-
writeChars
Deprecated.Writes aStringas specified byDataOutputStream.writeChars(String), except each character is written using little-endian byte order.- Specified by:
writeCharsin interfaceDataOutput- Throws:
IOException- if an I/O error occurs
-
writeDouble
Deprecated.Writes adoubleas specified byDataOutputStream.writeDouble(double), except using little-endian byte order.- Specified by:
writeDoublein interfaceDataOutput- Throws:
IOException- if an I/O error occurs
-
writeFloat
Deprecated.Writes afloatas specified byDataOutputStream.writeFloat(float), except using little-endian byte order.- Specified by:
writeFloatin interfaceDataOutput- Throws:
IOException- if an I/O error occurs
-
writeInt
Deprecated.Writes anintas specified byDataOutputStream.writeInt(int), except using little-endian byte order.- Specified by:
writeIntin interfaceDataOutput- Throws:
IOException- if an I/O error occurs
-
writeLong
Deprecated.Writes alongas specified byDataOutputStream.writeLong(long), except using little-endian byte order.- Specified by:
writeLongin interfaceDataOutput- Throws:
IOException- if an I/O error occurs
-
writeShort
Deprecated.Writes ashortas specified byDataOutputStream.writeShort(int), except using little-endian byte order.- Specified by:
writeShortin interfaceDataOutput- Throws:
IOException- if an I/O error occurs
-
writeUTF
Deprecated.- Specified by:
writeUTFin interfaceDataOutput- Throws:
IOException
-