public interface IoRelativeWriter
限定符和类型 | 方法和说明 |
---|---|
int |
getRemaining() |
boolean |
hasRemaining() |
java.nio.ByteOrder |
order() |
void |
put(byte b)
Puts a
byte and advances the reader. |
void |
put(IoBuffer bb)
Puts enough bytes to fill the
IoBuffer and advances the reader. |
void |
putChar(char c)
Puts a
char and advances the reader. |
void |
putDouble(double d)
Puts a
double and advances the reader. |
void |
putFloat(float f)
Puts a
float and advances the reader. |
void |
putInt(int i)
Puts an
int and advances the reader. |
void |
putLong(long l)
Puts a
long and advances the reader. |
void |
putShort(short s)
Puts a
short and advances the reader. |
void |
skip(int length)
Advances the writer by the given number of bytes.
|
int getRemaining()
boolean hasRemaining()
void skip(int length)
length
- The number of bytes to skipjava.nio.ByteOrder order()
void put(byte b)
byte
and advances the reader.b
- The byte to putvoid put(IoBuffer bb)
IoBuffer
and advances the reader.bb
- The bytes to putvoid putShort(short s)
short
and advances the reader.s
- The short to putvoid putInt(int i)
int
and advances the reader.i
- The int to putvoid putLong(long l)
long
and advances the reader.l
- The long to putvoid putFloat(float f)
float
and advances the reader.f
- The float to putvoid putDouble(double d)
double
and advances the reader.d
- The double to putvoid putChar(char c)
char
and advances the reader.c
- The char to put