Class ColognePhonetic.CologneOutputBuffer

java.lang.Object
org.apache.commons.codec.language.ColognePhonetic.CologneBuffer
org.apache.commons.codec.language.ColognePhonetic.CologneOutputBuffer
Enclosing class:
ColognePhonetic

private final class ColognePhonetic.CologneOutputBuffer extends ColognePhonetic.CologneBuffer
  • Field Details

    • lastCode

      private char lastCode
  • Constructor Details

    • CologneOutputBuffer

      public CologneOutputBuffer(int buffSize)
  • Method Details

    • copyData

      protected char[] copyData(int start, int length)
      Specified by:
      copyData in class ColognePhonetic.CologneBuffer
    • put

      public void put(char code)
      Stores the next code in the output buffer, keeping track of the previous code. '0' is only stored if it is the first entry. Ignored chars are never stored. If the code is the same as the last code (whether stored or not) it is not stored.
      Parameters:
      code - the code to store.