|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.openstreetmap.osmosis.core.xml.common.ElementWriter
public class ElementWriter
Provides common functionality for all classes writing elements to xml.
| Constructor Summary | |
|---|---|
protected |
ElementWriter(java.lang.String anElementName,
int anIndentionLevel)
Creates a new instance. |
| Method Summary | |
|---|---|
protected void |
addAttribute(java.lang.String name,
java.lang.String value)
Adds an attribute to the element. |
protected void |
beginOpenElement()
Writes an element opening line without the final closing portion of the tag. |
protected void |
closeElement()
Writes the closing tag of the element. |
protected void |
endOpenElement(boolean closeElement)
Writes out the opening tag of the element. |
protected TimestampFormat |
getTimestampFormat()
Returns a timestamp format suitable for xml files. |
void |
setWriter(java.io.Writer aWriter)
Sets the writer used as the xml output destination. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
protected ElementWriter(java.lang.String anElementName,
int anIndentionLevel)
anElementName - The name of the element to be written.anIndentionLevel - The indent level of the element.| Method Detail |
|---|
public void setWriter(java.io.Writer aWriter)
aWriter - The writer.protected TimestampFormat getTimestampFormat()
protected void beginOpenElement()
protected void endOpenElement(boolean closeElement)
closeElement - If true, the element will be closed
immediately and written as a single
tag in the output xml file.
protected void addAttribute(java.lang.String name,
java.lang.String value)
name - The name of the attribute.value - The value of the attribute.protected void closeElement()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||