类 LazyString

  • 所有已实现的接口:
    Supplier<String>

    public class LazyString
    extends Object
    implements Supplier<String>
    A lazy string that can take a byte buffer and encoding and interpret it as a string if/when requested. The string is cached and saved for any further requests. "NULL" values can be represented by a 0-len string or a null passed to LazyString(String).
    • 构造器详细资料

      • LazyString

        public LazyString​(String string)
      • LazyString

        public LazyString​(byte[] buffer,
                          int offset,
                          int length,
                          String encoding)
      • LazyString

        public LazyString​(byte[] buffer,
                          int offset,
                          int length)