|
Open SiteSearch 4.1.1 Final |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.io.OutputStream | +--ORG.oclc.xml.util.XMLOutputStream
A writer specifically designed for dealing with XML, incluing XML encoding as well as liitleendian files, and XML namespaces and white space handling.
Field Summary | |
static int |
COMPACT
|
static int |
DEFAULT
|
DTD |
dtd
needed for saving in correct format |
boolean |
mixed
|
NameSpaceContext |
nameSpaceContext
needed for saving in correct format |
static int |
PRETTY
|
boolean |
savingDTD
whether we are in the scope of saving a DTD or not |
Constructor Summary | |
XMLOutputStream(OutputStream out)
Builds the XMLOutputStream. |
Method Summary | |
void |
addIndent(int offset)
Set the relative indenting level. |
void |
close()
Pass-through of inherited OutputStream method. |
void |
flush()
Pass-through of inherited OutputStream method. |
int |
getOutputStyle()
Return the current output style. |
void |
setEncoding(String encoding,
boolean littleendian,
boolean byteOrderMark)
Defines the character encoding of the output stream. |
void |
setOutputStyle(int style)
Set the output style (PRETTY or COMPACT). |
void |
write(int c)
writes a character to the stream according to the current writeState. |
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 |
writeQualifiedName(Name n,
Atom ns)
This method writes out the fully qualified name, using the appropriate short name syntax. |
void |
writeQuotedString(String str)
Write out the string with quotes around it. |
Methods inherited from class java.io.OutputStream |
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
public boolean mixed
public DTD dtd
public NameSpaceContext nameSpaceContext
public boolean savingDTD
Constructor Detail |
public XMLOutputStream(OutputStream out)
Method Detail |
public void flush() throws IOException
public void close() throws IOException
public void setEncoding(String encoding, boolean littleendian, boolean byteOrderMark) throws IOException
public void write(int c) throws IOException
public void writeQualifiedName(Name n, Atom ns) throws IOException
n
- the name being writtenns
- the name space which defines the context
in which the name was defined.public void writeChars(String str) throws IOException
public void writeQuotedString(String str) throws IOException
public void writeNewLine() throws IOException
public void addIndent(int offset)
public void writeIndent() throws IOException
public void setOutputStyle(int style)
public int getOutputStyle()
|
Open SiteSearch 4.1.1 Final |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |