Class DelegatingStringIO

    • Constructor Detail

      • DelegatingStringIO

        public DelegatingStringIO​(StringEncoding encoding)
    • Method Detail

      • length

        public int length​(java.lang.String str)
        Overrides:
        length in class LatinStringIO
      • read

        public java.lang.String read​(byte[] bytes)
        Overrides:
        read in class LatinStringIO
      • write

        public byte[] write​(java.lang.String str)
        Overrides:
        write in class LatinStringIO
      • writeLengthAndString

        public void writeLengthAndString​(WriteBuffer buffer,
                                         java.lang.String str)
        Note the different implementation when compared to LatinStringIO and UnicodeStringIO: Instead of writing the length of the string, UTF8StringIO writes the length of the byte array.
        Overrides:
        writeLengthAndString in class LatinStringIO