|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--com.tagtraum.sixbs.SIXBSWriter
Serializes beans to XML.
| Field Summary | |
static String |
vcid
Source-Version |
| Constructor Summary | |
SIXBSWriter(OutputStream out,
boolean append)
Uses default char encoding. |
|
SIXBSWriter(OutputStream out,
boolean append,
String encoding)
For performance reasons the OutputStream should be buffered. sixbs does not buffer. |
|
SIXBSWriter(OutputStreamWriter out,
AdapterFinder adapterFinder,
boolean append)
For performance reasons the Writer should be buffered. sixbs does not buffer. sixbs will write with the systems default encoding or the encoding set in the provided buffer. |
|
SIXBSWriter(Writer out)
For performance reasons the Writer should be buffered. sixbs does not buffer. sixbs will write with the systems default encoding or the encoding set in the provided buffer. |
|
SIXBSWriter(Writer out,
AdapterFinder adapterFinder,
boolean append)
For performance reasons the Writer should be buffered. sixbs does not buffer. sixbs will write with the systems default encoding or the encoding set in the provided buffer. |
|
SIXBSWriter(Writer out,
AdapterFinder adapterFinder,
boolean append,
String encoding)
For performance reasons the Writer should be buffered. sixbs does not buffer. sixbs will write with the systems default encoding or the encoding set in the provided buffer. |
|
SIXBSWriter(Writer out,
boolean append)
For performance reasons the Writer should be buffered. sixbs does not buffer. sixbs will write with the systems default encoding or the encoding set in the provided buffer. |
|
| Method Summary | |
void |
close()
Close the stream, flushing it first. |
static String |
encode(String elementValue)
Encodes the string value of an element (text node) to an XML conform format, special characters such the ampersand (&) are replaced by an entities (&). |
void |
flush()
Flush the stream. |
protected void |
writeFooter()
Writes a closing </sixbs> tag. |
protected void |
writeHeader()
Writes the xml declaration, and an opening <sixbs> tag. |
void |
writeObject(Object obj)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static String vcid
| Constructor Detail |
public SIXBSWriter(OutputStream out,
boolean append)
throws IOException
out - OutputStream to write objects to with the specified encoding.append - if true, no XML declaration (<?xml version="1.0"?>) and the sixbs tag aren't written .
public SIXBSWriter(OutputStream out,
boolean append,
String encoding)
throws IOException
out - OutputStream to write objects to with the specified encoding.append - if true, no XML declaration (<?xml version="1.0"?>) and the sixbs tag aren't written .encoding - char set to be used
public SIXBSWriter(Writer out)
throws IOException
out - Writer to write objects to.
public SIXBSWriter(Writer out,
boolean append)
throws IOException
append - if true, no XML declaration (<?xml version="1.0"?>) and the sixbs tag aren't written .out - Writer to write objects to.
public SIXBSWriter(Writer out,
AdapterFinder adapterFinder,
boolean append)
throws IOException
out - Writer to write objects to.append - if true, no XML declaration (<?xml version="1.0"?>) and the sixbs tag aren't written .
public SIXBSWriter(OutputStreamWriter out,
AdapterFinder adapterFinder,
boolean append)
throws IOException
out - Writer to write objects to with the specified encoding.append - if true, no XML declaration (<?xml version="1.0"?>) and the sixbs tag aren't written .adapterFinder - the adapterFinder to use
public SIXBSWriter(Writer out,
AdapterFinder adapterFinder,
boolean append,
String encoding)
throws IOException
out - Writer to write objects to with the specified encoding.append - if true, no XML declaration (<?xml version="1.0"?>)is written.adapterFinder - the adapterFinder to useencoding - encoding that is used by the writer - set null, if unknwon| Method Detail |
protected void writeHeader()
throws IOException
protected void writeFooter()
throws IOException
public void writeObject(Object obj)
throws IOException
public void flush()
throws IOException
IOException - If an I/O error occurs
public void close()
throws IOException
IOException - If an I/O error occurswriteHeader(),
writeFooter()public static String encode(String elementValue)
elementValue - the string value to be encoded
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||