public static Source getTokenSourceForInputStream ( InputStream in ) { SimpleCharStream inputStream = new SimpleCharStream ( in , 1 , 1 ) ; PrologParserTokenManager tokenManager = new PrologParserTokenManager ( inputStream ) ; return new TokenSource ( tokenManager ) ; }
Creates a token source on an input stream .