public class SwappedDataOutputStream extends Object implements DataOutput, Closeable
| Constructor and Description |
|---|
SwappedDataOutputStream(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 val) |
void |
writeBoolean(boolean val) |
void |
writeByte(int val) |
void |
writeBytes(String val) |
void |
writeChar(int val) |
void |
writeChars(String s) |
void |
writeDouble(double val) |
void |
writeFloat(float val) |
void |
writeInt(int val) |
void |
writeLong(long val) |
void |
writeShort(int val) |
void |
writeUTF(String s) |
public SwappedDataOutputStream(OutputStream stream)
public void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableIOExceptionpublic void write(int val)
throws IOException
write in interface DataOutputIOExceptionpublic void write(byte[] bytes)
throws IOException
write in interface DataOutputIOExceptionpublic void write(byte[] bytes,
int offset,
int length)
throws IOException
write in interface DataOutputIOExceptionpublic void writeBoolean(boolean val)
throws IOException
writeBoolean in interface DataOutputIOExceptionpublic void writeByte(int val)
throws IOException
writeByte in interface DataOutputIOExceptionpublic void writeShort(int val)
throws IOException
writeShort in interface DataOutputIOExceptionpublic void writeChar(int val)
throws IOException
writeChar in interface DataOutputIOExceptionpublic void writeInt(int val)
throws IOException
writeInt in interface DataOutputIOExceptionpublic void writeLong(long val)
throws IOException
writeLong in interface DataOutputIOExceptionpublic void writeFloat(float val)
throws IOException
writeFloat in interface DataOutputIOExceptionpublic void writeDouble(double val)
throws IOException
writeDouble in interface DataOutputIOExceptionpublic void writeBytes(String val) throws IOException
writeBytes in interface DataOutputIOExceptionpublic void writeChars(String s) throws IOException
writeChars in interface DataOutputIOExceptionpublic void writeUTF(String s) throws IOException
writeUTF in interface DataOutputIOExceptionCopyright © 2018. All rights reserved.