public class NetworkDataOutputStream extends Object implements DataOutput, Closeable
| Constructor and Description |
|---|
NetworkDataOutputStream(DataOutputStream stream) |
NetworkDataOutputStream(OutputStream stream) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
write(byte[] bytes) |
void |
write(byte[] bytes,
int offset,
int length) |
void |
write(int bytes) |
void |
writeBoolean(boolean value) |
void |
writeByte(int value) |
void |
writeBytes(String string) |
void |
writeChar(int value) |
void |
writeChars(String string) |
void |
writeDouble(double value) |
void |
writeFloat(float value) |
void |
writeInt(int value) |
void |
writeLong(long value) |
void |
writeShort(int value) |
void |
writeUTF(String string) |
public NetworkDataOutputStream(OutputStream stream)
public NetworkDataOutputStream(DataOutputStream stream)
public void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableIOExceptionpublic void write(int bytes)
throws IOException
write in interface DataOutputIOExceptionpublic void write(@Nonnull byte[] bytes) throws IOException
write in interface DataOutputIOExceptionpublic void write(@Nonnull byte[] bytes, int offset, int length) throws IOException
write in interface DataOutputIOExceptionpublic void writeBoolean(boolean value)
throws IOException
writeBoolean in interface DataOutputIOExceptionpublic void writeByte(int value)
throws IOException
writeByte in interface DataOutputIOExceptionpublic void writeShort(int value)
throws IOException
writeShort in interface DataOutputIOExceptionpublic void writeChar(int value)
throws IOException
writeChar in interface DataOutputIOExceptionpublic void writeInt(int value)
throws IOException
writeInt in interface DataOutputIOExceptionpublic void writeLong(long value)
throws IOException
writeLong in interface DataOutputIOExceptionpublic void writeFloat(float value)
throws IOException
writeFloat in interface DataOutputIOExceptionpublic void writeDouble(double value)
throws IOException
writeDouble in interface DataOutputIOExceptionpublic void writeBytes(@Nonnull String string) throws IOException
writeBytes in interface DataOutputIOExceptionpublic void writeChars(@Nonnull String string) throws IOException
writeChars in interface DataOutputIOExceptionpublic void writeUTF(@Nonnull String string) throws IOException
writeUTF in interface DataOutputIOExceptionCopyright © 2019. All rights reserved.