mirror of
https://github.com/ChronosX88/FreePastry.git
synced 2025-01-16 09:36:27 +00:00
672 lines
24 KiB
HTML
672 lines
24 KiB
HTML
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
|
|
<!--NewPage-->
|
|
<HTML>
|
|
<HEAD>
|
|
<!-- Generated by javadoc (build 1.6.0_07) on Fri Mar 13 20:01:32 CET 2009 -->
|
|
<TITLE>
|
|
XMLWriter (Rice Pastry - API Specifications)
|
|
</TITLE>
|
|
|
|
<META NAME="date" CONTENT="2009-03-13">
|
|
|
|
<LINK REL ="stylesheet" TYPE="text/css" HREF="../../../stylesheet.css" TITLE="Style">
|
|
|
|
<SCRIPT type="text/javascript">
|
|
function windowTitle()
|
|
{
|
|
if (location.href.indexOf('is-external=true') == -1) {
|
|
parent.document.title="XMLWriter (Rice Pastry - API Specifications)";
|
|
}
|
|
}
|
|
</SCRIPT>
|
|
<NOSCRIPT>
|
|
</NOSCRIPT>
|
|
|
|
</HEAD>
|
|
|
|
<BODY BGCOLOR="white" onload="windowTitle();">
|
|
<HR>
|
|
|
|
|
|
<!-- ========= START OF TOP NAVBAR ======= -->
|
|
<A NAME="navbar_top"><!-- --></A>
|
|
<A HREF="#skip-navbar_top" title="Skip navigation links"></A>
|
|
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
|
|
<TR>
|
|
<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
|
|
<A NAME="navbar_top_firstrow"><!-- --></A>
|
|
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
|
|
<TR ALIGN="center" VALIGN="top">
|
|
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD>
|
|
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD>
|
|
<TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD>
|
|
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/XMLWriter.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </TD>
|
|
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD>
|
|
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD>
|
|
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD>
|
|
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD>
|
|
</TR>
|
|
</TABLE>
|
|
</TD>
|
|
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
|
|
Rice Pastry API</EM>
|
|
</TD>
|
|
</TR>
|
|
|
|
<TR>
|
|
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
|
|
<A HREF="../../../rice/p2p/util/XMLReader.html" title="class in rice.p2p.util"><B>PREV CLASS</B></A>
|
|
NEXT CLASS</FONT></TD>
|
|
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
|
|
<A HREF="../../../index.html?rice/p2p/util/XMLWriter.html" target="_top"><B>FRAMES</B></A>
|
|
<A HREF="XMLWriter.html" target="_top"><B>NO FRAMES</B></A>
|
|
<SCRIPT type="text/javascript">
|
|
<!--
|
|
if(window==top) {
|
|
document.writeln('<A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>');
|
|
}
|
|
//-->
|
|
</SCRIPT>
|
|
<NOSCRIPT>
|
|
<A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>
|
|
</NOSCRIPT>
|
|
|
|
|
|
</FONT></TD>
|
|
</TR>
|
|
<TR>
|
|
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
|
|
SUMMARY: NESTED | <A HREF="#field_summary">FIELD</A> | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD>
|
|
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
|
|
DETAIL: <A HREF="#field_detail">FIELD</A> | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD>
|
|
</TR>
|
|
</TABLE>
|
|
<A NAME="skip-navbar_top"></A>
|
|
<!-- ========= END OF TOP NAVBAR ========= -->
|
|
|
|
<HR>
|
|
<!-- ======== START OF CLASS DATA ======== -->
|
|
<H2>
|
|
<FONT SIZE="-1">
|
|
rice.p2p.util</FONT>
|
|
<BR>
|
|
Class XMLWriter</H2>
|
|
<PRE>
|
|
java.lang.Object
|
|
<IMG SRC="../../../resources/inherit.gif" ALT="extended by "><B>rice.p2p.util.XMLWriter</B>
|
|
</PRE>
|
|
<HR>
|
|
<DL>
|
|
<DT><PRE>public class <B>XMLWriter</B><DT>extends java.lang.Object</DL>
|
|
</PRE>
|
|
|
|
<P>
|
|
XMLWriter is a utility class used by XMLObjectOutputStream to perform the actual
|
|
XML writing. This writing is based on the XML Pull-Parsing API, available online
|
|
at http://www.xmlpull.org. Any of the provided serializer implementations will work
|
|
with this reader.
|
|
<P>
|
|
|
|
<P>
|
|
<DL>
|
|
<DT><B>Version:</B></DT>
|
|
<DD>$Id: XMLWriter.java 3613 2007-02-15 14:45:14Z jstewart $</DD>
|
|
<DT><B>Author:</B></DT>
|
|
<DD>Alan Mislove</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<P>
|
|
<!-- =========== FIELD SUMMARY =========== -->
|
|
|
|
<A NAME="field_summary"><!-- --></A>
|
|
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
|
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
|
|
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
|
|
<B>Field Summary</B></FONT></TH>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE>protected org.xmlpull.v1.XmlSerializer</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../rice/p2p/util/XMLWriter.html#serializer">serializer</A></B></CODE>
|
|
|
|
<BR>
|
|
The actual XML serializer, which does the writing</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE>protected java.io.Writer</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../rice/p2p/util/XMLWriter.html#writer">writer</A></B></CODE>
|
|
|
|
<BR>
|
|
The underlying writer which the serializer uses</TD>
|
|
</TR>
|
|
</TABLE>
|
|
|
|
<!-- ======== CONSTRUCTOR SUMMARY ======== -->
|
|
|
|
<A NAME="constructor_summary"><!-- --></A>
|
|
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
|
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
|
|
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
|
|
<B>Constructor Summary</B></FONT></TH>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD><CODE><B><A HREF="../../../rice/p2p/util/XMLWriter.html#XMLWriter(java.io.OutputStream)">XMLWriter</A></B>(java.io.OutputStream out)</CODE>
|
|
|
|
<BR>
|
|
Constructor which takes the provided writer and
|
|
builds a new XML writier to read XML from the writier.</TD>
|
|
</TR>
|
|
</TABLE>
|
|
|
|
<!-- ========== METHOD SUMMARY =========== -->
|
|
|
|
<A NAME="method_summary"><!-- --></A>
|
|
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
|
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
|
|
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
|
|
<B>Method Summary</B></FONT></TH>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> void</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../rice/p2p/util/XMLWriter.html#attribute(java.lang.String, boolean)">attribute</A></B>(java.lang.String name,
|
|
boolean value)</CODE>
|
|
|
|
<BR>
|
|
Method which writes an attribute to the XML document.</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> void</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../rice/p2p/util/XMLWriter.html#attribute(java.lang.String, char)">attribute</A></B>(java.lang.String name,
|
|
char value)</CODE>
|
|
|
|
<BR>
|
|
Method which writes an attribute to the XML document.</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> void</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../rice/p2p/util/XMLWriter.html#attribute(java.lang.String, double)">attribute</A></B>(java.lang.String name,
|
|
double value)</CODE>
|
|
|
|
<BR>
|
|
Method which writes an attribute to the XML document.</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> void</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../rice/p2p/util/XMLWriter.html#attribute(java.lang.String, float)">attribute</A></B>(java.lang.String name,
|
|
float value)</CODE>
|
|
|
|
<BR>
|
|
Method which writes an attribute to the XML document.</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> void</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../rice/p2p/util/XMLWriter.html#attribute(java.lang.String, int)">attribute</A></B>(java.lang.String name,
|
|
int value)</CODE>
|
|
|
|
<BR>
|
|
Method which writes an attribute to the XML document.</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> void</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../rice/p2p/util/XMLWriter.html#attribute(java.lang.String, long)">attribute</A></B>(java.lang.String name,
|
|
long value)</CODE>
|
|
|
|
<BR>
|
|
Method which writes an attribute to the XML document.</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> void</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../rice/p2p/util/XMLWriter.html#attribute(java.lang.String, java.lang.Object)">attribute</A></B>(java.lang.String name,
|
|
java.lang.Object value)</CODE>
|
|
|
|
<BR>
|
|
Method which writes an attribute to the XML document.</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE>protected void</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../rice/p2p/util/XMLWriter.html#attribute(java.lang.String, java.lang.String)">attribute</A></B>(java.lang.String name,
|
|
java.lang.String value)</CODE>
|
|
|
|
<BR>
|
|
Method which writes an attribute to the XML document.</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> void</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../rice/p2p/util/XMLWriter.html#close()">close</A></B>()</CODE>
|
|
|
|
<BR>
|
|
Method which flushes and closes the underlying writer, which will
|
|
cause future writer attempts to throw an IOException.</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> void</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../rice/p2p/util/XMLWriter.html#end(java.lang.String)">end</A></B>(java.lang.String name)</CODE>
|
|
|
|
<BR>
|
|
Method which ends the given tag name</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> void</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../rice/p2p/util/XMLWriter.html#flush()">flush</A></B>()</CODE>
|
|
|
|
<BR>
|
|
Method which flushes all buffered data to the underlying writer</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> void</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../rice/p2p/util/XMLWriter.html#start(java.lang.String)">start</A></B>(java.lang.String name)</CODE>
|
|
|
|
<BR>
|
|
Method which starts the given tag name</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> void</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../rice/p2p/util/XMLWriter.html#writeBase64(byte[], int, int)">writeBase64</A></B>(byte[] bytes,
|
|
int off,
|
|
int len)</CODE>
|
|
|
|
<BR>
|
|
Method which writes a sequence of base64 encoded bytes to the output stream</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> void</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../rice/p2p/util/XMLWriter.html#writeHeader()">writeHeader</A></B>()</CODE>
|
|
|
|
<BR>
|
|
Method which writes the XML header to the writer.</TD>
|
|
</TR>
|
|
</TABLE>
|
|
<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
|
|
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
|
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
|
|
<TH ALIGN="left"><B>Methods inherited from class java.lang.Object</B></TH>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD><CODE>clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</CODE></TD>
|
|
</TR>
|
|
</TABLE>
|
|
|
|
<P>
|
|
|
|
<!-- ============ FIELD DETAIL =========== -->
|
|
|
|
<A NAME="field_detail"><!-- --></A>
|
|
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
|
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
|
|
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
|
|
<B>Field Detail</B></FONT></TH>
|
|
</TR>
|
|
</TABLE>
|
|
|
|
<A NAME="serializer"><!-- --></A><H3>
|
|
serializer</H3>
|
|
<PRE>
|
|
protected org.xmlpull.v1.XmlSerializer <B>serializer</B></PRE>
|
|
<DL>
|
|
<DD>The actual XML serializer, which does the writing
|
|
<P>
|
|
<DL>
|
|
</DL>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="writer"><!-- --></A><H3>
|
|
writer</H3>
|
|
<PRE>
|
|
protected java.io.Writer <B>writer</B></PRE>
|
|
<DL>
|
|
<DD>The underlying writer which the serializer uses
|
|
<P>
|
|
<DL>
|
|
</DL>
|
|
</DL>
|
|
|
|
<!-- ========= CONSTRUCTOR DETAIL ======== -->
|
|
|
|
<A NAME="constructor_detail"><!-- --></A>
|
|
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
|
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
|
|
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
|
|
<B>Constructor Detail</B></FONT></TH>
|
|
</TR>
|
|
</TABLE>
|
|
|
|
<A NAME="XMLWriter(java.io.OutputStream)"><!-- --></A><H3>
|
|
XMLWriter</H3>
|
|
<PRE>
|
|
public <B>XMLWriter</B>(java.io.OutputStream out)
|
|
throws java.io.IOException</PRE>
|
|
<DL>
|
|
<DD>Constructor which takes the provided writer and
|
|
builds a new XML writier to read XML from the writier.
|
|
<P>
|
|
<DL>
|
|
<DT><B>Parameters:</B><DD><CODE>out</CODE> - The writer to base this XML writer off of
|
|
<DT><B>Throws:</B>
|
|
<DD><CODE>java.io.IOException</CODE> - If an error occurs</DL>
|
|
</DL>
|
|
|
|
<!-- ============ METHOD DETAIL ========== -->
|
|
|
|
<A NAME="method_detail"><!-- --></A>
|
|
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
|
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
|
|
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
|
|
<B>Method Detail</B></FONT></TH>
|
|
</TR>
|
|
</TABLE>
|
|
|
|
<A NAME="flush()"><!-- --></A><H3>
|
|
flush</H3>
|
|
<PRE>
|
|
public void <B>flush</B>()
|
|
throws java.io.IOException</PRE>
|
|
<DL>
|
|
<DD>Method which flushes all buffered data to the underlying writer
|
|
<P>
|
|
<DD><DL>
|
|
|
|
<DT><B>Throws:</B>
|
|
<DD><CODE>java.io.IOException</CODE> - If an error occurs</DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="close()"><!-- --></A><H3>
|
|
close</H3>
|
|
<PRE>
|
|
public void <B>close</B>()
|
|
throws java.io.IOException</PRE>
|
|
<DL>
|
|
<DD>Method which flushes and closes the underlying writer, which will
|
|
cause future writer attempts to throw an IOException.
|
|
<P>
|
|
<DD><DL>
|
|
|
|
<DT><B>Throws:</B>
|
|
<DD><CODE>java.io.IOException</CODE> - If an error occurs</DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="writeBase64(byte[], int, int)"><!-- --></A><H3>
|
|
writeBase64</H3>
|
|
<PRE>
|
|
public void <B>writeBase64</B>(byte[] bytes,
|
|
int off,
|
|
int len)
|
|
throws java.io.IOException</PRE>
|
|
<DL>
|
|
<DD>Method which writes a sequence of base64 encoded bytes to the output stream
|
|
<P>
|
|
<DD><DL>
|
|
<DT><B>Parameters:</B><DD><CODE>bytes</CODE> - The bytes to write
|
|
<DT><B>Throws:</B>
|
|
<DD><CODE>java.io.IOException</CODE></DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="writeHeader()"><!-- --></A><H3>
|
|
writeHeader</H3>
|
|
<PRE>
|
|
public void <B>writeHeader</B>()
|
|
throws java.io.IOException</PRE>
|
|
<DL>
|
|
<DD>Method which writes the XML header to the writer.
|
|
<P>
|
|
<DD><DL>
|
|
|
|
<DT><B>Throws:</B>
|
|
<DD><CODE>java.io.IOException</CODE> - If an error occurs</DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="attribute(java.lang.String, int)"><!-- --></A><H3>
|
|
attribute</H3>
|
|
<PRE>
|
|
public void <B>attribute</B>(java.lang.String name,
|
|
int value)
|
|
throws java.io.IOException</PRE>
|
|
<DL>
|
|
<DD>Method which writes an attribute to the XML document.
|
|
<P>
|
|
<DD><DL>
|
|
<DT><B>Parameters:</B><DD><CODE>name</CODE> - The name of the attribute to write<DD><CODE>value</CODE> - The value to write
|
|
<DT><B>Throws:</B>
|
|
<DD><CODE>java.io.IOException</CODE> - If an error occurs</DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="attribute(java.lang.String, double)"><!-- --></A><H3>
|
|
attribute</H3>
|
|
<PRE>
|
|
public void <B>attribute</B>(java.lang.String name,
|
|
double value)
|
|
throws java.io.IOException</PRE>
|
|
<DL>
|
|
<DD>Method which writes an attribute to the XML document.
|
|
<P>
|
|
<DD><DL>
|
|
<DT><B>Parameters:</B><DD><CODE>name</CODE> - The name of the attribute to write<DD><CODE>value</CODE> - The value to write
|
|
<DT><B>Throws:</B>
|
|
<DD><CODE>java.io.IOException</CODE> - If an error occurs</DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="attribute(java.lang.String, float)"><!-- --></A><H3>
|
|
attribute</H3>
|
|
<PRE>
|
|
public void <B>attribute</B>(java.lang.String name,
|
|
float value)
|
|
throws java.io.IOException</PRE>
|
|
<DL>
|
|
<DD>Method which writes an attribute to the XML document.
|
|
<P>
|
|
<DD><DL>
|
|
<DT><B>Parameters:</B><DD><CODE>name</CODE> - The name of the attribute to write<DD><CODE>value</CODE> - The value to write
|
|
<DT><B>Throws:</B>
|
|
<DD><CODE>java.io.IOException</CODE> - If an error occurs</DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="attribute(java.lang.String, long)"><!-- --></A><H3>
|
|
attribute</H3>
|
|
<PRE>
|
|
public void <B>attribute</B>(java.lang.String name,
|
|
long value)
|
|
throws java.io.IOException</PRE>
|
|
<DL>
|
|
<DD>Method which writes an attribute to the XML document.
|
|
<P>
|
|
<DD><DL>
|
|
<DT><B>Parameters:</B><DD><CODE>name</CODE> - The name of the attribute to write<DD><CODE>value</CODE> - The value to write
|
|
<DT><B>Throws:</B>
|
|
<DD><CODE>java.io.IOException</CODE> - If an error occurs</DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="attribute(java.lang.String, char)"><!-- --></A><H3>
|
|
attribute</H3>
|
|
<PRE>
|
|
public void <B>attribute</B>(java.lang.String name,
|
|
char value)
|
|
throws java.io.IOException</PRE>
|
|
<DL>
|
|
<DD>Method which writes an attribute to the XML document.
|
|
<P>
|
|
<DD><DL>
|
|
<DT><B>Parameters:</B><DD><CODE>name</CODE> - The name of the attribute to write<DD><CODE>value</CODE> - The value to write
|
|
<DT><B>Throws:</B>
|
|
<DD><CODE>java.io.IOException</CODE> - If an error occurs</DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="attribute(java.lang.String, boolean)"><!-- --></A><H3>
|
|
attribute</H3>
|
|
<PRE>
|
|
public void <B>attribute</B>(java.lang.String name,
|
|
boolean value)
|
|
throws java.io.IOException</PRE>
|
|
<DL>
|
|
<DD>Method which writes an attribute to the XML document.
|
|
<P>
|
|
<DD><DL>
|
|
<DT><B>Parameters:</B><DD><CODE>name</CODE> - The name of the attribute to write<DD><CODE>value</CODE> - The value to write
|
|
<DT><B>Throws:</B>
|
|
<DD><CODE>java.io.IOException</CODE> - If an error occurs</DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="attribute(java.lang.String, java.lang.Object)"><!-- --></A><H3>
|
|
attribute</H3>
|
|
<PRE>
|
|
public void <B>attribute</B>(java.lang.String name,
|
|
java.lang.Object value)
|
|
throws java.io.IOException</PRE>
|
|
<DL>
|
|
<DD>Method which writes an attribute to the XML document.
|
|
<P>
|
|
<DD><DL>
|
|
<DT><B>Parameters:</B><DD><CODE>name</CODE> - The name of the attribute to write<DD><CODE>value</CODE> - The value to write
|
|
<DT><B>Throws:</B>
|
|
<DD><CODE>java.io.IOException</CODE> - If an error occurs</DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="attribute(java.lang.String, java.lang.String)"><!-- --></A><H3>
|
|
attribute</H3>
|
|
<PRE>
|
|
protected void <B>attribute</B>(java.lang.String name,
|
|
java.lang.String value)
|
|
throws java.io.IOException</PRE>
|
|
<DL>
|
|
<DD>Method which writes an attribute to the XML document.
|
|
<P>
|
|
<DD><DL>
|
|
<DT><B>Parameters:</B><DD><CODE>name</CODE> - The name of the attribute to write<DD><CODE>value</CODE> - The value to write
|
|
<DT><B>Throws:</B>
|
|
<DD><CODE>java.io.IOException</CODE> - If an error occurs</DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="start(java.lang.String)"><!-- --></A><H3>
|
|
start</H3>
|
|
<PRE>
|
|
public void <B>start</B>(java.lang.String name)
|
|
throws java.io.IOException</PRE>
|
|
<DL>
|
|
<DD>Method which starts the given tag name
|
|
<P>
|
|
<DD><DL>
|
|
<DT><B>Parameters:</B><DD><CODE>name</CODE> - The name of the tag to start
|
|
<DT><B>Throws:</B>
|
|
<DD><CODE>java.io.IOException</CODE> - If an error occurs</DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="end(java.lang.String)"><!-- --></A><H3>
|
|
end</H3>
|
|
<PRE>
|
|
public void <B>end</B>(java.lang.String name)
|
|
throws java.io.IOException</PRE>
|
|
<DL>
|
|
<DD>Method which ends the given tag name
|
|
<P>
|
|
<DD><DL>
|
|
<DT><B>Parameters:</B><DD><CODE>name</CODE> - The name of the tag to end
|
|
<DT><B>Throws:</B>
|
|
<DD><CODE>java.io.IOException</CODE> - If an error occurs</DL>
|
|
</DD>
|
|
</DL>
|
|
<!-- ========= END OF CLASS DATA ========= -->
|
|
<HR>
|
|
|
|
|
|
<!-- ======= START OF BOTTOM NAVBAR ====== -->
|
|
<A NAME="navbar_bottom"><!-- --></A>
|
|
<A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
|
|
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
|
|
<TR>
|
|
<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
|
|
<A NAME="navbar_bottom_firstrow"><!-- --></A>
|
|
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
|
|
<TR ALIGN="center" VALIGN="top">
|
|
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD>
|
|
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD>
|
|
<TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD>
|
|
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/XMLWriter.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </TD>
|
|
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD>
|
|
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD>
|
|
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD>
|
|
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD>
|
|
</TR>
|
|
</TABLE>
|
|
</TD>
|
|
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
|
|
Rice Pastry API</EM>
|
|
</TD>
|
|
</TR>
|
|
|
|
<TR>
|
|
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
|
|
<A HREF="../../../rice/p2p/util/XMLReader.html" title="class in rice.p2p.util"><B>PREV CLASS</B></A>
|
|
NEXT CLASS</FONT></TD>
|
|
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
|
|
<A HREF="../../../index.html?rice/p2p/util/XMLWriter.html" target="_top"><B>FRAMES</B></A>
|
|
<A HREF="XMLWriter.html" target="_top"><B>NO FRAMES</B></A>
|
|
<SCRIPT type="text/javascript">
|
|
<!--
|
|
if(window==top) {
|
|
document.writeln('<A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>');
|
|
}
|
|
//-->
|
|
</SCRIPT>
|
|
<NOSCRIPT>
|
|
<A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>
|
|
</NOSCRIPT>
|
|
|
|
|
|
</FONT></TD>
|
|
</TR>
|
|
<TR>
|
|
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
|
|
SUMMARY: NESTED | <A HREF="#field_summary">FIELD</A> | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD>
|
|
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
|
|
DETAIL: <A HREF="#field_detail">FIELD</A> | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD>
|
|
</TR>
|
|
</TABLE>
|
|
<A NAME="skip-navbar_bottom"></A>
|
|
<!-- ======== END OF BOTTOM NAVBAR ======= -->
|
|
|
|
<HR>
|
|
<i>Copyright © 2001-2005 - Rice Pastry.</i>
|
|
</BODY>
|
|
</HTML>
|