类 LazyString

  • 所有已实现的接口:
    java.util.function.Supplier<String>

    public class LazyString
    extends Object
    implements java.util.function.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)
    • 方法详细资料

      • length

        public int length()
      • get

        public String get()
        指定者:
        get 在接口中 java.util.function.Supplier<String>