public class SegmentGenerator extends Object implements Closeable, Configured<SegmentGenerator>
| 构造器和说明 |
|---|
SegmentGenerator(Writer writer) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
close() |
void |
configured(Configurator<SegmentGenerator> by)
被配置
|
void |
initToken() |
SegmentToken |
nextToken()
预期Token
|
void |
setGeneratorFeature(int generatorFeature) |
void |
writeKey(String key)
写入KEY
|
void |
writeObjectEnd() |
SegmentGenerator |
writeObjectStart() |
void |
writeObjectValue(String value)
写入对象VALUE
|
void |
writePathKey(String key)
写入一部分KEY
|
void |
writeValue(String value)
写入VALUE
|
protected Writer writer
public SegmentGenerator(Writer writer)
public void writeKey(String key) throws IOException
IOExceptionpublic void writePathKey(String key) throws IOException
IOExceptionpublic void writeValue(String value) throws IOException
value - IOExceptionpublic void writeObjectValue(String value) throws IOException
value - IOExceptionpublic SegmentGenerator writeObjectStart() throws IOException
IOExceptionpublic void writeObjectEnd()
throws IOException
IOExceptionpublic SegmentToken nextToken()
public void initToken()
public void setGeneratorFeature(int generatorFeature)
public void close()
close 在接口中 Closeableclose 在接口中 AutoCloseablepublic void configured(Configurator<SegmentGenerator> by)
Configuredconfigured 在接口中 Configured<SegmentGenerator>by - 目标配置器Copyright © 2021. All rights reserved.