public class NIOBuffers extends Object
Modifier and Type | Class and Description |
---|---|
static class |
NIOBuffers.BufferFactory |
Constructor and Description |
---|
NIOBuffers() |
Modifier and Type | Method and Description |
---|---|
static ByteBuffer |
create(int bufsiz,
boolean directbuf) |
static StringBuilder |
decode(ByteBuffer bybuf,
int off,
int limit,
StringBuilder sb,
boolean trimwhite) |
static StringBuilder |
decode(ByteBuffer bybuf,
StringBuilder sb,
CharsetDecoder chdec) |
static CharBuffer |
decodeCB(ByteBuffer bybuf,
CharBuffer chbuf,
CharsetDecoder chdec) |
static void |
encode(byte[] databuf,
ByteBuffer bybuf) |
static ByteBuffer |
encode(byte[] databuf,
ByteBuffer bybuf,
boolean directbuf) |
static void |
encode(byte[] databuf,
int off,
int len,
ByteBuffer bybuf) |
static ByteBuffer |
encode(byte[] databuf,
int off,
int len,
ByteBuffer bybuf,
boolean directbuf) |
static ByteBuffer |
encode(CharBuffer chbuf,
ByteBuffer bybuf,
CharsetEncoder chenc,
boolean directbuf) |
static ByteBuffer |
encode(CharSequence str,
ByteBuffer bybuf,
boolean directbuf) |
static ByteBuffer |
encode(CharSequence str,
ByteBuffer bybuf,
CharsetEncoder chenc,
boolean directbuf) |
static ByteBuffer |
encode(CharSequence strbuf,
CharsetEncoder chenc,
Charset chset,
String chname,
ByteBuffer bybuf,
boolean directbuf) |
static void |
encode(CharSequence str,
int off,
int len,
ByteBuffer bybuf) |
static ByteBuffer |
encode(CharSequence str,
int off,
int len,
ByteBuffer bybuf,
boolean directbuf) |
static CharsetDecoder |
getDecoder(String charset) |
static CharsetEncoder |
getEncoder(String charset) |
static int |
transfer(ByteBuffer srcbuf,
ByteBuffer dstbuf) |
static int |
transfer(ByteBuffer srcbuf,
ByteBuffer dstbuf,
byte[] xferbuf) |
public static ByteBuffer create(int bufsiz, boolean directbuf)
public static ByteBuffer encode(CharSequence strbuf, CharsetEncoder chenc, Charset chset, String chname, ByteBuffer bybuf, boolean directbuf)
public static ByteBuffer encode(CharSequence str, ByteBuffer bybuf, CharsetEncoder chenc, boolean directbuf)
public static ByteBuffer encode(CharBuffer chbuf, ByteBuffer bybuf, CharsetEncoder chenc, boolean directbuf)
public static ByteBuffer encode(CharSequence str, ByteBuffer bybuf, boolean directbuf)
public static ByteBuffer encode(CharSequence str, int off, int len, ByteBuffer bybuf, boolean directbuf)
public static void encode(CharSequence str, int off, int len, ByteBuffer bybuf)
public static ByteBuffer encode(byte[] databuf, int off, int len, ByteBuffer bybuf, boolean directbuf)
public static ByteBuffer encode(byte[] databuf, ByteBuffer bybuf, boolean directbuf)
public static void encode(byte[] databuf, ByteBuffer bybuf)
public static void encode(byte[] databuf, int off, int len, ByteBuffer bybuf)
public static StringBuilder decode(ByteBuffer bybuf, int off, int limit, StringBuilder sb, boolean trimwhite)
public static StringBuilder decode(ByteBuffer bybuf, StringBuilder sb, CharsetDecoder chdec)
public static CharBuffer decodeCB(ByteBuffer bybuf, CharBuffer chbuf, CharsetDecoder chdec)
public static int transfer(ByteBuffer srcbuf, ByteBuffer dstbuf, byte[] xferbuf)
public static int transfer(ByteBuffer srcbuf, ByteBuffer dstbuf)
public static CharsetEncoder getEncoder(String charset)
public static CharsetDecoder getDecoder(String charset)
Copyright 2010-2018 Grey Software (Yusef Badri). All Rights Reserved.