java.io
Class DataOutputStream
java.lang.Object
java.io.OutputStream
java.io.FilterOutputStream
java.io.DataOutputStream
- All Implemented Interfaces:
- DataOutput
public class DataOutputStream
- extends FilterOutputStream
- implements DataOutput
Output stream that can write simple values in a binary form.
Compliance: CLDC: 1.1 complete
Compliance: J2SE: 1.4 complete
|
Field Summary |
protected int |
written
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
written
protected int written
DataOutputStream
public DataOutputStream(OutputStream out)
write
public void write(int b)
throws IOException
- Specified by:
write in interface DataOutput- Overrides:
write in class FilterOutputStream
- Throws:
IOException
write
public void write(byte[] b,
int off,
int len)
throws IOException
- Specified by:
write in interface DataOutput- Overrides:
write in class FilterOutputStream
- Throws:
IOException
flush
public void flush()
throws IOException
- Overrides:
flush in class FilterOutputStream
- Throws:
IOException
writeBoolean
public final void writeBoolean(boolean v)
throws IOException
- Specified by:
writeBoolean in interface DataOutput
- Throws:
IOException
writeByte
public final void writeByte(int v)
throws IOException
- Specified by:
writeByte in interface DataOutput
- Throws:
IOException
writeShort
public final void writeShort(int v)
throws IOException
- Specified by:
writeShort in interface DataOutput
- Throws:
IOException
writeChar
public final void writeChar(int v)
throws IOException
- Specified by:
writeChar in interface DataOutput
- Throws:
IOException
writeInt
public final void writeInt(int v)
throws IOException
- Specified by:
writeInt in interface DataOutput
- Throws:
IOException
writeLong
public final void writeLong(long v)
throws IOException
- Specified by:
writeLong in interface DataOutput
- Throws:
IOException
writeFloat
public final void writeFloat(float v)
throws IOException
- Specified by:
writeFloat in interface DataOutput
- Throws:
IOException
writeDouble
public final void writeDouble(double v)
throws IOException
- Specified by:
writeDouble in interface DataOutput
- Throws:
IOException
writeBytes
public final void writeBytes(String s)
throws IOException
- Specified by:
writeBytes in interface DataOutput
- Throws:
IOException
writeChars
public final void writeChars(String s)
throws IOException
- Specified by:
writeChars in interface DataOutput
- Throws:
IOException
writeUTF
public final void writeUTF(String s)
throws IOException
- Specified by:
writeUTF in interface DataOutput
- Throws:
IOException
size
public final int size()