public class XmlOutputWriterBase extends Object
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
m_intag |
| Constructor and Description |
|---|
XmlOutputWriterBase(Writer w) |
| Modifier and Type | Method and Description |
|---|---|
void |
attr(String name,
boolean value) |
void |
attr(String name,
int value) |
void |
attr(String name,
long value)
Write a simple numeric attribute thingy.
|
void |
attr(String name,
String value)
Appends an attribute to the last tag.
|
void |
closetag(String name) |
void |
dec() |
void |
endAndCloseXmltag()
Ends a tag by adding />.
|
void |
endtag()
Ends a tag by adding a > only.
|
protected Writer |
getWriter() |
void |
inc() |
boolean |
isIndentEnabled() |
void |
nl() |
protected void |
println() |
void |
rawAttr(String name,
String value) |
void |
tag(String tagname)
Writes a tag start.
|
void |
text(String s)
Writes string data.
|
void |
writeRaw(CharSequence s) |
protected void |
writeRaw(String s,
int off,
int len) |
public XmlOutputWriterBase(Writer w)
protected Writer getWriter()
public void text(String s) throws IOException
IOExceptionprotected void println()
throws IOException
IOExceptionpublic void nl()
throws IOException
IOExceptionpublic void inc()
public void dec()
public boolean isIndentEnabled()
public void tag(String tagname) throws IOException
namespace - tagname - IOExceptionpublic void endtag()
throws IOException
IOExceptionpublic void endAndCloseXmltag()
throws IOException
IOExceptionpublic void closetag(String name) throws IOException
IOExceptionpublic void attr(String name, String value) throws IOException
namespace - name - value - IOExceptionpublic void rawAttr(String name, String value) throws IOException
IOExceptionpublic void attr(String name, long value) throws IOException
namespace - name - value - IOExceptionpublic void attr(String name, int value) throws IOException
IOExceptionpublic void attr(String name, boolean value) throws IOException
IOExceptionpublic void writeRaw(CharSequence s) throws IOException
IOExceptionprotected void writeRaw(String s, int off, int len) throws IOException
IOExceptionCopyright © 2017 etc.to. All rights reserved.