public final class XMLWriter extends Object
| 修飾子とタイプ | メソッドと説明 |
|---|---|
void |
startTag(String tag,
Map<String,String> attributes,
boolean closeTag,
boolean escape)
Writes a tag with attributes
|
void |
startTag(String tag,
String name,
boolean closeTag) |
void |
writeArray(String name,
Iterator iter) |
void |
writeArray(String name,
Object[] val) |
void |
writeAttr(String name,
String val)
Writes the XML attribute name/val.
|
void |
writeAttr(String name,
String val,
boolean escape) |
void |
writeBool(String name,
boolean val) |
void |
writeBool(String name,
String val) |
void |
writeByte(String name,
byte val) |
void |
writeByte(String name,
String val) |
void |
writeCdataTag(String tag,
Map<String,String> attributes,
String cdata,
boolean escapeCdata,
boolean escapeAttr)
Write a complete tag w/ attributes and cdata (the cdata is not enclosed
in $lt;!
|
void |
writeDate(String name,
Date val) |
void |
writeDate(String name,
String val) |
void |
writeDouble(String name,
double val) |
void |
writeDouble(String name,
String val) |
void |
writeFloat(String name,
float val) |
void |
writeFloat(String name,
String val) |
void |
writeInt(String name,
int val) |
void |
writeInt(String name,
String val) |
void |
writeLong(String name,
long val) |
void |
writeLong(String name,
String val) |
void |
writeMap(String name,
Map<Object,Object> map)
writes a Map in the same format as a NamedList, using the stringification
of the key Object when it's non-null.
|
void |
writeNamedList(String name,
org.apache.solr.common.util.NamedList val) |
void |
writeNull(String name) |
void |
writePrim(String tag,
String name,
String val,
boolean escape) |
void |
writeShort(String name,
short val) |
void |
writeShort(String name,
String val) |
void |
writeSolrDocumentList(String name,
org.apache.solr.common.SolrDocumentList docs,
Set<String> fields) |
void |
writeStr(String name,
String val) |
void |
writeVal(String name,
Object val) |
public XMLWriter(Writer writer)
public void writeAttr(String name, String val) throws IOException
IOExceptionpublic void writeAttr(String name, String val, boolean escape) throws IOException
IOExceptionpublic void startTag(String tag, Map<String,String> attributes, boolean closeTag, boolean escape) throws IOException
tag - attributes - closeTag - escape - IOExceptionpublic void writeCdataTag(String tag, Map<String,String> attributes, String cdata, boolean escapeCdata, boolean escapeAttr) throws IOException
tag - attributes - cdata - escapeCdata - escapeAttr - IOExceptionpublic void startTag(String tag, String name, boolean closeTag) throws IOException
IOExceptionpublic final void writeSolrDocumentList(String name, org.apache.solr.common.SolrDocumentList docs, Set<String> fields) throws IOException
IOExceptionpublic void writeVal(String name, Object val) throws IOException
IOExceptionpublic void writeNamedList(String name, org.apache.solr.common.util.NamedList val) throws IOException
IOExceptionpublic void writeMap(String name, Map<Object,Object> map) throws IOException
name - map - IOExceptionNote on Returnable Datapublic void writeArray(String name, Object[] val) throws IOException
IOExceptionpublic void writeArray(String name, Iterator iter) throws IOException
IOExceptionpublic void writeNull(String name) throws IOException
IOExceptionpublic void writeStr(String name, String val) throws IOException
IOExceptionpublic void writeInt(String name, String val) throws IOException
IOExceptionpublic void writeInt(String name, int val) throws IOException
IOExceptionpublic void writeLong(String name, String val) throws IOException
IOExceptionpublic void writeLong(String name, long val) throws IOException
IOExceptionpublic void writeBool(String name, String val) throws IOException
IOExceptionpublic void writeBool(String name, boolean val) throws IOException
IOExceptionpublic void writeShort(String name, String val) throws IOException
IOExceptionpublic void writeShort(String name, short val) throws IOException
IOExceptionpublic void writeByte(String name, String val) throws IOException
IOExceptionpublic void writeByte(String name, byte val) throws IOException
IOExceptionpublic void writeFloat(String name, String val) throws IOException
IOExceptionpublic void writeFloat(String name, float val) throws IOException
IOExceptionpublic void writeDouble(String name, String val) throws IOException
IOExceptionpublic void writeDouble(String name, double val) throws IOException
IOExceptionpublic void writeDate(String name, Date val) throws IOException
IOExceptionpublic void writeDate(String name, String val) throws IOException
IOExceptionpublic void writePrim(String tag, String name, String val, boolean escape) throws IOException
IOExceptionCopyright © 2011-2014. All Rights Reserved.