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
IOException
void writeStr(String name, String val, boolean needsEscaping) throws IOException
IOException
void writeMap(String name, Map val, boolean excludeOuter, boolean isFirstVal) throws IOException
IOException
void writeArray(String name, Iterator val) throws IOException
IOException
void writeNull(String name) throws IOException
IOException
void writeInt(String name, String val) throws IOException
IOException
void writeLong(String name, String val) throws IOException
IOException
void writeBool(String name, String val) throws IOException
IOException
void writeFloat(String name, String val) throws IOException
IOException
void writeDouble(String name, String val) throws IOException
IOException
void writeDate(String name, String val) throws IOException
IOException
void writeNamedList(String name, NamedList val) throws IOException
IOException
Writer getWriter()
default void writeNumber(String name, Number val) throws IOException
IOException
default void writeArray(String name, Object[] val) throws IOException
IOException
default void writeArray(String name, List l) throws IOException
IOException
default void writeDate(String name, Date val) throws IOException
IOException
default void writeByteArr(String name, byte[] buf, int offset, int len) throws IOException
IOException
default void writeInt(String name, int val) throws IOException
IOException
default void writeLong(String name, long val) throws IOException
IOException
default void writeBool(String name, boolean val) throws IOException
IOException
default void writeFloat(String name, float val) throws IOException
IOException
default void writeDouble(String name, double val) throws IOException
IOException
default void writeBool(String name, Boolean val) throws IOException
IOException
default void writeMap(MapWriter mw) throws IOException
PushWriter
writeMap
in interface PushWriter
IOException
default void writeIterator(IteratorWriter iw) throws IOException
PushWriter
writeIterator
in interface PushWriter
IOException
default void indent() throws IOException
IOException
int incLevel()
int decLevel()
TextWriter setIndent(boolean doIndent)
int level()
boolean doIndent()
default void indent(int lev) throws IOException
IOException
Copyright © 2000-2019 Apache Software Foundation. All Rights Reserved.