|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.thimbleware.jmemcached.util.BufferUtils
public class BufferUtils
| Constructor Summary | |
|---|---|
BufferUtils()
|
|
| Method Summary | |
|---|---|
static int |
atoi(org.jboss.netty.buffer.ChannelBuffer s)
|
static long |
atol(org.jboss.netty.buffer.ChannelBuffer s)
|
static org.jboss.netty.buffer.ChannelBuffer |
itoa(int i)
Blatant copy of Integer.toString, but returning a byte array instead of a String, as string charset decoding/encoding was killing us on performance. |
static org.jboss.netty.buffer.ChannelBuffer |
ltoa(long i)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public BufferUtils()
| Method Detail |
|---|
public static int atoi(org.jboss.netty.buffer.ChannelBuffer s)
throws java.lang.NumberFormatException
java.lang.NumberFormatException
public static long atol(org.jboss.netty.buffer.ChannelBuffer s)
throws java.lang.NumberFormatException
java.lang.NumberFormatExceptionpublic static org.jboss.netty.buffer.ChannelBuffer itoa(int i)
i - integer to convert
public static org.jboss.netty.buffer.ChannelBuffer ltoa(long i)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||