org.olap4j.mdx
Class ParseTreeWriter

java.lang.Object
  extended by org.olap4j.mdx.ParseTreeWriter

public class ParseTreeWriter
extends Object

Writer for MDX parse tree.

Typical use is with the ParseTreeNode.unparse(ParseTreeWriter) method as follows:

 ParseTreeNode node;
 StringWriter sw = new StringWriter();
 PrintWriter pw = new PrintWriter(sw);
 ParseTreeWriter mdxWriter = new ParseTreeWriter(pw);
 node.unparse(mdxWriter);
 pw.flush();
 String mdx = sw.toString();
 

Since:
Jun 4, 2007
Author:
jhyde
See Also:
ParseTreeNode.unparse(ParseTreeWriter)
 

Constructor Summary
ParseTreeWriter(PrintWriter pw)
          Creates a ParseTreeWriter.
 
Method Summary
 PrintWriter getPrintWriter()
          Returns the underlying writer.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ParseTreeWriter

public ParseTreeWriter(PrintWriter pw)
Creates a ParseTreeWriter.

Parameters:
pw - Underlying writer
Method Detail

getPrintWriter

public PrintWriter getPrintWriter()
Returns the underlying writer.

Returns:
underlying writer

SourceForge.net_Logo