Initialize a new instance of the Input class with the specified source. @param source Reader object that supplies the input to be processed
(Reader source)
| 61 | * @param source {@link Reader} object that supplies the input to be processed |
| 62 | */ |
| 63 | public Input(Reader source) { |
| 64 | this.source = Require.nonNull("Source", source); |
| 65 | this.buffer = new char[BUFFER_SIZE + MEMORY_SIZE]; |
| 66 | this.filled = 0; |
| 67 | this.position = -1; |
| 68 | } |
| 69 | |
| 70 | /** |
| 71 | * Initialize a new instance of the {@link Input} class that reads directly from a string. |