@Test public void testRead() throws Exception { final StringReader stringReader = new StringReader("hello"); final JavaCCReader javaccReader = new JavaCCReader(stringReader); final BufferedReader reader = new BufferedReader(javaccReader); assertEquals("hello", reader.readLine()); }
@Override public int read(char[] cbuf, int off, int len) throws IOException { try { return reader.read(cbuf, off, len); } catch (IOException e) { return handleIOException(e); } }
JavaCCReader extends Reader { @Override public int read(char[] cbuf, int off, int len) throws IOException { try { return reader.read(cbuf, off, len); } catch (IOException e) { return handleIOException(e); } } }
JavaCCReader extends Reader { @Override public int read(char[] cbuf, int off, int len) throws IOException { try { return reader.read(cbuf, off, len); } catch (IOException e) { return handleIOException(e); } } JavaCCReader(Reader reader); }
JavaCCReader extends Reader { @Override public int read(char[] cbuf, int off, int len) throws IOException { try { return reader.read(cbuf, off, len); } catch (IOException e) { return handleIOException(e); } } JavaCCReader(Reader reader); @Override void close(); @Override int read(char[] cbuf, int off, int len); }
JavaCCReader extends Reader { @Override public int read(char[] cbuf, int off, int len) throws IOException { try { return reader.read(cbuf, off, len); } catch (IOException e) { return handleIOException(e); } } JavaCCReader(Reader reader); @Override void close(); @Override int read(char[] cbuf, int off, int len);  }