dk.brics.relaxng.converter
Class PrettyPrinter

java.lang.Object
  extended by dk.brics.relaxng.converter.PrettyPrinter

public class PrettyPrinter
extends Object

Pretty printer for parsed RELAX NG grammars using compact syntax.


Constructor Summary
PrettyPrinter(PrintStream out)
          Constructs a new printer.
PrettyPrinter(PrintWriter out)
          Constructs a new printer.
 
Method Summary
 void print(Grammar g)
          Prints the given grammar.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PrettyPrinter

public PrettyPrinter(PrintStream out)
Constructs a new printer.

Parameters:
out - print stream for output (using default character encoding)

PrettyPrinter

public PrettyPrinter(PrintWriter out)
Constructs a new printer.

Parameters:
out - print writer for output
Method Detail

print

public void print(Grammar g)
Prints the given grammar.

Parameters:
g - gramar


Copyright © 2005-2010 Anders Møller.