Class ColognePhonetic.CologneBuffer

java.lang.Object
org.apache.commons.codec.language.ColognePhonetic.CologneBuffer
Direct Known Subclasses:
ColognePhonetic.CologneInputBuffer, ColognePhonetic.CologneOutputBuffer
Enclosing class:
ColognePhonetic

abstract static class ColognePhonetic.CologneBuffer extends Object
This class is not thread-safe; the field length is mutable. However, it is not shared between threads, as it is constructed on demand by the method ColognePhonetic.colognePhonetic(String)
  • Field Details

    • data

      protected final char[] data
    • length

      protected int length
  • Constructor Details

    • CologneBuffer

      public CologneBuffer(char[] data)
    • CologneBuffer

      public CologneBuffer(int buffSize)
  • Method Details

    • copyData

      protected abstract char[] copyData(int start, int length)
    • length

      public int length()
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • isEmpty

      public boolean isEmpty()