类 LazyString
- java.lang.Object
-
- com.mysql.cj.util.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(byte[] buffer, int offset, int length)LazyString(byte[] buffer, int offset, int length, String encoding)LazyString(String string)
-