Class Replacement

  • All Implemented Interfaces:
    java.io.Serializable

    public class Replacement
    extends java.lang.Object
    implements java.io.Serializable
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      Replacement​(java.lang.String line)
      if the input string contains two sections separated by a tab, the target is the second field, with all whitespace replaced by underscores.
      Replacement​(java.lang.String source, java.lang.String target)
      A version that specifies a target, which may be an empty string
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int apply​(java.lang.String[] input, int startPosition, java.lang.StringBuilder output)  
      java.lang.String getFirstToken()  
      • Methods inherited from class java.lang.Object

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

      • Replacement

        public Replacement​(java.lang.String line)
        if the input string contains two sections separated by a tab, the target is the second field, with all whitespace replaced by underscores. if the input is a single field, the target is the input with all whitespace replace by underscores.
      • Replacement

        public Replacement​(java.lang.String source,
                           java.lang.String target)
        A version that specifies a target, which may be an empty string
    • Method Detail

      • apply

        public int apply​(java.lang.String[] input,
                         int startPosition,
                         java.lang.StringBuilder output)
      • getFirstToken

        public java.lang.String getFirstToken()