public abstract class AbstractSiteData extends SiteData
Constructor and Description |
---|
AbstractSiteData() |
Modifier and Type | Method and Description |
---|---|
Object |
clone()
Returns the clone of the object.
|
String |
toString()
Writes out the object as a string.
|
String |
toXML()
Returns the xml description of the object.
|
abstract void |
toXML(Writer writer,
String indent)
Writes out the xml description of the object.
|
void |
writeAttribute(Writer writer,
String key,
String value)
Writes an attribute to the stream.
|
public String toXML() throws IOException
IOException
- if something fishy happens to the stream.public abstract void toXML(Writer writer, String indent) throws IOException
writer
- is a Writer opened and ready for writing. This can also
be a StringWriter for efficient output.indent
- the indent to be used.IOException
- if something fishy happens to the stream.public String toString()
public void writeAttribute(Writer writer, String key, String value) throws IOException
writer
- key
- value
- IOException
- if something fishy happens to the stream.public Object clone() throws CloneNotSupportedException
clone
in class Object
CloneNotSupportedException
Copyright © 2011 The University of Southern California. All Rights Reserved.