class CharacterReader {

    String consumeToEnd() {
        String data = new String(input, pos, length-pos);
        pos = length;
        return data;
    }

      CharacterReader(String input);

}