public interface XMLTagWriter
Modifier and Type | Method and Description |
---|---|
void |
close()
Close writer
|
void |
closeDoc()
Close XML doc
|
void |
closeTag()
Close nearest tag
|
void |
openDoc()
Open XML doc with standard parameters
|
void |
openDoc(String version,
String encoding,
boolean standalone)
Open XML doc
|
void |
openTag(String name)
Write an xml open tag
|
void |
openTag(String ns,
String name)
Write an xml open tag
|
void |
print(String text) |
void |
printComment(String comment) |
void |
printTag(String name)
Write empty tag
|
void |
printTag(String ns,
String name)
Write empty tag
|
void |
referToDTD(String name,
String system) |
void |
referToDTD(String name,
String pid,
String ref) |
void |
setAttribute(String name,
boolean value)
Set boolean attribute
|
void |
setAttribute(String name,
byte value)
Set byte attribute
|
void |
setAttribute(String name,
char value)
Set char attribute
|
void |
setAttribute(String name,
Color value)
Set Color attribute
|
void |
setAttribute(String name,
double value)
Set double attribute
|
void |
setAttribute(String name,
float value)
Set float attribute
|
void |
setAttribute(String name,
int value)
Set int attribute
|
void |
setAttribute(String name,
long value)
Set long attribute
|
void |
setAttribute(String name,
short value)
Set short attribute
|
void |
setAttribute(String name,
String value)
Set String attribute
|
void |
setAttribute(String ns,
String name,
boolean value)
Set boolean attribute
|
void |
setAttribute(String ns,
String name,
byte value)
Set byte attribute
|
void |
setAttribute(String ns,
String name,
char value)
Set char attribute
|
void |
setAttribute(String ns,
String name,
Color value)
Set Color attribute
|
void |
setAttribute(String ns,
String name,
double value)
Set double attribute
|
void |
setAttribute(String ns,
String name,
float value)
Set float attribute
|
void |
setAttribute(String ns,
String name,
int value)
Set int attribute
|
void |
setAttribute(String ns,
String name,
long value)
Set long attribute
|
void |
setAttribute(String ns,
String name,
short value)
Set short attribute
|
void |
setAttribute(String ns,
String name,
String value)
Set String attribute
|
void openTag(String ns, String name) throws IOException
ns
- namespacename
- tagnameIOException
- if stream cannot be writtenvoid printTag(String ns, String name) throws IOException
ns
- namespacename
- tagnameIOException
- if stream cannot be writtenvoid close() throws IOException
IOException
- if stream cannot be writtenvoid openDoc() throws IOException
IOException
- if stream cannot be writtenvoid openDoc(String version, String encoding, boolean standalone) throws IOException
version
- version stringencoding
- encodingstandalone
- if XML is standaloneIOException
- if stream cannot be writtenvoid closeDoc() throws IOException
IOException
- if stream cannot be writtenvoid openTag(String name) throws IOException
name
- tagnameIOException
- if stream cannot be writtenvoid closeTag() throws IOException
IOException
- if stream cannot be writtenvoid printTag(String name) throws IOException
name
- tagnameIOException
- if stream cannot be writtenvoid printComment(String comment) throws IOException
IOException
void print(String text) throws IOException
IOException
void setAttribute(String name, String value)
name
- attribute namevalue
- attribute valuevoid setAttribute(String name, Color value)
name
- attribute namevalue
- attribute valuevoid setAttribute(String name, byte value)
name
- attribute namevalue
- attribute valuevoid setAttribute(String name, char value)
name
- attribute namevalue
- attribute valuevoid setAttribute(String name, long value)
name
- attribute namevalue
- attribute valuevoid setAttribute(String name, int value)
name
- attribute namevalue
- attribute valuevoid setAttribute(String name, short value)
name
- attribute namevalue
- attribute valuevoid setAttribute(String name, boolean value)
name
- attribute namevalue
- attribute valuevoid setAttribute(String name, float value)
name
- attribute namevalue
- attribute valuevoid setAttribute(String name, double value)
name
- attribute namevalue
- attribute valuevoid setAttribute(String ns, String name, String value)
ns
- namespacename
- attribute namevalue
- attribute valuevoid setAttribute(String ns, String name, Color value)
ns
- namespacename
- attribute namevalue
- attribute valuevoid setAttribute(String ns, String name, byte value)
ns
- namespacename
- attribute namevalue
- attribute valuevoid setAttribute(String ns, String name, char value)
ns
- namespacename
- attribute namevalue
- attribute valuevoid setAttribute(String ns, String name, long value)
ns
- namespacename
- attribute namevalue
- attribute valuevoid setAttribute(String ns, String name, int value)
ns
- namespacename
- attribute namevalue
- attribute valuevoid setAttribute(String ns, String name, short value)
ns
- namespacename
- attribute namevalue
- attribute valuevoid setAttribute(String ns, String name, boolean value)
ns
- namespacename
- attribute namevalue
- attribute valuevoid setAttribute(String ns, String name, float value)
ns
- namespacename
- attribute namevalue
- attribute valueCopyright © 2014. All rights reserved.