public interface TextWriter extends PushWriter
| Modifier and Type | Method and Description |
|---|---|
int |
decLevel() |
boolean |
doIndent() |
Writer |
getWriter() |
int |
incLevel() |
default void |
indent() |
default void |
indent(int lev) |
int |
level() |
TextWriter |
setIndent(boolean doIndent) |
void |
writeArray(String name,
Iterator val) |
default void |
writeArray(String name,
List l) |
default void |
writeArray(String name,
Object[] val) |
default void |
writeBool(String name,
boolean val) |
default void |
writeBool(String name,
Boolean val) |
void |
writeBool(String name,
String val)
if this form of the method is called, val is the Java string form of a boolean
|
default void |
writeByteArr(String name,
byte[] buf,
int offset,
int len) |
default void |
writeDate(String name,
Date val) |
void |
writeDate(String name,
String val)
if this form of the method is called, val is the Solr ISO8601 based date format
|
default void |
writeDouble(String name,
double val) |
void |
writeDouble(String name,
String val)
if this form of the method is called, val is the Java string form of a double
|
default void |
writeFloat(String name,
float val) |
void |
writeFloat(String name,
String val)
if this form of the method is called, val is the Java string form of a float
|
default void |
writeInt(String name,
int val) |
void |
writeInt(String name,
String val)
if this form of the method is called, val is the Java string form of an int
|
default void |
writeIterator(IteratorWriter iw)
Write an array.
|
default void |
writeLong(String name,
long val) |
void |
writeLong(String name,
String val)
if this form of the method is called, val is the Java string form of a long
|
default void |
writeMap(MapWriter mw)
Write a Map.
|
void |
writeMap(String name,
Map val,
boolean excludeOuter,
boolean isFirstVal) |
void |
writeNamedList(String name,
NamedList val) |
void |
writeNull(String name) |
default void |
writeNumber(String name,
Number val) |
void |
writeStr(String name,
String val,
boolean needsEscaping) |
default void |
writeVal(String name,
Object val) |
default void writeVal(String name, Object val) throws IOException
IOExceptionvoid writeStr(String name, String val, boolean needsEscaping) throws IOException
IOExceptionvoid writeMap(String name, Map val, boolean excludeOuter, boolean isFirstVal) throws IOException
IOExceptionvoid writeArray(String name, Iterator val) throws IOException
IOExceptionvoid writeNull(String name) throws IOException
IOExceptionvoid writeInt(String name, String val) throws IOException
IOExceptionvoid writeLong(String name, String val) throws IOException
IOExceptionvoid writeBool(String name, String val) throws IOException
IOExceptionvoid writeFloat(String name, String val) throws IOException
IOExceptionvoid writeDouble(String name, String val) throws IOException
IOExceptionvoid writeDate(String name, String val) throws IOException
IOExceptionvoid writeNamedList(String name, NamedList val) throws IOException
IOExceptionWriter getWriter()
default void writeNumber(String name, Number val) throws IOException
IOExceptiondefault void writeArray(String name, Object[] val) throws IOException
IOExceptiondefault void writeArray(String name, List l) throws IOException
IOExceptiondefault void writeDate(String name, Date val) throws IOException
IOExceptiondefault void writeByteArr(String name, byte[] buf, int offset, int len) throws IOException
IOExceptiondefault void writeInt(String name, int val) throws IOException
IOExceptiondefault void writeLong(String name, long val) throws IOException
IOExceptiondefault void writeBool(String name, boolean val) throws IOException
IOExceptiondefault void writeFloat(String name, float val) throws IOException
IOExceptiondefault void writeDouble(String name, double val) throws IOException
IOExceptiondefault void writeBool(String name, Boolean val) throws IOException
IOExceptiondefault void writeMap(MapWriter mw) throws IOException
PushWriterwriteMap in interface PushWriterIOExceptiondefault void writeIterator(IteratorWriter iw) throws IOException
PushWriterwriteIterator in interface PushWriterIOExceptiondefault void indent()
throws IOException
IOExceptionint incLevel()
int decLevel()
TextWriter setIndent(boolean doIndent)
int level()
boolean doIndent()
default void indent(int lev)
throws IOException
IOExceptionCopyright © 2000-2020 Apache Software Foundation. All Rights Reserved.