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, wrapperFunction
cal, doIndent, level, req, returnFields, rsp, schema, writer
hexdigits, 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, writeStartDocumentList
doIndent, getWriter, setIndent, writeDocuments, writeSolrDocumentList, writeVal
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
unicodeEscape, writeArray, writeArray, writeBool, writeDate, writeDouble, writeFloat, writeInt, writeIterator, writeJsonIter, writeLong, writeMap, writeMap, writeNamedList, writeNamedListAsArrArr, writeNamedListAsArrMap, writeNamedListAsFlat, writeNamedListAsMapMangled, writeNamedListAsMapWithDups
doIndent, getWriter, setIndent, writeArray, writeDate, writeDouble, writeVal
protected 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 JSONWriter
IOException
public void writeNumber(String name, Number val) throws IOException
IOException
public void writeBool(String name, Boolean val) throws IOException
IOException
public void writeNull(String name) throws IOException
IOException
public void writeStr(String name, String val, boolean needsEscaping) throws IOException
IOException
public void writeLong(String name, long val) throws IOException
IOException
public void writeInt(String name, int val) throws IOException
IOException
public void writeBool(String name, boolean val) throws IOException
IOException
public void writeFloat(String name, float val) throws IOException
IOException
public void writeArrayCloser() throws IOException
IOException
public void writeArraySeparator() throws IOException
IOException
public void writeArrayOpener(int size) throws IOException, IllegalArgumentException
IOException
IllegalArgumentException
public void writeMapCloser() throws IOException
IOException
public void writeMapSeparator() throws IOException
IOException
public void writeMapOpener(int size) throws IOException, IllegalArgumentException
IOException
IllegalArgumentException
public void writeKey(String fname, boolean needsEscaping) throws IOException
IOException
public void writeByteArr(String name, byte[] buf, int offset, int len) throws IOException
IOException
public void setLevel(int level)
setLevel
in class TextResponseWriter
public int level()
level
in interface TextWriter
level
in class TextResponseWriter
public void indent() throws IOException
IOException
public void indent(int lev) throws IOException
IOException
public int incLevel()
incLevel
in interface TextWriter
incLevel
in class TextResponseWriter
public int decLevel()
decLevel
in interface TextWriter
decLevel
in class TextResponseWriter
public void close() throws IOException
TextResponseWriter
close
in interface Closeable
close
in interface AutoCloseable
close
in class TextResponseWriter
IOException
Copyright © 2000-2019 Apache Software Foundation. All Rights Reserved.