public class SolrJSONWriter extends Object implements JsonTextWriter
| Modifier and Type | Field and Description |
|---|---|
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| Constructor and Description |
|---|
SolrJSONWriter(Writer writer) |
SolrJSONWriter(Writer writer,
String namedListStyle) |
| Modifier and Type | Method and Description |
|---|---|
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 in interface Closeableclose in interface AutoCloseableIOExceptionpublic String getNamedListStyle()
getNamedListStyle in interface JsonTextWriterpublic void _writeChar(char c)
throws IOException
_writeChar in interface JsonTextWriterIOExceptionpublic void _writeStr(String s) throws IOException
_writeStr in interface JsonTextWriterIOExceptionpublic void setLevel(int level)
public int level()
level in interface TextWriterpublic int incLevel()
incLevel in interface TextWriterpublic int decLevel()
decLevel in interface TextWriterpublic SolrJSONWriter setIndent(boolean doIndent)
setIndent in interface TextWriterpublic boolean doIndent()
doIndent in interface TextWriterpublic Writer getWriter()
getWriter in interface TextWriterCopyright © 2000-2021 Apache Software Foundation. All Rights Reserved.