|
iText 7 7.1.8 API
|
A character-stream reader that allows characters to be pushed back into the stream. More...
Public Member Functions |
|
| PushbackReader (TextReader inp, int size) | |
| Creates a new pushback reader with a pushback buffer of the given size. More... |
|
| PushbackReader (TextReader inp) | |
| Creates a new pushback reader with a one-character pushback buffer. More... |
|
| override int | Read () |
| Reads a single character. More... |
|
| override int | Read (char[] cbuf, int off, int len) |
| Reads characters into a portion of an array. More... |
|
| virtual void | Unread (int c) |
| Pushes back a single character by copying it to the front of the pushback buffer. After this method returns, the next character to be read will have the value More... |
|
| virtual void | Unread (char[] cbuf, int off, int len) |
| Pushes back a portion of an array of characters by copying it to the front of the pushback buffer. After this method returns, the next character to be read will have the value More... |
|
| virtual void | Unread (char[] cbuf) |
| Pushes back an array of characters by copying it to the front of the pushback buffer. After this method returns, the next character to be read will have the value More... |
|
Public Member Functions inherited from iText.IO.Util.FilterReader |
|
| override int | Read () |
| Reads a single character. More... |
|
| override int | Read (char[] cbuf, int off, int len) |
| Reads characters into a portion of an array. More... |
|
Protected Member Functions |
|
| override void | Dispose (bool disposing) |
| Closes the stream and releases any system resources associated with it. Once the stream has been closed, further read(), unread(), ready(), or skip() invocations will throw an IOException. Closing a previously closed stream has no effect. More... |
|
Protected Member Functions inherited from iText.IO.Util.FilterReader |
|
| FilterReader (TextReader inp) | |
| override void | Dispose (bool disposing) |
Additional Inherited Members |
|
Protected Attributes inherited from iText.IO.Util.FilterReader |
|
| TextReader | inp |
A character-stream reader that allows characters to be pushed back into the stream.
|
inline |
Creates a new pushback reader with a pushback buffer of the given size.
| in | The reader from which characters will be read |
| size | The size of the pushback buffer |
| IllegalArgumentException | if size is ≤ 0 |
|
inline |
Creates a new pushback reader with a one-character pushback buffer.
| in | The reader from which characters will be read |
|
inlineprotected |
Closes the stream and releases any system resources associated with it. Once the stream has been closed, further read(), unread(), ready(), or skip() invocations will throw an IOException. Closing a previously closed stream has no effect.
| IOException | If an I/O error occurs |
|
inline |
Reads a single character.
| IOException | If an I/O error occurs |
|
inline |
Reads characters into a portion of an array.
| cbuf | Destination buffer |
| off | Offset at which to start writing characters |
| len | Maximum number of characters to read |
| IOException | If an I/O error occurs |
|
inlinevirtual |
Pushes back an array of characters by copying it to the front of the pushback buffer. After this method returns, the next character to be read will have the value
cbuf[0], the character after that will have the value cbuf[1], and so forth.
| cbuf | Character array to push back |
| IOException | If there is insufficient room in the pushback buffer, or if some other I/O error occurs |
|
inlinevirtual |
Pushes back a portion of an array of characters by copying it to the front of the pushback buffer. After this method returns, the next character to be read will have the value
cbuf[off], the character after that will have the value cbuf[off+1], and so forth.
| cbuf | Character array |
| off | Offset of first character to push back |
| len | Number of characters to push back |
| IOException | If there is insufficient room in the pushback buffer, or if some other I/O error occurs |
|
inlinevirtual |
Pushes back a single character by copying it to the front of the pushback buffer. After this method returns, the next character to be read will have the value
(char)c.
| c | The int value representing a character to be pushed back |
| IOException | If the pushback buffer is full, or if some other I/O error occurs |