DataOutputNameDataOutputSynopsis
DescriptionThe DataOutput interface defines methods for writing primitive data types to an output stream in a machine-independent manner. All multibyte quantities are written in a format that stores the most significant byte as the first byte and the least significant byte as the last byte. Interface Declaration
public abstract interface java.io.DataOutput { // Methods public abstract void write(byte[] b); public abstract void write(byte[] b, int off, int len); public abstract void write(int b); public abstract void writeBoolean(boolean v); public abstract void writeByte(int v); public abstract void writeBytes(String s); public abstract void writeChar(int v); public abstract void writeChars(String s); public abstract void writeDouble(double v); public abstract void writeFloat(float v); public abstract void writeInt(int v); public abstract void writeLong(long v); public abstract void writeShort(int v); public abstract void writeUTF(String str); } Methodswritepublic abstract void write(int b) throws IOException
public abstract void write(byte[] b) throws IOException
public abstract void write(byte[] b, int off, int len) throws IOException
writeBooleanpublic abstract void writeBoolean(boolean v) throws IOException
writeBytepublic abstract void writeByte(int v) throws IOException
writeBytespublic abstract void writeBytes(String s) throws IOException
writeCharpublic abstract void writeChar(int v) throws IOException
writeCharspublic abstract void writeChars(String s) throws IOException
writeDoublepublic abstract void writeDouble(double v) throws IOException
writeFloatpublic abstract void writeFloat(float v) throws IOException
writeIntpublic abstract void writeInt(int v) throws IOException
writeLongpublic abstract void writeLong(long v) throws IOException
writeShortpublic abstract void writeShort(int v) throws IOException
writeUTFpublic abstract void writeUTF(String str) throws IOException
See AlsoDataOutputStream, IOException, ObjectOutput, RandomAccessFile |
|