January 2002
Intermediate to advanced
264 pages
8h 3m
English
java.io.DataOutputStream
This class is a slightly smaller version of the J2SE
DataOutputStream class. The class can be used to
write out primitive data types to a platform-dependent source. Most
of the methods of this class write a Java primitive data type to a
stream. The write() methods write out a single
byte or a byte array (or portion thereof) to the output stream.
flush() flushes out the I/O buffer, and
close() closes the output stream.
public classDataOutputStreamextends java.io.OutputStream implements java.io.DataOutput { // protected fields protected OutputStreamout;// constructor publicDataOutputStream(OutputStream out); // public instance methods public voidclose() throws java.io.IOException; public voidflush() throws java.ioIOException; public voidwrite(int b) throws java.io.IOException; public voidwrite(byte[] b, int off, int len) throws java.io.IOException; public final voidwriteBoolean(boolean v) throws java.io.IOException; public final voidwriteByte(int v) throws java.io.IOException; public final voidwriteChar(int v) throws java.io.IOException; public final voidwriteChars(String s) throws java.io.IOException; public final voidwriteInt(int v) throws java.io.IOException; public final voidwriteLong(long v) throws java.io.IOException; public final voidwriteShort(int v) throws java.io.IOException; public final voidwriteUTF(String str) throws java.io.IOException; }
Read now
Unlock full access