Class PreserveBreaksWhiteSpaceFilter

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.Object clone()  
      int filter​(int codepoint)
      Filters the whitespaces.
      void reset()
      Reset the filter to the same state as if the filter had been constructed but not used yet.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • PreserveBreaksWhiteSpaceFilter

        public PreserveBreaksWhiteSpaceFilter()
    • Method Detail

      • reset

        public void reset()
        Reset the filter to the same state as if the filter had been constructed but not used yet.
        Specified by:
        reset in interface WhiteSpaceFilter
      • filter

        public int filter​(int codepoint)
        Filters the whitespaces. This method returns '-1', if the whitespace should be removed from the stream; otherwise it presents a replacement character. If the codepoint is no whitespace at all, the codepoint is returned unchanged.
        Specified by:
        filter in interface WhiteSpaceFilter
        Parameters:
        codepoint -
        Returns:
      • clone

        public java.lang.Object clone()
                               throws java.lang.CloneNotSupportedException
        Specified by:
        clone in interface WhiteSpaceFilter
        Throws:
        java.lang.CloneNotSupportedException