|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.mortbay.io.BufferUtil
public class BufferUtil
Buffer utility methods.
Constructor Summary | |
---|---|
BufferUtil()
|
Method Summary | |
---|---|
static boolean |
isPrefix(Buffer prefix,
Buffer buffer)
|
static void |
prependHexInt(Buffer buffer,
int n)
Add hex integer BEFORE current getIndex. |
static void |
putCRLF(Buffer buffer)
|
static void |
putDecInt(Buffer buffer,
int n)
|
static void |
putDecLong(Buffer buffer,
long n)
|
static void |
putHexInt(Buffer buffer,
int n)
|
static Buffer |
toBuffer(long value)
|
static int |
toInt(Buffer buffer)
Convert buffer to an integer. |
static long |
toLong(Buffer buffer)
Convert buffer to an long. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public BufferUtil()
Method Detail |
---|
public static int toInt(Buffer buffer)
buffer
- A buffer containing an integer. The position is not changed.
public static long toLong(Buffer buffer)
buffer
- A buffer containing an integer. The position is not changed.
public static void putHexInt(Buffer buffer, int n)
public static void prependHexInt(Buffer buffer, int n)
buffer
- n
- public static void putDecInt(Buffer buffer, int n)
public static void putDecLong(Buffer buffer, long n)
public static Buffer toBuffer(long value)
public static void putCRLF(Buffer buffer)
public static boolean isPrefix(Buffer prefix, Buffer buffer)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |