Class IdentityTokeniser

  • All Implemented Interfaces:
    java.io.Serializable

    public class IdentityTokeniser
    extends Tokeniser
    A Tokeniser implementation that returns the input as is.
    Author:
    Craig Macdonald
    See Also:
    Serialized Form
    • Constructor Detail

      • IdentityTokeniser

        public IdentityTokeniser()
    • Method Detail

      • tokenise

        public TokenStream tokenise​(java.io.Reader reader)
        Description copied from class: Tokeniser
        Tokenises the text obtained from the specified reader.
        Specified by:
        tokenise in class Tokeniser
        Parameters:
        reader - Stream of text to be tokenised
        Returns:
        a TokenStream of the tokens found in the text.