org.acm.seguin.pretty
Class PrettyPrintString

java.lang.Object
  extended by org.acm.seguin.pretty.PrettyPrintFile
      extended by org.acm.seguin.pretty.PrettyPrintString
Direct Known Subclasses:
PrettyPrintFromIDE

public abstract class PrettyPrintString
extends PrettyPrintFile

Pretty prints the string

Author:
Chris Seguin

Constructor Summary
PrettyPrintString()
          Create an PrettyPrintString object
 
Method Summary
protected  java.lang.String getOutputBuffer()
          Get the output buffer
protected  java.io.Writer getWriter(java.io.File file)
          Create the output stream
protected  void resetOutputBuffer()
          Reset the output buffer
protected  void setInputString(java.lang.String input)
          Sets the input string to be pretty printed
 
Methods inherited from class org.acm.seguin.pretty.PrettyPrintFile
apply, apply, getParserFactory, getPrintData, isApplicable, postApply, setAsk, setParserFactory
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PrettyPrintString

public PrettyPrintString()
Create an PrettyPrintString object

Method Detail

setInputString

protected void setInputString(java.lang.String input)
Sets the input string to be pretty printed

Parameters:
input - the input buffer

getOutputBuffer

protected java.lang.String getOutputBuffer()
Get the output buffer

Returns:
a string containing the results

getWriter

protected java.io.Writer getWriter(java.io.File file)
Create the output stream

Overrides:
getWriter in class PrettyPrintFile
Parameters:
file - the name of the file
Returns:
the output stream

resetOutputBuffer

protected void resetOutputBuffer()
Reset the output buffer