DataOutput (Java SE 26 & JDK 26)
- All Known Subinterfaces:
ImageOutputStream, ObjectOutput
- All Known Implementing Classes:
DataOutputStream, FileCacheImageOutputStream, FileImageOutputStream, ImageOutputStreamImpl, MemoryCacheImageOutputStream, ObjectOutputStream, RandomAccessFile
-
Method Summary
voidwrite(byte[] b) Writes to the output stream all the bytes in array
b.voidwrite(byte[] b, int off, int len) Writes
lenbytes from arrayb, in order, to the output stream.voidwrite(int b) Writes to the output stream the eight low-order bits of the argument
b.voidwriteBoolean(boolean v) Writes a
booleanvalue to this output stream.voidwriteByte(int v) Writes to the output stream the eight low-order bits of the argument
v.voidWrites a string to the output stream.
voidwriteChar(int v) Writes a
charvalue, which is comprised of two bytes, to the output stream.voidWrites every character in the string
s, to the output stream, in order, two bytes per character.voidwriteDouble(double v) Writes a
doublevalue, which is comprised of eight bytes, to the output stream.voidwriteFloat(float v) Writes a
floatvalue, which is comprised of four bytes, to the output stream.voidwriteInt(int v) Writes an
intvalue, which is comprised of four bytes, to the output stream.voidwriteLong(long v) Writes a
longvalue, which is comprised of eight bytes, to the output stream.voidwriteShort(int v) Writes two bytes to the output stream to represent the value of the argument.
voidWrites two bytes of length information to the output stream, followed by the modified UTF-8 representation of every character in the string
s.
-
Method Details
-
write
-
write
-
write
-
writeBoolean
-
writeByte
-
writeShort
-
writeChar
-
writeInt
-
writeLong
-
writeFloat
-
writeDouble
-
writeBytes
-
writeChars
-
writeUTF
-