Name
java.io.DataOutputStream
Synopsis
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 classDataOutputStream
extends 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; }
Get Wireless Java now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.