public class SolrJSONWriter extends Object implements JsonTextWriter
| 限定符和类型 | 字段和说明 |
|---|---|
protected boolean |
doIndent |
protected int |
level |
protected String |
namedListStyle |
hexdigits, JSON_NL_ARROFARR, JSON_NL_ARROFMAP, JSON_NL_ARROFNTV, JSON_NL_FLAT, JSON_NL_MAP, JSON_NL_STYLE| 构造器和说明 |
|---|
SolrJSONWriter(Writer writer) |
SolrJSONWriter(Writer writer,
String namedListStyle) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
_writeChar(char c) |
void |
_writeStr(String s) |
void |
close()
done with all writing
|
int |
decLevel() |
boolean |
doIndent() |
String |
getNamedListStyle() |
Writer |
getWriter() |
int |
incLevel() |
int |
level() |
SolrJSONWriter |
setIndent(boolean doIndent) |
void |
setLevel(int level) |
SolrJSONWriter |
writeObj(Object o) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitunicodeEscape, writeArray, writeArray, writeArrayCloser, writeArrayOpener, writeArraySeparator, writeBool, writeDate, writeDouble, writeFloat, writeInt, writeIterator, writeJsonIter, writeKey, writeLong, writeMap, writeMap, writeMapCloser, writeMapOpener, writeMapSeparator, writeNamedList, writeNamedListAsArrArr, writeNamedListAsArrMap, writeNamedListAsFlat, writeNamedListAsMapMangled, writeNamedListAsMapWithDups, writeNull, writeStrindent, indent, writeArray, writeBool, writeBool, writeByteArr, writeDate, writeDouble, writeFloat, writeInt, writeIterator, writeLong, writeMap, writeNumber, writeValprotected final String namedListStyle
protected int level
protected boolean doIndent
public SolrJSONWriter(Writer writer)
public SolrJSONWriter writeObj(Object o) throws IOException
IOExceptionpublic void close()
throws IOException
close 在接口中 Closeableclose 在接口中 AutoCloseableIOExceptionpublic String getNamedListStyle()
getNamedListStyle 在接口中 JsonTextWriterpublic void _writeChar(char c)
throws IOException
_writeChar 在接口中 JsonTextWriterIOExceptionpublic void _writeStr(String s) throws IOException
_writeStr 在接口中 JsonTextWriterIOExceptionpublic void setLevel(int level)
public int level()
level 在接口中 TextWriterpublic int incLevel()
incLevel 在接口中 TextWriterpublic int decLevel()
decLevel 在接口中 TextWriterpublic SolrJSONWriter setIndent(boolean doIndent)
setIndent 在接口中 TextWriterpublic boolean doIndent()
doIndent 在接口中 TextWriterpublic Writer getWriter()
getWriter 在接口中 TextWriterCopyright © 2006–2022 The Apache Software Foundation. All rights reserved.