|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface WBXMLTagWriter
WBXMLTagWriter 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(int tag)
Write an xml open tag |
void |
print(String text)
|
void |
printComment(String comment)
|
void |
printTag(int tag)
Write empty tag |
void |
referToDTD(String name,
String system)
|
void |
referToDTD(String name,
String pid,
String ref)
|
void |
setAttribute(int tag,
boolean value)
Set boolean attribute |
void |
setAttribute(int tag,
boolean[] value,
int offset,
int length)
Set boolean attribute |
void |
setAttribute(int tag,
byte value)
Set byte attribute |
void |
setAttribute(int tag,
byte[] value,
int offset,
int length)
Set byte attribute |
void |
setAttribute(int tag,
char value)
Set char attribute |
void |
setAttribute(int tag,
char[] value,
int offset,
int length)
Set char attribute |
void |
setAttribute(int tag,
Color value)
Set Color attribute |
void |
setAttribute(int tag,
Color[] value,
int offset,
int length)
Set Color attribute |
void |
setAttribute(int tag,
double value)
Set double attribute |
void |
setAttribute(int tag,
double[] value,
int offset,
int length)
Set double attribute |
void |
setAttribute(int tag,
float value)
Set float attribute |
void |
setAttribute(int tag,
float[] value,
int offset,
int length)
Set float attribute |
void |
setAttribute(int tag,
int value)
Set int attribute |
void |
setAttribute(int tag,
int[] value,
int offset,
int length)
Set int attribute |
void |
setAttribute(int tag,
long value)
Set long attribute |
void |
setAttribute(int tag,
long[] value,
int offset,
int length)
Set long attribute |
void |
setAttribute(int tag,
short value)
Set short attribute |
void |
setAttribute(int tag,
short[] value,
int offset,
int length)
Set short attribute |
void |
setAttribute(int tag,
String value)
Set String attribute |
void |
setAttribute(int tag,
String[] value,
int offset,
int length)
Set String attribute |
Method Detail |
---|
void 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 standalone
IOException
- if stream cannot be writtenvoid closeDoc() throws IOException
IOException
- if stream cannot be writtenvoid referToDTD(String name, String system)
void referToDTD(String name, String pid, String ref)
void openTag(int tag) throws IOException
name
- tagname
IOException
- if stream cannot be writtenvoid closeTag() throws IOException
IOException
- if stream cannot be writtenvoid printTag(int tag) throws IOException
name
- tagname
IOException
- if stream cannot be writtenvoid printComment(String comment) throws IOException
IOException
void print(String text) throws IOException
IOException
void setAttribute(int tag, String value)
tag
- attributeIDvalue
- attribute valuevoid setAttribute(int tag, String[] value, int offset, int length)
tag
- attributeIDvalue
- attribute valueoffset
- start index in arraylength
- number of primitives/object to writevoid setAttribute(int tag, Color value)
tag
- attributeIDvalue
- attribute valuevoid setAttribute(int tag, Color[] value, int offset, int length)
tag
- attributeIDvalue
- attribute valueoffset
- start index in arraylength
- number of primitives/object to writevoid setAttribute(int tag, byte value)
tag
- attributeIDvalue
- attribute valuevoid setAttribute(int tag, byte[] value, int offset, int length)
tag
- attributeIDvalue
- attribute valueoffset
- start index in arraylength
- number of primitives/object to writevoid setAttribute(int tag, char value)
tag
- attributeIDvalue
- attribute valuevoid setAttribute(int tag, char[] value, int offset, int length)
tag
- attributeIDvalue
- attribute valueoffset
- start index in arraylength
- number of primitives/object to writevoid setAttribute(int tag, long value)
tag
- attributeIDvalue
- attribute valuevoid setAttribute(int tag, long[] value, int offset, int length)
tag
- attributeIDvalue
- attribute valueoffset
- start index in arraylength
- number of primitives/object to writevoid setAttribute(int tag, int value)
tag
- attributeIDvalue
- attribute valuevoid setAttribute(int tag, int[] value, int offset, int length)
tag
- attributeIDvalue
- attribute valueoffset
- start index in arraylength
- number of primitives/object to writevoid setAttribute(int tag, short value)
tag
- attributeIDvalue
- attribute valuevoid setAttribute(int tag, short[] value, int offset, int length)
tag
- attributeIDvalue
- attribute valueoffset
- start index in arraylength
- number of primitives/object to writevoid setAttribute(int tag, boolean value)
tag
- attributeIDvalue
- attribute valuevoid setAttribute(int tag, boolean[] value, int offset, int length)
tag
- attributeIDvalue
- attribute valueoffset
- start index in arraylength
- number of primitives/object to writevoid setAttribute(int tag, float value)
tag
- attributeIDvalue
- attribute valuevoid setAttribute(int tag, float[] value, int offset, int length)
tag
- attributeIDvalue
- attribute valueoffset
- start index in arraylength
- number of primitives/object to writevoid setAttribute(int tag, double value)
tag
- attributeIDvalue
- attribute valuevoid setAttribute(int tag, double[] value, int offset, int length)
tag
- attributeIDvalue
- attribute valueoffset
- start index in arraylength
- number of primitives/object to write
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |