Package ru.yandex.clickhouse.response
Class ByteFragment
- java.lang.Object
-
- ru.yandex.clickhouse.response.ByteFragment
-
- Direct Known Subclasses:
ArrayByteFragment
public class ByteFragment extends Object
-
-
Constructor Summary
Constructors Constructor Description ByteFragment(byte[] buf, int start, int len)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ByteArrayInputStreamasStream()StringasString()StringasString(boolean unescape)intcharAt(int i)static voidescape(byte[] bytes, OutputStream stream)static ByteFragmentfromString(String str)intgetLen()booleanisEmpty()booleanisNaN()booleanisNull()intlength()ByteFragment[]split(byte sep)ByteFragmentsubseq(int start, int len)StringtoString()byte[]unescape()
-
-
-
Method Detail
-
fromString
public static ByteFragment fromString(String str)
-
asString
public String asString()
-
asString
public String asString(boolean unescape)
-
isNull
public boolean isNull()
-
isEmpty
public boolean isEmpty()
-
isNaN
public boolean isNaN()
-
split
public ByteFragment[] split(byte sep)
-
asStream
public ByteArrayInputStream asStream()
-
getLen
public int getLen()
-
unescape
public byte[] unescape()
-
escape
public static void escape(byte[] bytes, OutputStream stream) throws IOException- Throws:
IOException
-
length
public int length()
-
charAt
public int charAt(int i)
-
subseq
public ByteFragment subseq(int start, int len)
-
-