Class Normalizer.CharsAppendable

  • All Implemented Interfaces:
    java.lang.Appendable
    Enclosing class:
    Normalizer

    private static final class Normalizer.CharsAppendable
    extends java.lang.Object
    implements java.lang.Appendable
    An Appendable that writes into a char array with a capacity that may be less than array.length. (By contrast, CharBuffer will write beyond destLimit all the way up to array.length.)

    An overflow is only reported at the end, for the old Normalizer API functions that write to char arrays.

    • Field Summary

      Fields 
      Modifier and Type Field Description
      private char[] chars  
      private int limit  
      private int offset  
      private int start  
    • Constructor Summary

      Constructors 
      Constructor Description
      CharsAppendable​(char[] dest, int destStart, int destLimit)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.Appendable append​(char c)  
      java.lang.Appendable append​(java.lang.CharSequence s)  
      java.lang.Appendable append​(java.lang.CharSequence s, int sStart, int sLimit)  
      int length()  
      • Methods inherited from class java.lang.Object

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

      • chars

        private final char[] chars
      • start

        private final int start
      • limit

        private final int limit
      • offset

        private int offset
    • Constructor Detail

      • CharsAppendable

        public CharsAppendable​(char[] dest,
                               int destStart,
                               int destLimit)
    • Method Detail

      • length

        public int length()
      • append

        public java.lang.Appendable append​(char c)
        Specified by:
        append in interface java.lang.Appendable
      • append

        public java.lang.Appendable append​(java.lang.CharSequence s)
        Specified by:
        append in interface java.lang.Appendable
      • append

        public java.lang.Appendable append​(java.lang.CharSequence s,
                                           int sStart,
                                           int sLimit)
        Specified by:
        append in interface java.lang.Appendable