|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.io.Writer
java.io.OutputStreamWriter
com.ibm.as400.ui.tools.XMLWriter
public class XMLWriter extends OutputStreamWriter
| Modifier and Type | Field and Description |
|---|---|
static int |
COMPACT
|
static int |
DEFAULT
|
static int |
PRETTY
|
| Fields inherited from class java.io.Writer |
|---|
lock |
| Constructor and Description |
|---|
XMLWriter(OutputStream os)
|
| Modifier and Type | Method and Description |
|---|---|
void |
addIndent(int offset)
Set the relative indenting level. |
int |
getOutputStyle()
Return the current output style. |
void |
setOutputStyle(int style)
Set the output style (PRETTY or COMPACT). |
void |
writeChars(String str)
Write the given string. |
void |
writeIndent()
Write the appropriate indent - given current indent level, or do nothing if output style is COMPACT. |
void |
writeNewLine()
Write a new line or do nothing if output style is COMPACT. |
void |
writeQuotedString(String str)
Write out the string with quotes around it. |
| Methods inherited from class java.io.OutputStreamWriter |
|---|
close, flush, getEncoding, write, write, write |
| Methods inherited from class java.io.Writer |
|---|
append, append, append, append, append, append, write, write |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static int DEFAULT
public static int PRETTY
public static int COMPACT
| Constructor Detail |
|---|
public XMLWriter(OutputStream os)
| Method Detail |
|---|
public void writeChars(String str)
throws IOException
IOException
public void writeQuotedString(String str)
throws IOException
IOException
public void writeNewLine()
throws IOException
IOExceptionpublic void addIndent(int offset)
public void writeIndent()
throws IOException
IOExceptionpublic void setOutputStyle(int style)
public int getOutputStyle()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||