Package org.apache.mina.util.byteaccess
Interface IoAbsoluteWriter
-
- All Known Subinterfaces:
ByteArray
- All Known Implementing Classes:
AbstractByteArray,BufferByteArray,CompositeByteArray
public interface IoAbsoluteWriterProvides 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 intfirst()intlast()ByteOrderorder()voidput(int index, byte b)Puts abyteat the given index.voidput(int index, IoBuffer bb)Puts bytes from theIoBufferat the given index.voidputChar(int index, char c)Puts acharat the given index.voidputDouble(int index, double d)Puts adoubleat the given index.voidputFloat(int index, float f)Puts afloatat the given index.voidputInt(int index, int i)Puts anintat the given index.voidputLong(int index, long l)Puts alongat the given index.voidputShort(int index, short s)Puts ashortat 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 abyteat the given index.- Parameters:
index- The positionb- The byte to put
-
put
void put(int index, IoBuffer bb)Puts bytes from theIoBufferat the given index.- Parameters:
index- The positionbb- The bytes to put
-
putShort
void putShort(int index, short s)Puts ashortat the given index.- Parameters:
index- The positions- The short to put
-
putInt
void putInt(int index, int i)Puts anintat the given index.- Parameters:
index- The positioni- The int to put
-
putLong
void putLong(int index, long l)Puts alongat the given index.- Parameters:
index- The positionl- The long to put
-
putFloat
void putFloat(int index, float f)Puts afloatat the given index.- Parameters:
index- The positionf- The float to put
-
putDouble
void putDouble(int index, double d)Puts adoubleat the given index.- Parameters:
index- The positiond- The doubvle to put
-
putChar
void putChar(int index, char c)Puts acharat the given index.- Parameters:
index- The positionc- The char to put
-
-