Package org.apache.mina.util.byteaccess
Interface IoRelativeWriter
-
- All Known Subinterfaces:
ByteArray.Cursor
- All Known Implementing Classes:
CompositeByteArrayRelativeWriter
public interface IoRelativeWriterProvides relative read access to a sequence of bytes.- Author:
- Apache MINA Project
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description intgetRemaining()booleanhasRemaining()ByteOrderorder()voidput(byte b)Puts abyteand advances the reader.voidput(IoBuffer bb)Puts enough bytes to fill theIoBufferand advances the reader.voidputChar(char c)Puts acharand advances the reader.voidputDouble(double d)Puts adoubleand advances the reader.voidputFloat(float f)Puts afloatand advances the reader.voidputInt(int i)Puts anintand advances the reader.voidputLong(long l)Puts alongand advances the reader.voidputShort(short s)Puts ashortand advances the reader.voidskip(int length)Advances the writer by the given number of bytes.
-
-
-
Method Detail
-
getRemaining
int getRemaining()
- Returns:
- the number of remaining bytes that can be read.
-
hasRemaining
boolean hasRemaining()
- Returns:
- if there are any remaining bytes that can be read.
-
skip
void skip(int length)
Advances the writer by the given number of bytes.- Parameters:
length- The number of bytes to skip
-
order
ByteOrder order()
- Returns:
- the bytes' order
-
put
void put(byte b)
Puts abyteand advances the reader.- Parameters:
b- The byte to put
-
put
void put(IoBuffer bb)
Puts enough bytes to fill theIoBufferand advances the reader.- Parameters:
bb- The bytes to put
-
putShort
void putShort(short s)
Puts ashortand advances the reader.- Parameters:
s- The short to put
-
putInt
void putInt(int i)
Puts anintand advances the reader.- Parameters:
i- The int to put
-
putLong
void putLong(long l)
Puts alongand advances the reader.- Parameters:
l- The long to put
-
putFloat
void putFloat(float f)
Puts afloatand advances the reader.- Parameters:
f- The float to put
-
putDouble
void putDouble(double d)
Puts adoubleand advances the reader.- Parameters:
d- The double to put
-
putChar
void putChar(char c)
Puts acharand advances the reader.- Parameters:
c- The char to put
-
-