/**
* Prints an SVG document from the given reader to the given writer.
*/
public void print(Reader r, Writer w) throws TranscoderException, IOException {
try {
scanner = new DocumentScanner(r);
output = new OutputManager(this, w);
writer = w;
scanner.next();
printXMLDecl();