code: public static Parseable newParseable(final CharSequence cs) {
          return new Parseable() {
              int i = 0;
  
              public void close() throws IOException {
              }
  
              public int read() throws IOException {
                  try {
                      return cs.charAt(i++);
                  } catch (IndexOutOfBoundsException suppressed) {
                      return Parseable.END_OF_INPUT;
                  }
              }
  
              public void unread(int ch) throws IOException {
                  i--;
              }
          };
      }
docs: Create a new {@link Parseable} wrapping the given {@link
  CharSequence}.
  
  <p>The {@link java.io.Closeable#close()} method of the resulting
  Parseable is a no-op.
  
  @param cs must not be null.
  
  @return a Parseable, never null.