Package com.clickhouse.client.data.tsv
Class StreamSplitter
- java.lang.Object
-
- com.clickhouse.client.data.tsv.StreamSplitter
-
public class StreamSplitter extends Object
We have a stream of bytes and a separator as an input. We split the stream by the separator and pass the byte arrays to output.
-
-
Constructor Summary
Constructors Constructor Description StreamSplitter(ByteFragment bf, byte sep)
StreamSplitter(InputStream delegate, byte sep)
StreamSplitter(InputStream delegate, byte sep, int buflen)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
boolean
isClosed()
void
mark()
ByteFragment
next()
protected int
readFromStream()
void
reset()
String
toString()
-
-
-
Constructor Detail
-
StreamSplitter
public StreamSplitter(ByteFragment bf, byte sep)
-
StreamSplitter
public StreamSplitter(InputStream delegate, byte sep, int buflen)
-
StreamSplitter
public StreamSplitter(InputStream delegate, byte sep)
-
-
Method Detail
-
next
public ByteFragment next() throws IOException
- Throws:
IOException
-
readFromStream
protected int readFromStream() throws IOException
- Throws:
IOException
-
close
public void close() throws IOException
- Throws:
IOException
-
isClosed
public boolean isClosed() throws IOException
- Throws:
IOException
-
mark
public void mark()
-
reset
public void reset()
-
-