org.activemath.util
Class ProtectedUTF8XMLWriter
java.lang.Object
java.io.Writer
org.activemath.util.MyUTF8XMLWriter
org.activemath.util.ProtectedUTF8XMLWriter
- All Implemented Interfaces:
- Closeable, Flushable, Appendable
- Direct Known Subclasses:
- PrettyUTF8XMLWriter
public class ProtectedUTF8XMLWriter
- extends MyUTF8XMLWriter
A class to protected the call to attribute against null attributes, often found by surprise.
A call to attribute("someString",null) will write the attribute someString="xx"
where xx is defined by the nullString variable.
| Methods inherited from class org.activemath.util.MyUTF8XMLWriter |
cdataSection, characterReference, close, comment, endAttribute, endElement, endReplacementText, entityReference, flush, newLine, processingInstruction, startAttribute, startElement, startReplacementText, write, write, write, write, writeRaw, writeUTF8 |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
nullString
public String nullString
ProtectedUTF8XMLWriter
public ProtectedUTF8XMLWriter(OutputStream s)
markup
public void markup(String t)
throws IOException
- Overrides:
markup in class MyUTF8XMLWriter
- Throws:
IOException
attribute
public void attribute(String name,
String content)
throws IOException
- Overrides:
attribute in class MyUTF8XMLWriter
- Throws:
IOException