public class DataOutputStream extends FilterOutputStream implements DataOutput
Modifier and Type | Field and Description |
---|---|
protected int |
written
written
|
out
Constructor and Description |
---|
DataOutputStream(OutputStream outputstream) |
Modifier and Type | Method and Description |
---|---|
void |
flush() |
int |
size() |
void |
write(byte[] abyte0,
int i,
int j) |
void |
write(int i) |
void |
writeBoolean(boolean flag) |
void |
writeByte(int i) |
void |
writeBytes(String s) |
void |
writeChar(int i) |
void |
writeChars(String s) |
void |
writeDouble(double d) |
void |
writeFloat(float f) |
void |
writeInt(int i) |
void |
writeLong(long l) |
void |
writeShort(int i) |
void |
writeUTF(String s) |
close, write
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
write
public DataOutputStream(OutputStream outputstream)
outputstream
- ?public void flush() throws IOException
flush
in class FilterOutputStream
IOException
- ?public final int size()
public void write(int i) throws IOException
write
in interface DataOutput
write
in class FilterOutputStream
i
- ?IOException
- ?public void write(byte[] abyte0, int i, int j) throws IOException
write
in interface DataOutput
write
in class FilterOutputStream
abyte0
- ?i
- ?j
- ?IOException
- ?public final void writeBoolean(boolean flag) throws IOException
writeBoolean
in interface DataOutput
flag
- ?IOException
- ?public final void writeByte(int i) throws IOException
writeByte
in interface DataOutput
i
- ?IOException
- ?public final void writeBytes(String s) throws IOException
writeBytes
in interface DataOutput
s
- ?IOException
- ?public final void writeChar(int i) throws IOException
writeChar
in interface DataOutput
i
- ?IOException
- ?public final void writeChars(String s) throws IOException
writeChars
in interface DataOutput
s
- ?IOException
- ?public final void writeDouble(double d) throws IOException
writeDouble
in interface DataOutput
d
- ?IOException
- ?public final void writeFloat(float f) throws IOException
writeFloat
in interface DataOutput
f
- ?IOException
- ?public final void writeInt(int i) throws IOException
writeInt
in interface DataOutput
i
- ?IOException
- ?public final void writeLong(long l) throws IOException
writeLong
in interface DataOutput
l
- ?IOException
- ?public final void writeShort(int i) throws IOException
writeShort
in interface DataOutput
i
- ?IOException
- ?public final void writeUTF(String s) throws IOException
writeUTF
in interface DataOutput
s
- ?IOException
- ?