org.apache.commons.io.input

Class AbstractCharacterFilterReader

    • Field Detail

      • SKIP_NONE

        protected static final IntPredicate SKIP_NONE
        Skips nothing.
        Since:
        2.9.0
    • Constructor Detail

      • AbstractCharacterFilterReader

        protected AbstractCharacterFilterReader(Reader reader)
        Constructs a new reader.
        Parameters:
        reader - the reader to filter
      • AbstractCharacterFilterReader

        protected AbstractCharacterFilterReader(Reader reader,
                                                IntPredicate skip)
        Constructs a new reader.
        Parameters:
        reader - the reader to filter.
        skip - Skip test.
        Since:
        2.9.0
    • Method Detail

      • filter

        protected boolean filter(int ch)
        Returns true if the given character should be filtered out, false to keep the character.
        Parameters:
        ch - the character to test.
        Returns:
        true if the given character should be filtered out, false to keep the character.

Copyright © 2002–2021 The Apache Software Foundation. All rights reserved.