9 package javolution.xml;
11 import java.io.IOException;
12 import java.io.OutputStream;
13 import java.io.Writer;
125 throw new IllegalStateException(
"Writer not closed or reset");
126 _xml._writer.setOutput(out);
128 _xml._writer.writeStartDocument();
143 throw new IllegalStateException(
"Writer not closed or reset");
144 _xml._writer.setOutput(out, encoding);
146 _xml._writer.writeStartDocument();
159 throw new IllegalStateException(
"Writer not closed or reset");
160 _xml._writer.setOutput(out);
162 _xml._writer.writeStartDocument();
173 _xml.setBinding(binding);
185 _xml._writer.setIndentation(indentation);
198 _xml.setReferenceResolver(referenceResolver);
238 public void write(Object obj, String localName, String uri)
240 _xml.add(obj, localName, uri);
252 public <T>
void write(T obj, String name, Class<T> cls)
254 _xml.add(obj, name, cls);
267 public <T>
void write(T obj, String localName, String uri, Class<T> cls)
269 _xml.add(obj, localName, uri, cls);
277 _xml._writer.flush();
287 _xml._writer.writeEndDocument();
288 _xml._writer.close();
292 _xml._writer.writeEndDocument();
293 _xml._writer.close();
298 }
catch (IOException e) {