public class ByteFragment extends Object
| Modifier and Type | Field and Description |
|---|---|
protected byte[] |
buf |
protected int |
len |
protected int |
start |
| Constructor and Description |
|---|
ByteFragment(byte[] buf,
int start,
int len) |
| Modifier and Type | Method and Description |
|---|---|
ByteArrayInputStream |
asStream() |
String |
asString() |
String |
asString(boolean unescape) |
int |
charAt(int i) |
static void |
escape(byte[] bytes,
OutputStream stream) |
static ByteFragment |
fromString(String str) |
int |
getLen() |
boolean |
isNull() |
int |
length() |
ByteFragment[] |
split(byte sep) |
ByteFragment |
subseq(int start,
int len) |
String |
toString() |
byte[] |
unescape() |
protected final byte[] buf
protected final int start
protected final int len
public static ByteFragment fromString(String str)
public String asString()
public String asString(boolean unescape)
public boolean isNull()
public ByteFragment[] split(byte sep)
public ByteArrayInputStream asStream()
public int getLen()
public byte[] unescape()
public static void escape(byte[] bytes,
OutputStream stream)
throws IOException
IOExceptionpublic int length()
public int charAt(int i)
public ByteFragment subseq(int start, int len)
Copyright © 2020. All rights reserved.