public Scanner(Context cx, String in, String origin, boolean save_comments) { init(cx, save_comments); this.input = new InputBuffer(in, origin); cx.input = this.input; // FIXME: how nicely external state altering. }
/** * This contructor is used by Flex direct AST generation. It allows Flex to pass in a specialized * InputBuffer. */ public Scanner(Context cx, InputBuffer input) { init(cx, true); this.input = input; cx.input = input; // so now we get to look around to find out who does this... }
public Scanner( Context cx, InputStream in, String encoding, String origin, boolean save_comments) { init(cx, save_comments); this.input = new InputBuffer(in, encoding, origin); cx.input = this.input; }