public class DataOutputStream extends Object
| Constructor and Description |
|---|
DataOutputStream(OutputStream stream) |
| Modifier and Type | Method and Description |
|---|---|
void |
write(byte[] b) |
void |
write(byte[] b,
int off,
int len) |
void |
write(int b) |
void |
writeByte(byte value) |
void |
writeChar(char value) |
void |
writeInt(int value) |
void |
writeLong(long value) |
void |
writeShort(short value) |
void |
writeString(String value,
int length) |
public DataOutputStream(OutputStream stream)
public void writeLong(long value)
throws IOException
IOExceptionpublic void writeInt(int value)
throws IOException
IOExceptionpublic void writeShort(short value)
throws IOException
IOExceptionpublic void writeByte(byte value)
throws IOException
IOExceptionpublic void writeChar(char value)
throws IOException
IOExceptionpublic void write(byte[] b,
int off,
int len)
throws IOException
IOExceptionpublic void write(byte[] b)
throws IOException
IOExceptionpublic void write(int b)
throws IOException
IOExceptionpublic void writeString(String value, int length) throws IOException
IOExceptionCopyright © 2016. All rights reserved.