com.edustructures.util
Class XMLWriter

java.lang.Object
  extended by java.io.Writer
      extended by java.io.PrintWriter
          extended by com.edustructures.util.XMLWriter
All Implemented Interfaces:
java.io.Closeable, java.io.Flushable, java.lang.Appendable

public class XMLWriter
extends java.io.PrintWriter

A PrintWriter for rendering xml streams

Version:
1.0

Constructor Summary
XMLWriter(java.io.OutputStream out)
           
XMLWriter(java.io.OutputStream out, boolean autoFlush)
           
XMLWriter(java.io.Writer out)
           
XMLWriter(java.io.Writer out, boolean autoFlush)
           
 
Method Summary
 java.lang.String getAttrString(java.util.Dictionary attrs)
           
 void indent(int tabs)
          Increases the indentation by the specified number of tabs.
 void pauseTab()
          Increases the number of pauses to indentation.
 void tab()
          Writes the proper number of intentation spaces to the output stream unless tabbing has been paused.
 
Methods inherited from class java.io.PrintWriter
append, append, append, checkError, close, flush, format, format, print, print, print, print, print, print, print, print, print, printf, printf, println, println, println, println, println, println, println, println, println, println, write, write, write, write, write
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XMLWriter

public XMLWriter(java.io.OutputStream out)

XMLWriter

public XMLWriter(java.io.OutputStream out,
                 boolean autoFlush)

XMLWriter

public XMLWriter(java.io.Writer out)

XMLWriter

public XMLWriter(java.io.Writer out,
                 boolean autoFlush)
Method Detail

indent

public void indent(int tabs)
Increases the indentation by the specified number of tabs. The next call the tab will write the proper number of intentation spaces to the output stream unless tabbing has been paused.


pauseTab

public void pauseTab()
Increases the number of pauses to indentation. For each call to this function, the tab will do nothing.


tab

public void tab()
Writes the proper number of intentation spaces to the output stream unless tabbing has been paused.


getAttrString

public java.lang.String getAttrString(java.util.Dictionary attrs)


Copyright © 2001-2007 Edustructures LLC. All Rights Reserved. SIFWorks® and ADK® are registered trademarks of Edustructures LLC. SIF™ and Schools Interoperability Framework are trademarks of the Schools Interoperability Framework Association.