Package com.clickhouse.client.data.tsv
Class ByteFragment
- java.lang.Object
-
- com.clickhouse.client.data.tsv.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 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
isEmpty()
boolean
isNaN()
boolean
isNull()
int
length()
ByteFragment[]
split(byte sep)
ByteFragment
subseq(int start, int len)
String
toString()
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)
-
-