|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.jnetpcap.util.SlidingBuffer
public class SlidingBuffer
The Class SlidingBuffer.
| Constructor Summary | |
|---|---|
SlidingBuffer(int size)
Instantiates a new sliding buffer. |
|
| Method Summary | |
|---|---|
int |
findUTF8String(long sequence,
char... delimeter)
Find ut f8 string. |
byte |
getByte(long sequence)
Gets the byte. |
byte[] |
getByteArray(long sequence,
byte[] array)
Gets the byte array. |
byte[] |
getByteArray(long sequence,
int size)
Gets the byte array. |
double |
getDouble(long sequence)
Gets the double. |
float |
getFloat(long sequence)
Gets the float. |
int |
getInt(long sequence)
Gets the int. |
long |
getLong(long sequence)
Gets the long. |
short |
getShort(long sequence)
Gets the short. |
int |
getUByte(long sequence)
Gets the u byte. |
long |
getUInt(long sequence)
Gets the u int. |
int |
getUShort(long sequence)
Gets the u short. |
char |
getUTF8Char(long sequence)
Gets the uT f8 char. |
java.lang.StringBuilder |
getUTF8String(int sequence,
java.lang.StringBuilder buf,
char... delimeter)
Gets the uT f8 string. |
java.lang.String |
getUTF8String(long sequence,
char... delimeter)
Gets the uT f8 string. |
java.lang.String |
getUTF8String(long sequence,
int length)
Gets the uT f8 string. |
java.lang.StringBuilder |
getUTF8String(long sequence,
java.lang.StringBuilder buf,
int length)
Gets the uT f8 string. |
int |
hashCode()
Hash code. |
boolean |
isInitialized()
Checks if is initialized. |
boolean |
isJMemoryBasedOwner()
Checks if is j memory based owner. |
boolean |
isOwner()
Checks if is owner. |
boolean |
isReadonly()
Checks if is readonly. |
int |
length()
Length. |
java.nio.ByteOrder |
order()
Order. |
void |
order(java.nio.ByteOrder order)
Order. |
int |
peer(java.nio.ByteBuffer peer)
Peer. |
int |
peer(JBuffer peer)
Peer. |
int |
peer(JBuffer peer,
int offset,
int length)
Peer. |
int |
peer(JMemory src)
Peer. |
void |
setByte(long sequence,
byte value)
Sets the byte. |
void |
setByteArray(long sequence,
byte[] array)
Sets the byte array. |
void |
setByteBuffer(int i,
java.nio.ByteBuffer data)
Sets the byte buffer. |
void |
setDouble(long sequence,
double value)
Sets the double. |
void |
setFloat(long sequence,
float value)
Sets the float. |
void |
setInt(long sequence,
int value)
Sets the int. |
void |
setLong(long sequence,
long value)
Sets the long. |
void |
setShort(long sequence,
short value)
Sets the short. |
void |
setUByte(long sequence,
int value)
Sets the u byte. |
void |
setUInt(long sequence,
long value)
Sets the u int. |
void |
setUShort(long sequence,
int value)
Sets the u short. |
java.lang.String |
toDebugString()
To debug string. |
java.lang.String |
toHexdump()
To hexdump. |
java.lang.String |
toHexdump(int length,
boolean address,
boolean text,
boolean data)
To hexdump. |
java.lang.String |
toString()
To string. |
int |
transferFrom(byte[] buffer)
Transfer from. |
int |
transferFrom(java.nio.ByteBuffer src,
int dstOffset)
Transfer from. |
int |
transferFrom(JBuffer buffer)
Transfer from. |
int |
transferTo(java.nio.ByteBuffer dst)
Transfer to. |
int |
transferTo(java.nio.ByteBuffer dst,
int srcOffset,
int length)
Transfer to. |
int |
transferTo(JBuffer dst)
Transfer to. |
int |
transferTo(JBuffer dst,
int srcOffset,
int length,
int dstOffset)
Transfer to. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public SlidingBuffer(int size)
size - the size| Method Detail |
|---|
public int findUTF8String(long sequence,
char... delimeter)
sequence - the sequencedelimeter - the delimeter
public byte getByte(long sequence)
sequence - the sequence
public byte[] getByteArray(long sequence,
byte[] array)
sequence - the sequencearray - the array
public byte[] getByteArray(long sequence,
int size)
sequence - the sequencesize - the size
public double getDouble(long sequence)
sequence - the sequence
public float getFloat(long sequence)
sequence - the sequence
public int getInt(long sequence)
sequence - the sequence
public long getLong(long sequence)
sequence - the sequence
public short getShort(long sequence)
sequence - the sequence
public int getUByte(long sequence)
sequence - the sequence
public long getUInt(long sequence)
sequence - the sequence
public int getUShort(long sequence)
sequence - the sequence
public char getUTF8Char(long sequence)
sequence - the sequence
public java.lang.String getUTF8String(long sequence,
char... delimeter)
sequence - the sequencedelimeter - the delimeter
public java.lang.String getUTF8String(long sequence,
int length)
sequence - the sequencelength - the length
public java.lang.StringBuilder getUTF8String(int sequence,
java.lang.StringBuilder buf,
char... delimeter)
sequence - the sequencebuf - the bufdelimeter - the delimeter
public java.lang.StringBuilder getUTF8String(long sequence,
java.lang.StringBuilder buf,
int length)
sequence - the sequencebuf - the buflength - the length
public int hashCode()
hashCode in class java.lang.ObjectObject.hashCode()public boolean isInitialized()
public boolean isJMemoryBasedOwner()
public final boolean isOwner()
public boolean isReadonly()
public java.nio.ByteOrder order()
public void order(java.nio.ByteOrder order)
order - the order
public int peer(java.nio.ByteBuffer peer)
throws PeeringException
peer - the peer
PeeringException - the peering exception
public int peer(JBuffer peer,
int offset,
int length)
throws java.lang.IndexOutOfBoundsException
peer - the peeroffset - the offsetlength - the length
java.lang.IndexOutOfBoundsException - the index out of bounds exceptionpublic int peer(JBuffer peer)
peer - the peer
public int peer(JMemory src)
src - the src
public void setByte(long sequence,
byte value)
sequence - the sequencevalue - the value
public void setByteArray(long sequence,
byte[] array)
sequence - the sequencearray - the array
public void setByteBuffer(int i,
java.nio.ByteBuffer data)
i - the idata - the data
public void setDouble(long sequence,
double value)
sequence - the sequencevalue - the value
public void setFloat(long sequence,
float value)
sequence - the sequencevalue - the value
public void setInt(long sequence,
int value)
sequence - the sequencevalue - the value
public void setLong(long sequence,
long value)
sequence - the sequencevalue - the value
public void setShort(long sequence,
short value)
sequence - the sequencevalue - the value
public void setUByte(long sequence,
int value)
sequence - the sequencevalue - the value
public void setUInt(long sequence,
long value)
sequence - the sequencevalue - the value
public void setUShort(long sequence,
int value)
sequence - the sequencevalue - the valuepublic int length()
public java.lang.String toDebugString()
public java.lang.String toHexdump()
public java.lang.String toHexdump(int length,
boolean address,
boolean text,
boolean data)
length - the lengthaddress - the addresstext - the textdata - the data
public java.lang.String toString()
toString in class java.lang.ObjectObject.toString()public int transferFrom(byte[] buffer)
buffer - the buffer
public int transferFrom(java.nio.ByteBuffer src,
int dstOffset)
src - the srcdstOffset - the dst offset
public int transferFrom(JBuffer buffer)
buffer - the buffer
public int transferTo(java.nio.ByteBuffer dst,
int srcOffset,
int length)
dst - the dstsrcOffset - the src offsetlength - the length
public int transferTo(java.nio.ByteBuffer dst)
dst - the dst
public int transferTo(JBuffer dst,
int srcOffset,
int length,
int dstOffset)
dst - the dstsrcOffset - the src offsetlength - the lengthdstOffset - the dst offset
public int transferTo(JBuffer dst)
dst - the dst
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||