XmlWriter interface, which writes a
WebRowSet object to an output stream as an XML document.
| Modifier and Type | Field and Description |
|---|---|
| private JdbcRowSetResourceBundle | |
| pack-priv static final long | |
| private Stack | stack
The |
| private transient Writer | writer
The |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| private void | |
| private void | |
| private void | |
| private void | |
| private void | |
| private void | |
| private void | |
| private String | |
| private String | processSpecialCharacters(String s)
This function has been added for the processing of special characters like <,>,'," and & in the data to be serialized. |
| private void | |
| private void | |
| private void | |
| private void | readObject(ObjectInputStream ois)
This method re populates the resBundle during the deserialization process |
| private void | |
| private void | |
| private void | |
| private void | |
| private void | |
| public boolean | writeData(RowSetInternal caller)
Implements javax. Purely for code coverage purposes.. |
| private void | |
| private void | |
| private void | |
| private void | |
| private void | |
| private void | |
| private void | |
| private void | |
| private void | |
| private void | |
| private void | |
| private void | |
| private void | |
| private void | |
| public void | writeXML(WebRowSet
the caller, Writer WebRowSet object to be written; must
be a rowset for which this WebRowSetXmlWriter object
is the writerthe wrt)java.io.Writer object to which
caller will be writtenImplements javax. Writes the given |
| public void | writeXML(WebRowSet
the caller, OutputStream WebRowSet object to be written; must
be a rowset for which this WebRowSetXmlWriter object
is the writerthe oStream)java.io.OutputStream object to which
caller will be writtenWrites the given |
| resBundle | back to summary |
|---|---|
| private JdbcRowSetResourceBundle resBundle | |
| serialVersionUID | back to summary |
|---|---|
| pack-priv static final long serialVersionUID | |
| stack | back to summary |
|---|---|
| private Stack<String> stack The | |
| writer | back to summary |
|---|---|
| private transient Writer writer The | |
| WebRowSetXmlWriter | back to summary |
|---|---|
| public WebRowSetXmlWriter() | |
| beginSection | back to summary |
|---|---|
| private void beginSection(String tag) throws IOException | |
| beginTag | back to summary |
|---|---|
| private void beginTag(String tag) throws IOException | |
| emptyTag | back to summary |
|---|---|
| private void emptyTag(String tag) throws IOException | |
| endHeader | back to summary |
|---|---|
| private void endHeader() throws IOException | |
| endSection | back to summary |
|---|---|
| private void endSection(String tag) throws IOException | |
| endSection | back to summary |
|---|---|
| private void endSection() throws IOException | |
| endTag | back to summary |
|---|---|
| private void endTag(String tag) throws IOException | |
| getTag | back to summary |
|---|---|
| private String getTag() | |
| processSpecialCharacters | back to summary |
|---|---|
| private String processSpecialCharacters(String s) This function has been added for the processing of special characters like <,>,'," and & in the data to be serialized. These have to be taken of specifically or else there will be parsing error while trying to read the contents of the XML file. | |
| propBoolean | back to summary |
|---|---|
| private void propBoolean(String tag, boolean b) throws IOException | |
| propInteger | back to summary |
|---|---|
| private void propInteger(String tag, int i) throws IOException | |
| propString | back to summary |
|---|---|
| private void propString(String tag, String s) throws IOException | |
| readObject | back to summary |
|---|---|
| private void readObject(ObjectInputStream ois) throws IOException, ClassNotFoundException This method re populates the resBundle during the deserialization process | |
| setTag | back to summary |
|---|---|
| private void setTag(String tag) | |
| startHeader | back to summary |
|---|---|
| private void startHeader() throws IOException | |
| writeBigDecimal | back to summary |
|---|---|
| private void writeBigDecimal(BigDecimal bd) throws IOException | |
| writeBoolean | back to summary |
|---|---|
| private void writeBoolean(boolean b) throws IOException | |
| writeData | back to summary |
|---|---|
private void writeData(WebRowSet caller) throws IOException
| |
| writeData | back to summary |
|---|---|
| public boolean writeData(RowSetInternal caller) Implements javax. Purely for code coverage purposes.. | |
| writeDouble | back to summary |
|---|---|
| private void writeDouble(double d) throws IOException | |
| writeEmptyString | back to summary |
|---|---|
| private void writeEmptyString() throws IOException | |
| writeFloat | back to summary |
|---|---|
| private void writeFloat(float f) throws IOException | |
| writeIndent | back to summary |
|---|---|
| private void writeIndent(int tabs) throws IOException | |
| writeInteger | back to summary |
|---|---|
| private void writeInteger(int i) throws IOException | |
| writeLong | back to summary |
|---|---|
| private void writeLong(long l) throws IOException | |
| writeMetaData | back to summary |
|---|---|
private void writeMetaData(WebRowSet caller) throws IOException
| |
| writeNull | back to summary |
|---|---|
| private void writeNull() throws IOException | |
| writeProperties | back to summary |
|---|---|
private void writeProperties(WebRowSet caller) throws IOException
| |
| writeRowSet | back to summary |
|---|---|
private void writeRowSet(WebRowSet caller) throws SQLException
| |
| writeShort | back to summary |
|---|---|
| private void writeShort(short s) throws IOException | |
| writeString | back to summary |
|---|---|
| private void writeString(String s) throws IOException | |
| writeStringData | back to summary |
|---|---|
| private void writeStringData(String s) throws IOException | |
| writeValue | back to summary |
|---|---|
| private void writeValue(int idx, RowSet caller) throws IOException | |
| writeXML | back to summary |
|---|---|
| public void writeXML(WebRowSet caller, Writer wrt) throws SQLException Implements javax. Writes the given
This method is called by the
| |
| writeXML | back to summary |
|---|---|
| public void writeXML(WebRowSet caller, OutputStream oStream) throws SQLException Writes the given
Using stream is a faster way than using
| |