SimpleCharStream { public void ReInit(java.io.Reader dstream, int startline, int startcolumn, int buffersize) { inputStream = dstream; line = startline; column = startcolumn - 1; if (buffer == null || buffersize != buffer.length) { available = bufsize = buffersize; buffer = new char[buffersize]; bufline = new int[buffersize]; bufcolumn = new int[buffersize]; } prevCharIsLF = prevCharIsCR = false; tokenBegin = inBuf = maxNextCharInd = 0; bufpos = -1; } SimpleCharStream(java.io.Reader dstream, int startline,
  int startcolumn, int buffersize);  SimpleCharStream(java.io.Reader dstream, int startline,
                          int startcolumn);  SimpleCharStream(java.io.Reader dstream);  SimpleCharStream(java.io.InputStream dstream, String encoding, int startline,
  int startcolumn, int buffersize);  SimpleCharStream(java.io.InputStream dstream, int startline,
  int startcolumn, int buffersize);  SimpleCharStream(java.io.InputStream dstream, String encoding, int startline,
                          int startcolumn);  SimpleCharStream(java.io.InputStream dstream, int startline,
                          int startcolumn);  SimpleCharStream(java.io.InputStream dstream, String encoding);  SimpleCharStream(java.io.InputStream dstream); static char BeginToken(); static char readChar(); @Deprecated /** * @deprecated * @see #getEndColumn */ static int getColumn(); @Deprecated /** * @deprecated * @see #getEndLine */ static int getLine(); static int getEndColumn(); static int getEndLine(); static int getBeginColumn(); static int getBeginLine(); static void backup(int amount); void ReInit(java.io.Reader dstream, int startline,
  int startcolumn, int buffersize); void ReInit(java.io.Reader dstream, int startline,
                     int startcolumn); void ReInit(java.io.Reader dstream); void ReInit(java.io.InputStream dstream, String encoding, int startline,
                          int startcolumn, int buffersize); void ReInit(java.io.InputStream dstream, int startline,
                          int startcolumn, int buffersize); void ReInit(java.io.InputStream dstream, String encoding); void ReInit(java.io.InputStream dstream); void ReInit(java.io.InputStream dstream, String encoding, int startline,
                     int startcolumn); void ReInit(java.io.InputStream dstream, int startline,
                     int startcolumn); static String GetImage(); static char[] GetSuffix(int len); static void Done(); static void adjustBeginLineColumn(int newLine, int newCol); static final boolean staticFlag; static public int bufpos; }
@Test public void testInit()throws Exception{ InputStream inputStream_empty = null; simpleCharStream = new SimpleCharStream(reader,1,1,1); Assert.assertTrue(simpleCharStream != null); simpleCharStream.ReInit(reader_empty, 1, 1, 1); simpleCharStream = new SimpleCharStream(reader,1,1); Assert.assertTrue(simpleCharStream != null); simpleCharStream.ReInit(reader_empty, 1, 1); simpleCharStream = new SimpleCharStream(reader); Assert.assertTrue(simpleCharStream != null); simpleCharStream.ReInit(reader_empty); simpleCharStream = new SimpleCharStream(inputStream,null,1,1,1); Assert.assertTrue(simpleCharStream != null); simpleCharStream.ReInit(inputStream, null, 1, 1, 1); simpleCharStream.ReInit(reader_empty); simpleCharStream = new SimpleCharStream(inputStream,null,1,1); Assert.assertTrue(simpleCharStream != null); simpleCharStream.ReInit(inputStream, null, 1, 1); simpleCharStream.ReInit(reader_empty); simpleCharStream = new SimpleCharStream(inputStream,1,1); Assert.assertTrue(simpleCharStream != null); simpleCharStream.ReInit(inputStream, 1, 1); simpleCharStream.ReInit(reader_empty); simpleCharStream = new SimpleCharStream(inputStream,null); Assert.assertTrue(simpleCharStream != null); simpleCharStream.ReInit(inputStream, null); simpleCharStream.ReInit(reader_empty); simpleCharStream = new SimpleCharStream(inputStream); Assert.assertTrue(simpleCharStream != null); simpleCharStream.ReInit(inputStream); simpleCharStream.ReInit(reader_empty); }