to.etc.domui.dom
Interface IBrowserOutput

All Known Implementing Classes:
FastXmlOutputWriter, PrettyXmlOutputWriter

public interface IBrowserOutput


Method Summary
 void attr(java.lang.String name, boolean value)
           
 void attr(java.lang.String name, int value)
           
 void attr(java.lang.String name, long value)
          Write a simple numeric attribute thingy.
 void attr(java.lang.String name, java.lang.String value)
          Appends an attribute to the last tag.
 void closetag(java.lang.String name)
          Write the closing tag (</name>).
 void dec()
           
 void endAndCloseXmltag()
          Ends a tag by adding />.
 void endtag()
          Ends a tag by adding a > only.
 void inc()
           
 boolean isIndentEnabled()
           
 void nl()
           
 void rawAttr(java.lang.String name, java.lang.String value)
           
 void setIndentEnabled(boolean ind)
           
 void tag(java.lang.String tagname)
          Writes a tag start.
 void text(java.lang.String s)
          Writes string data.
 void writeRaw(java.lang.String s)
           
 

Method Detail

writeRaw

void writeRaw(java.lang.String s)
              throws java.io.IOException
Throws:
java.io.IOException

text

void text(java.lang.String s)
          throws java.io.IOException
Writes string data. This escapes XML control characters to their entity equivalent. This does NOT indent data with newlines, because string data in a content block may not change.

Throws:
java.io.IOException

nl

void nl()
        throws java.io.IOException
Throws:
java.io.IOException

inc

void inc()

dec

void dec()

setIndentEnabled

void setIndentEnabled(boolean ind)

isIndentEnabled

boolean isIndentEnabled()

tag

void tag(java.lang.String tagname)
         throws java.io.IOException
Writes a tag start. It can be followed by attr() calls.

Parameters:
tagname -
Throws:
java.io.IOException

endtag

void endtag()
            throws java.io.IOException
Ends a tag by adding a > only.

Throws:
java.io.IOException

endAndCloseXmltag

void endAndCloseXmltag()
                       throws java.io.IOException
Ends a tag by adding />.

Throws:
java.io.IOException

closetag

void closetag(java.lang.String name)
              throws java.io.IOException
Write the closing tag (</name>).

Parameters:
name -
Throws:
java.io.IOException

attr

void attr(java.lang.String name,
          java.lang.String value)
          throws java.io.IOException
Appends an attribute to the last tag. The value's characters that are invalid are quoted into entities.

Parameters:
namespace -
name -
value -
Throws:
java.io.IOException

rawAttr

void rawAttr(java.lang.String name,
             java.lang.String value)
             throws java.io.IOException
Throws:
java.io.IOException

attr

void attr(java.lang.String name,
          long value)
          throws java.io.IOException
Write a simple numeric attribute thingy.

Parameters:
namespace -
name -
value -
Throws:
java.io.IOException

attr

void attr(java.lang.String name,
          int value)
          throws java.io.IOException
Throws:
java.io.IOException

attr

void attr(java.lang.String name,
          boolean value)
          throws java.io.IOException
Throws:
java.io.IOException