Package org.apache.mina.util.byteaccess
Interface IoAbsoluteWriter
-
- All Known Subinterfaces:
ByteArray
- All Known Implementing Classes:
BufferByteArray
,CompositeByteArray
public interface IoAbsoluteWriter
Provides absolute write access to a sequence of bytes.- Author:
- Apache MINA Project
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description int
first()
int
last()
ByteOrder
order()
void
put(int index, byte b)
Puts abyte
at the given index.void
put(int index, IoBuffer bb)
Puts bytes from theIoBuffer
at the given index.void
putChar(int index, char c)
Puts achar
at the given index.void
putDouble(int index, double d)
Puts adouble
at the given index.void
putFloat(int index, float f)
Puts afloat
at the given index.void
putInt(int index, int i)
Puts anint
at the given index.void
putLong(int index, long l)
Puts along
at the given index.void
putShort(int index, short s)
Puts ashort
at the given index.
-
-
-
Method Detail
-
first
int first()
- Returns:
- the index of the first byte that can be accessed.
-
last
int last()
- Returns:
- the index after the last byte that can be accessed.
-
order
ByteOrder order()
- Returns:
- the order of the bytes.
-
put
void put(int index, byte b)
Puts abyte
at the given index.- Parameters:
index
- The positionb
- The byte to put
-
put
void put(int index, IoBuffer bb)
Puts bytes from theIoBuffer
at the given index.- Parameters:
index
- The positionbb
- The bytes to put
-
putShort
void putShort(int index, short s)
Puts ashort
at the given index.- Parameters:
index
- The positions
- The short to put
-
putInt
void putInt(int index, int i)
Puts anint
at the given index.- Parameters:
index
- The positioni
- The int to put
-
putLong
void putLong(int index, long l)
Puts along
at the given index.- Parameters:
index
- The positionl
- The long to put
-
putFloat
void putFloat(int index, float f)
Puts afloat
at the given index.- Parameters:
index
- The positionf
- The float to put
-
putDouble
void putDouble(int index, double d)
Puts adouble
at the given index.- Parameters:
index
- The positiond
- The doubvle to put
-
putChar
void putChar(int index, char c)
Puts achar
at the given index.- Parameters:
index
- The positionc
- The char to put
-
-