lojix/logic/src/main/com/thesett/aima/logic/fol/isoprologparser/TokenSource.java
public static Source getTokenSourceForInputStream(InputStream in)
    {
        SimpleCharStream inputStream = new SimpleCharStream(in, 1, 1);
        PrologParserTokenManager tokenManager = new PrologParserTokenManager(inputStream);

        return new TokenSource(tokenManager);
    }
public static Source getTokenSourceForInputStream(InputStream in)
    {
        SimpleCharStream inputStream = new SimpleCharStream(in, 1, 1);
        PrologParserTokenManager tokenManager = new PrologParserTokenManager(inputStream);

        return new TokenSource(tokenManager);
    }
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.

@param  in The input stream to tokenize.

@return A token source.
Creates a token source on an input stream .