electric.xml
Class NodeWriter
java.lang.Object
electric.xml.NodeWriter
- Direct Known Subclasses:
- ConsoleNodeWriter, SubstituteWriter, WSDLSwizzler
- public class NodeWriter
- extends java.lang.Object
NodeWriter.
- Author:
- webMethods
Constructor Summary |
NodeWriter(java.io.Writer writer)
|
NodeWriter(java.io.Writer writer,
int indent,
boolean expandEmptyElements)
|
NodeWriter(java.io.Writer writer,
int indent,
boolean expandEmptyElements,
int step,
java.lang.String eol)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
defaultStep
protected static int defaultStep
defaultEOL
protected static java.lang.String defaultEOL
writer
protected java.io.Writer writer
indent
protected int indent
step
protected int step
expandEmptyElements
protected boolean expandEmptyElements
eol
protected java.lang.String eol
NodeWriter
public NodeWriter(java.io.Writer writer)
- Parameters:
writer
-
NodeWriter
public NodeWriter(java.io.Writer writer,
int indent,
boolean expandEmptyElements)
- Parameters:
writer
- indent
- expandEmptyElements
-
NodeWriter
public NodeWriter(java.io.Writer writer,
int indent,
boolean expandEmptyElements,
int step,
java.lang.String eol)
- Parameters:
writer
- indent
- expandEmptyElements
- step
-
setWriter
public void setWriter(java.io.Writer writer)
- Parameters:
writer
-
getWriter
public java.io.Writer getWriter()
isIndenting
public final boolean isIndenting()
getIndent
public final int getIndent()
setIndent
public final void setIndent(int indent)
- Parameters:
indent
-
getStep
public final int getStep()
setStep
public final void setStep(int step)
- Parameters:
step
-
increaseIndent
public final void increaseIndent()
decreaseIndent
public final void decreaseIndent()
setDefaultStep
public static final void setDefaultStep(int step)
- Parameters:
step
-
getDefaultStep
public static final int getDefaultStep()
getEOL
public final java.lang.String getEOL()
setEOL
public final void setEOL(java.lang.String eol)
- Parameters:
eol
-
setDefaultEOL
public static final void setDefaultEOL(java.lang.String eol)
- Parameters:
eol
-
getDefaultEOL
public static final java.lang.String getDefaultEOL()
getExpandEmptyElements
public final boolean getExpandEmptyElements()
setExpandEmptyElements
public final void setExpandEmptyElements(boolean flag)
- Parameters:
flag
-
write
public void write(Node node)
throws java.io.IOException
- Parameters:
node
-
- Throws:
java.io.IOException
write
public final void write(java.lang.String string)
throws java.io.IOException
- Parameters:
string
-
- Throws:
java.io.IOException
write
public final void write(java.lang.String string,
int offset,
int length)
throws java.io.IOException
- Parameters:
string
- offset
- length
-
- Throws:
java.io.IOException
write
public final void write(char ch)
throws java.io.IOException
- Parameters:
ch
-
- Throws:
java.io.IOException
write
public final void write(char[] chars,
int offset,
int length)
throws java.io.IOException
- Parameters:
chars
- offset
- length
-
- Throws:
java.io.IOException
writeIndent
public final void writeIndent()
throws java.io.IOException
- Throws:
java.io.IOException
writeEOL
public final void writeEOL()
throws java.io.IOException
- Throws:
java.io.IOException
flush
public void flush()
throws java.io.IOException
- Throws:
java.io.IOException
copyright© 2001-2004 by webMethods All Rights Reserved.