public class ByteStringReader extends Reader
| Constructor and Description |
|---|
ByteStringReader(ByteStringParser in)
Constructs a new ByteStringReader with the provided ByteStringParser.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Closes the reader and releases any system resources associated with it.
|
int |
read()
Reads a single byte from the underlying ByteStringParser.
|
int |
read(char[] cbuf,
int off,
int len)
Reads characters into a portion of an array.
|
long |
skip(long n)
Skips over and discards n bytes of data from this input stream.
|
public ByteStringReader(ByteStringParser in)
in - The ByteStringParser to be used.net.openhft.chronicle.core.io.ClosedIllegalStateException - If the resource has been released or closed.net.openhft.chronicle.core.io.ThreadingIllegalStateException - If this resource was accessed by multiple threads in an unsafe waypublic int read()
public long skip(long n)
throws IOException
skip in class Readern - The number of bytes to be skipped.IOException - if an I/O error occurs.public int read(char[] cbuf,
int off,
int len)
throws IOException
read in class Readercbuf - Destination buffer.off - Offset at which to start storing characters.len - Maximum number of characters to read.IOException - If an I/O error occurs.Copyright © 2023. All rights reserved.