| java.lang.Object org.jicarilla.http.util.NioUtil
NioUtil | public class NioUtil (Code) | | author: Leo Simons version: $Id: NioUtil.java,v 1.4 2004/02/26 16:51:54 lsimons Exp $ |
Method Summary | |
public static void | append(StringBuffer buffer, ByteBuffer byteBuffer) Append the bytes in a buffer, converted to characters
(where 1 byte -> 1 char, not 2 bytes -> 1 char), to
the provided StringBuffer. | public static ByteBuffer | toByteBuffer(String string) | public static ByteBuffer | toByteBuffer(int num) | public static char[] | toCharArray(ByteBuffer byteBuffer) Convert the bytes in a buffer to characters and return
them (where 1 byte -> 1 char, not 2 bytes -> 1 char). | public static int | toInteger(ByteBuffer byteBuffer) | public static String | toString(ByteBuffer byteBuffer) Convert the bytes in a buffer to characters and return
them (where 1 byte -> 1 char, not 2 bytes -> 1 char) as
a String. | public static String | toString(ByteBuffer[] byteBuffers) Convert the bytes in a set of buffers to characters and return
them (where 1 byte -> 1 char, not 2 bytes -> 1 char) as
a String. |
append | public static void append(StringBuffer buffer, ByteBuffer byteBuffer)(Code) | | Append the bytes in a buffer, converted to characters
(where 1 byte -> 1 char, not 2 bytes -> 1 char), to
the provided StringBuffer.
Parameters: buffer - Parameters: byteBuffer - |
toByteBuffer | public static ByteBuffer toByteBuffer(String string)(Code) | | |
toByteBuffer | public static ByteBuffer toByteBuffer(int num)(Code) | | |
toCharArray | public static char[] toCharArray(ByteBuffer byteBuffer)(Code) | | Convert the bytes in a buffer to characters and return
them (where 1 byte -> 1 char, not 2 bytes -> 1 char).
Parameters: byteBuffer - |
toInteger | public static int toInteger(ByteBuffer byteBuffer)(Code) | | |
toString | public static String toString(ByteBuffer byteBuffer)(Code) | | Convert the bytes in a buffer to characters and return
them (where 1 byte -> 1 char, not 2 bytes -> 1 char) as
a String.
Parameters: byteBuffer - |
toString | public static String toString(ByteBuffer[] byteBuffers)(Code) | | Convert the bytes in a set of buffers to characters and return
them (where 1 byte -> 1 char, not 2 bytes -> 1 char) as
a String.
Parameters: byteBuffers - |
|
|