01: package antlr;
02:
03: /* ANTLR Translator Generator
04: * Project led by Terence Parr at http://www.cs.usfca.edu
05: * Software rights: http://www.antlr.org/license.html
06: */
07:
08: /**A Stream of characters fed to the lexer from a InputStream that can
09: * be rewound via mark()/rewind() methods.
10: * <p>
11: * A dynamic array is used to buffer up all the input characters. Normally,
12: * "k" characters are stored in the buffer. More characters may be stored during
13: * guess mode (testing syntactic predicate), or when LT(i>k) is referenced.
14: * Consumption of characters is deferred. In other words, reading the next
15: * character is not done by conume(), but deferred until needed by LA or LT.
16: * <p>
17: *
18: * @see antlr.CharQueue
19: */
20: // SAS: added this class to handle Binary input w/ FileInputStream
21: import java.io.InputStream;
22:
23: public class ByteBuffer extends InputBuffer {
24: /** Create a character buffer */
25: public ByteBuffer(InputStream input) {
26: super(input);
27: }
28: }
|