Class TokenFilter.DeleteCharacters

    • Constructor Detail

      • DeleteCharacters

        public DeleteCharacters()
    • Method Detail

      • setChars

        public void setChars​(java.lang.String deleteChars)
        Set the list of characters to delete
        Parameters:
        deleteChars - the list of characters
      • filter

        public java.lang.String filter​(java.lang.String string)
        remove characters from a string
        Specified by:
        filter in interface TokenFilter.Filter
        Parameters:
        string - the string to remove the characters from
        Returns:
        the converted string
      • chain

        public java.io.Reader chain​(java.io.Reader reader)
        factory method to provide a reader that removes the characters from a reader as part of a filter chain
        Specified by:
        chain in interface ChainableReader
        Parameters:
        reader - the reader object
        Returns:
        the chained reader object