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.IllegalStateException
- if the input ByteStringParser is released.public int read()
public long skip(long n) throws IOException
skip
in class Reader
n
- 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 Reader
cbuf
- 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.