public static class SmileResponseWriter.SmileWriter extends JSONWriter
| Modifier and Type | Field and Description |
|---|---|
protected com.fasterxml.jackson.dataformat.smile.SmileGenerator |
gen |
protected OutputStream |
out |
namedListStyle, wrapperFunctioncal, doIndent, level, req, returnFields, rsp, schema, writerhexdigits, JSON_NL_ARROFARR, JSON_NL_ARROFMAP, JSON_NL_ARROFNTV, JSON_NL_FLAT, JSON_NL_MAP, JSON_NL_STYLE| Constructor and Description |
|---|
SmileWriter(OutputStream out,
SolrQueryRequest req,
SolrQueryResponse rsp) |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
done with this ResponseWriter...
|
int |
decLevel() |
int |
incLevel() |
void |
indent() |
void |
indent(int lev) |
int |
level() |
void |
setLevel(int level) |
void |
writeArrayCloser() |
void |
writeArrayOpener(int size) |
void |
writeArraySeparator() |
void |
writeBool(String name,
boolean val) |
void |
writeBool(String name,
Boolean val) |
void |
writeByteArr(String name,
byte[] buf,
int offset,
int len) |
void |
writeFloat(String name,
float val) |
void |
writeInt(String name,
int val) |
void |
writeKey(String fname,
boolean needsEscaping) |
void |
writeLong(String name,
long val) |
void |
writeMapCloser() |
void |
writeMapOpener(int size) |
void |
writeMapSeparator() |
void |
writeNull(String name) |
void |
writeNumber(String name,
Number val) |
void |
writeResponse() |
void |
writeStr(String name,
String val,
boolean needsEscaping) |
_writeChar, _writeStr, getNamedListStyle, write, writeEndDocumentList, writeSolrDocument, writeStartDocumentListdoIndent, getWriter, setIndent, writeDocuments, writeSolrDocumentList, writeValclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitunicodeEscape, writeArray, writeArray, writeBool, writeDate, writeDouble, writeFloat, writeInt, writeIterator, writeJsonIter, writeLong, writeMap, writeMap, writeNamedList, writeNamedListAsArrArr, writeNamedListAsArrMap, writeNamedListAsFlat, writeNamedListAsMapMangled, writeNamedListAsMapWithDupsdoIndent, getWriter, setIndent, writeArray, writeDate, writeDouble, writeValprotected final com.fasterxml.jackson.dataformat.smile.SmileGenerator gen
protected final OutputStream out
public SmileWriter(OutputStream out, SolrQueryRequest req, SolrQueryResponse rsp)
public void writeResponse()
throws IOException
writeResponse in class JSONWriterIOExceptionpublic void writeNumber(String name, Number val) throws IOException
IOExceptionpublic void writeBool(String name, Boolean val) throws IOException
IOExceptionpublic void writeNull(String name) throws IOException
IOExceptionpublic void writeStr(String name, String val, boolean needsEscaping) throws IOException
IOExceptionpublic void writeLong(String name, long val) throws IOException
IOExceptionpublic void writeInt(String name, int val) throws IOException
IOExceptionpublic void writeBool(String name, boolean val) throws IOException
IOExceptionpublic void writeFloat(String name, float val) throws IOException
IOExceptionpublic void writeArrayCloser()
throws IOException
IOExceptionpublic void writeArraySeparator()
throws IOException
IOExceptionpublic void writeArrayOpener(int size)
throws IOException,
IllegalArgumentException
IOExceptionIllegalArgumentExceptionpublic void writeMapCloser()
throws IOException
IOExceptionpublic void writeMapSeparator()
throws IOException
IOExceptionpublic void writeMapOpener(int size)
throws IOException,
IllegalArgumentException
IOExceptionIllegalArgumentExceptionpublic void writeKey(String fname, boolean needsEscaping) throws IOException
IOExceptionpublic void writeByteArr(String name, byte[] buf, int offset, int len) throws IOException
IOExceptionpublic void setLevel(int level)
setLevel in class TextResponseWriterpublic int level()
level in interface TextWriterlevel in class TextResponseWriterpublic void indent()
throws IOException
IOExceptionpublic void indent(int lev)
throws IOException
IOExceptionpublic int incLevel()
incLevel in interface TextWriterincLevel in class TextResponseWriterpublic int decLevel()
decLevel in interface TextWriterdecLevel in class TextResponseWriterpublic void close()
throws IOException
TextResponseWriterclose in interface Closeableclose in interface AutoCloseableclose in class TextResponseWriterIOExceptionCopyright © 2000-2020 Apache Software Foundation. All Rights Reserved.