Package ru.yandex.clickhouse.response
Class StreamSplitter
- java.lang.Object
-
- ru.yandex.clickhouse.response.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(InputStream delegate, byte sep)StreamSplitter(InputStream delegate, byte sep, int buflen)StreamSplitter(ByteFragment bf, byte sep)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()booleanisClosed()voidmark()ByteFragmentnext()protected intreadFromStream()voidreset()StringtoString()
-
-
-
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()
-
-