|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.enhydra.barracuda.core.util.dom.DefaultDOMWriter
This class provides the default implementation for writing a DOM. Note that it supports pretty printing (although the default is false).
Field Summary | |
static boolean |
defaultPreventCaching
|
static boolean |
defaultPrintPretty
|
protected DOMFormatter |
dfm
|
protected OutputOptions |
doo
|
protected boolean |
leaveWriterOpen
|
protected static org.apache.log4j.Logger |
logger
|
protected int |
maxAge
|
protected boolean |
preventCaching
|
protected boolean |
printPretty
|
Constructor Summary | |
DefaultDOMWriter()
Default constructor |
|
DefaultDOMWriter(boolean printPretty)
Public constructor. |
|
DefaultDOMWriter(boolean printPretty,
boolean preventCaching)
Public constructor. |
|
DefaultDOMWriter(boolean printPretty,
int imaxAge)
Public constructor. |
Method Summary | |
static OutputOptions |
getDefaultOutputOptions(org.w3c.dom.Document doc)
|
void |
setLeaveWriterOpen(boolean val)
|
void |
setMaxAge(int imax)
|
void |
setPrettyPrint(boolean val)
|
void |
setPreventCaching(boolean val)
|
void |
write(org.w3c.dom.Node node,
javax.servlet.http.HttpServletResponse resp)
Write a DOM to a ServletResponse object. |
void |
write(org.w3c.dom.Node node,
javax.servlet.http.HttpServletResponse resp,
OutputOptions oo)
Write a DOM to a ServletResponse object. |
void |
write(org.w3c.dom.Node node,
java.io.OutputStream out)
Write a DOM to an OutputStream. |
void |
write(org.w3c.dom.Node node,
java.io.OutputStream out,
OutputOptions oo)
Write a DOM to an OutputStream. |
void |
write(org.w3c.dom.Node node,
java.io.Writer writer)
Write a DOM to a Writer. |
void |
write(org.w3c.dom.Node node,
java.io.Writer writer,
OutputOptions oo)
Write a DOM to a Writer. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected static org.apache.log4j.Logger logger
public static boolean defaultPrintPretty
public static boolean defaultPreventCaching
protected DOMFormatter dfm
protected OutputOptions doo
protected boolean printPretty
protected boolean preventCaching
protected boolean leaveWriterOpen
protected int maxAge
Constructor Detail |
public DefaultDOMWriter()
public DefaultDOMWriter(boolean printPretty)
public DefaultDOMWriter(boolean printPretty, boolean preventCaching)
public DefaultDOMWriter(boolean printPretty, int imaxAge)
Method Detail |
public void write(org.w3c.dom.Node node, javax.servlet.http.HttpServletResponse resp) throws java.io.IOException
write
in interface DOMWriter
node
- the DOM node to be written outresp
- the HttpServletResponse object
java.io.IOException
public void write(org.w3c.dom.Node node, javax.servlet.http.HttpServletResponse resp, OutputOptions oo) throws java.io.IOException
node
- the DOM node to be written outresp
- the HttpServletResponse objectoo
- the target OutputOptions object (may be null)
java.io.IOException
public void write(org.w3c.dom.Node node, java.io.OutputStream out) throws java.io.IOException
node
- the DOM node to be written outout
- the OutputStream to be written to
java.io.IOException
public void write(org.w3c.dom.Node node, java.io.OutputStream out, OutputOptions oo) throws java.io.IOException
node
- the DOM node to be written outout
- the OutputStream to be written tooo
- the target OutputOptions object (may be null)
java.io.IOException
public void write(org.w3c.dom.Node node, java.io.Writer writer) throws java.io.IOException
write
in interface DOMWriter
node
- the DOM node to be written outwriter
- the writer to be written to
java.io.IOException
public void write(org.w3c.dom.Node node, java.io.Writer writer, OutputOptions oo) throws java.io.IOException
node
- the DOM node to be written outwriter
- the writer to be written tooo
- the target OutputOptions object (may be null)
java.io.IOException
public void setPrettyPrint(boolean val)
public void setPreventCaching(boolean val)
public void setMaxAge(int imax)
public void setLeaveWriterOpen(boolean val)
public static OutputOptions getDefaultOutputOptions(org.w3c.dom.Document doc)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |