|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface XMLTagWriter
XMLTagWriter Interface. Attributes need to be set before tags are written.
| Method Summary | |
|---|---|
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 |
| Method Detail |
|---|
void openTag(String ns,
String name)
throws IOException
ns - namespacename - tagname
IOException - if stream cannot be written
void printTag(String ns,
String name)
throws IOException
ns - namespacename - tagname
IOException - if stream cannot be written
void close()
throws IOException
IOException - if stream cannot be written
void openDoc()
throws IOException
IOException - if stream cannot be written
void openDoc(String version,
String encoding,
boolean standalone)
throws IOException
version - version stringencoding - encodingstandalone - if XML is standalone
IOException - if stream cannot be written
void closeDoc()
throws IOException
IOException - if stream cannot be written
void referToDTD(String name,
String system)
void referToDTD(String name,
String pid,
String ref)
void openTag(String name)
throws IOException
name - tagname
IOException - if stream cannot be written
void closeTag()
throws IOException
IOException - if stream cannot be written
void printTag(String name)
throws IOException
name - tagname
IOException - if stream cannot be written
void printComment(String comment)
throws IOException
IOException
void print(String text)
throws IOException
IOException
void setAttribute(String name,
String value)
name - attribute namevalue - attribute value
void setAttribute(String name,
Color value)
name - attribute namevalue - attribute value
void setAttribute(String name,
byte value)
name - attribute namevalue - attribute value
void setAttribute(String name,
char value)
name - attribute namevalue - attribute value
void setAttribute(String name,
long value)
name - attribute namevalue - attribute value
void setAttribute(String name,
int value)
name - attribute namevalue - attribute value
void setAttribute(String name,
short value)
name - attribute namevalue - attribute value
void setAttribute(String name,
boolean value)
name - attribute namevalue - attribute value
void setAttribute(String name,
float value)
name - attribute namevalue - attribute value
void setAttribute(String name,
double value)
name - attribute namevalue - attribute value
void setAttribute(String ns,
String name,
String value)
ns - namespacename - attribute namevalue - attribute value
void setAttribute(String ns,
String name,
Color value)
ns - namespacename - attribute namevalue - attribute value
void setAttribute(String ns,
String name,
byte value)
ns - namespacename - attribute namevalue - attribute value
void setAttribute(String ns,
String name,
char value)
ns - namespacename - attribute namevalue - attribute value
void setAttribute(String ns,
String name,
long value)
ns - namespacename - attribute namevalue - attribute value
void setAttribute(String ns,
String name,
int value)
ns - namespacename - attribute namevalue - attribute value
void setAttribute(String ns,
String name,
short value)
ns - namespacename - attribute namevalue - attribute value
void setAttribute(String ns,
String name,
boolean value)
ns - namespacename - attribute namevalue - attribute value
void setAttribute(String ns,
String name,
float value)
ns - namespacename - attribute namevalue - attribute value
void setAttribute(String ns,
String name,
double value)
ns - namespacename - attribute namevalue - attribute value
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||