public class SoftReferenceWriter extends NoLockStringWriter
try(SoftReferenceWriter sw = SoftReferenceWriter.local()){
template.renderTo(sw);
return sw.toString();
}
clearCache()| 限定符和类型 | 字段和说明 |
|---|---|
static boolean |
FIX_SIZE |
static int |
INIT_SIZE |
static int |
MAX_SIZE |
buf, pos| 构造器和说明 |
|---|
SoftReferenceWriter(int size) |
| 限定符和类型 | 方法和说明 |
|---|---|
protected void |
clearCache() |
void |
close() |
static SoftReferenceWriter |
local() |
String |
toString() |
flush, write, writepublic static int INIT_SIZE
public static int MAX_SIZE
public static boolean FIX_SIZE
public static SoftReferenceWriter local()
public String toString()
toString 在类中 NoLockStringWriterpublic void close()
close 在接口中 Closeableclose 在接口中 AutoCloseableclose 在类中 NoLockStringWriterprotected void clearCache()
Copyright © 2022. All rights reserved.