AbstractDOMAdapter.html from PeerWriter at Krugle
Show AbstractDOMAdapter.html syntax highlighted
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Frameset//EN""http://www.w3.org/TR/REC-html40/frameset.dtd">
<!--NewPage-->
<HTML>
<HEAD>
<!-- Generated by javadoc on Thu Sep 09 16:01:24 PDT 2004 -->
<TITLE>
JDOM v1.0: Class AbstractDOMAdapter
</TITLE>
<LINK REL ="stylesheet" TYPE="text/css" HREF="../../../stylesheet.css" TITLE="Style">
</HEAD>
<BODY BGCOLOR="white">
<!-- ========== START OF NAVBAR ========== -->
<A NAME="navbar_top"><!-- --></A>
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0">
<TR>
<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
<A NAME="navbar_top_firstrow"><!-- --></A>
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3">
<TR ALIGN="center" VALIGN="top">
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../overview-summary.html"><FONT ID="NavBarFont1"><B>Overview</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT ID="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/AbstractDOMAdapter.html"><FONT ID="NavBarFont1"><B>Use</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT ID="NavBarFont1"><B>Tree</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../deprecated-list.html"><FONT ID="NavBarFont1"><B>Deprecated</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../index-files/index-1.html"><FONT ID="NavBarFont1"><B>Index</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../help-doc.html"><FONT ID="NavBarFont1"><B>Help</B></FONT></A> </TD>
</TR>
</TABLE>
</TD>
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
<b>JDOM<br><font size='-1'>1.0</font></b></EM>
</TD>
</TR>
<TR>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
PREV CLASS
<A HREF="../../../org/jdom/adapters/CrimsonDOMAdapter.html"><B>NEXT CLASS</B></A></FONT></TD>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
<A HREF="../../../index.html" TARGET="_top"><B>FRAMES</B></A>
<A HREF="AbstractDOMAdapter.html" TARGET="_top"><B>NO FRAMES</B></A></FONT></TD>
</TR>
<TR>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
SUMMARY: INNER | FIELD | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
DETAIL: FIELD | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD>
</TR>
</TABLE>
<!-- =========== END OF NAVBAR =========== -->
<HR>
<!-- ======== START OF CLASS DATA ======== -->
<H2>
<FONT SIZE="-1">
org.jdom.adapters</FONT>
<BR>
Class AbstractDOMAdapter</H2>
<PRE>
java.lang.Object
|
+--<B>org.jdom.adapters.AbstractDOMAdapter</B>
</PRE>
<DL>
<DT><B>Direct Known Subclasses:</B> <DD><A HREF="../../../org/jdom/adapters/CrimsonDOMAdapter.html">CrimsonDOMAdapter</A>, <A HREF="../../../org/jdom/adapters/JAXPDOMAdapter.html">JAXPDOMAdapter</A>, <A HREF="../../../org/jdom/adapters/OracleV1DOMAdapter.html">OracleV1DOMAdapter</A>, <A HREF="../../../org/jdom/adapters/OracleV2DOMAdapter.html">OracleV2DOMAdapter</A>, <A HREF="../../../org/jdom/adapters/XercesDOMAdapter.html">XercesDOMAdapter</A>, <A HREF="../../../org/jdom/adapters/XML4JDOMAdapter.html">XML4JDOMAdapter</A></DD>
</DL>
<HR>
<DL>
<DT>public abstract class <B>AbstractDOMAdapter</B><DT>extends java.lang.Object<DT>implements <A HREF="../../../org/jdom/adapters/DOMAdapter.html">DOMAdapter</A></DL>
<P>
A DOMAdapter utility abstract base class.
<P>
<DL>
<DT><B>Version: </B><DD>$Revision: 1.1 $, $Date: 2006/12/31 13:37:27 $</DD>
<DT><B>Author: </B><DD>Brett McLaughlin, Jason Hunter</DD>
</DL>
<HR>
<P>
<!-- ======== INNER CLASS SUMMARY ======== -->
<!-- =========== FIELD SUMMARY =========== -->
<!-- ======== CONSTRUCTOR SUMMARY ======== -->
<A NAME="constructor_summary"><!-- --></A>
<TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TD COLSPAN=2><FONT SIZE="+2">
<B>Constructor Summary</B></FONT></TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><B><A HREF="../../../org/jdom/adapters/AbstractDOMAdapter.html#AbstractDOMAdapter()">AbstractDOMAdapter</A></B>()</CODE>
<BR>
</TD>
</TR>
</TABLE>
<!-- ========== METHOD SUMMARY =========== -->
<A NAME="method_summary"><!-- --></A>
<TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TD COLSPAN=2><FONT SIZE="+2">
<B>Method Summary</B></FONT></TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>abstract org.w3c.dom.Document</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../org/jdom/adapters/AbstractDOMAdapter.html#createDocument()">createDocument</A></B>()</CODE>
<BR>
This creates an empty <code>Document</code> object based
on a specific parser implementation.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> org.w3c.dom.Document</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../org/jdom/adapters/AbstractDOMAdapter.html#createDocument(org.jdom.DocType)">createDocument</A></B>(<A HREF="../../../org/jdom/DocType.html">DocType</A> doctype)</CODE>
<BR>
This creates an empty <code>Document</code> object based
on a specific parser implementation with the given DOCTYPE.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> org.w3c.dom.Document</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../org/jdom/adapters/AbstractDOMAdapter.html#getDocument(java.io.File, boolean)">getDocument</A></B>(java.io.File filename,
boolean validate)</CODE>
<BR>
This creates a new <code><CODE>Document</CODE></code> from an
existing <code>InputStream</code> by letting a DOM
parser handle parsing using the supplied stream.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>abstract org.w3c.dom.Document</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../org/jdom/adapters/AbstractDOMAdapter.html#getDocument(java.io.InputStream, boolean)">getDocument</A></B>(java.io.InputStream in,
boolean validate)</CODE>
<BR>
This creates a new <code><CODE>Document</CODE></code> from an
existing <code>InputStream</code> by letting a DOM
parser handle parsing using the supplied stream.</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="../../../org/jdom/adapters/AbstractDOMAdapter.html#setInternalSubset(org.w3c.dom.DocumentType, java.lang.String)">setInternalSubset</A></B>(org.w3c.dom.DocumentType dt,
java.lang.String s)</CODE>
<BR>
This attempts to change the DocumentType to have the given internal DTD
subset value.</TD>
</TR>
</TABLE>
<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
<TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
<TD><B>Methods inherited from class java.lang.Object</B></TD>
</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 =========== -->
<!-- ========= CONSTRUCTOR DETAIL ======== -->
<A NAME="constructor_detail"><!-- --></A>
<TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TD COLSPAN=1><FONT SIZE="+2">
<B>Constructor Detail</B></FONT></TD>
</TR>
</TABLE>
<A NAME="AbstractDOMAdapter()"><!-- --></A><H3>
AbstractDOMAdapter</H3>
<PRE>
public <B>AbstractDOMAdapter</B>()</PRE>
<DL>
</DL>
<!-- ============ METHOD DETAIL ========== -->
<A NAME="method_detail"><!-- --></A>
<TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TD COLSPAN=1><FONT SIZE="+2">
<B>Method Detail</B></FONT></TD>
</TR>
</TABLE>
<A NAME="getDocument(java.io.File, boolean)"><!-- --></A><H3>
getDocument</H3>
<PRE>
public org.w3c.dom.Document <B>getDocument</B>(java.io.File filename,
boolean validate)
throws java.io.IOException,
<A HREF="../../../org/jdom/JDOMException.html">JDOMException</A></PRE>
<DL>
<DD>This creates a new <code><CODE>Document</CODE></code> from an
existing <code>InputStream</code> by letting a DOM
parser handle parsing using the supplied stream.<DD><DL>
<DT><B>Specified by: </B><DD><A HREF="../../../org/jdom/adapters/DOMAdapter.html#getDocument(java.io.File, boolean)">getDocument</A> in interface <A HREF="../../../org/jdom/adapters/DOMAdapter.html">DOMAdapter</A></DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>filename</CODE> - file to parse.<DD><CODE>validate</CODE> - <code>boolean</code> to indicate if validation should occur.<DT><B>Returns:</B><DD><code>Document</code> - instance ready for use.<DT><B>Throws:</B><DD>java.io.IOException - when I/O error occurs.<DD><A HREF="../../../org/jdom/JDOMException.html">JDOMException</A> - when errors occur in parsing.</DL>
</DD>
</DL>
<HR>
<A NAME="getDocument(java.io.InputStream, boolean)"><!-- --></A><H3>
getDocument</H3>
<PRE>
public abstract org.w3c.dom.Document <B>getDocument</B>(java.io.InputStream in,
boolean validate)
throws java.io.IOException,
<A HREF="../../../org/jdom/JDOMException.html">JDOMException</A></PRE>
<DL>
<DD>This creates a new <code><CODE>Document</CODE></code> from an
existing <code>InputStream</code> by letting a DOM
parser handle parsing using the supplied stream.<DD><DL>
<DT><B>Specified by: </B><DD><A HREF="../../../org/jdom/adapters/DOMAdapter.html#getDocument(java.io.InputStream, boolean)">getDocument</A> in interface <A HREF="../../../org/jdom/adapters/DOMAdapter.html">DOMAdapter</A></DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>in</CODE> - <code>InputStream</code> to parse.<DD><CODE>validate</CODE> - <code>boolean</code> to indicate if validation should occur.<DT><B>Returns:</B><DD><code>Document</code> - instance ready for use.<DT><B>Throws:</B><DD>java.io.IOException - when I/O error occurs.<DD><A HREF="../../../org/jdom/JDOMException.html">JDOMException</A> - when errors occur in parsing.</DL>
</DD>
</DL>
<HR>
<A NAME="createDocument()"><!-- --></A><H3>
createDocument</H3>
<PRE>
public abstract org.w3c.dom.Document <B>createDocument</B>()
throws <A HREF="../../../org/jdom/JDOMException.html">JDOMException</A></PRE>
<DL>
<DD>This creates an empty <code>Document</code> object based
on a specific parser implementation.<DD><DL>
<DT><B>Specified by: </B><DD><A HREF="../../../org/jdom/adapters/DOMAdapter.html#createDocument()">createDocument</A> in interface <A HREF="../../../org/jdom/adapters/DOMAdapter.html">DOMAdapter</A></DL>
</DD>
<DD><DL>
<DT><B>Returns:</B><DD><code>Document</code> - created DOM Document.<DT><B>Throws:</B><DD><A HREF="../../../org/jdom/JDOMException.html">JDOMException</A> - when errors occur.</DL>
</DD>
</DL>
<HR>
<A NAME="createDocument(org.jdom.DocType)"><!-- --></A><H3>
createDocument</H3>
<PRE>
public org.w3c.dom.Document <B>createDocument</B>(<A HREF="../../../org/jdom/DocType.html">DocType</A> doctype)
throws <A HREF="../../../org/jdom/JDOMException.html">JDOMException</A></PRE>
<DL>
<DD>This creates an empty <code>Document</code> object based
on a specific parser implementation with the given DOCTYPE.
If the doctype parameter is null, the behavior is the same as
calling <code>createDocument()</code>.<DD><DL>
<DT><B>Specified by: </B><DD><A HREF="../../../org/jdom/adapters/DOMAdapter.html#createDocument(org.jdom.DocType)">createDocument</A> in interface <A HREF="../../../org/jdom/adapters/DOMAdapter.html">DOMAdapter</A></DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>doctype</CODE> - Initial <code>DocType</code> of the document.<DT><B>Returns:</B><DD><code>Document</code> - created DOM Document.<DT><B>Throws:</B><DD><A HREF="../../../org/jdom/JDOMException.html">JDOMException</A> - when errors occur.</DL>
</DD>
</DL>
<HR>
<A NAME="setInternalSubset(org.w3c.dom.DocumentType, java.lang.String)"><!-- --></A><H3>
setInternalSubset</H3>
<PRE>
protected void <B>setInternalSubset</B>(org.w3c.dom.DocumentType dt,
java.lang.String s)</PRE>
<DL>
<DD>This attempts to change the DocumentType to have the given internal DTD
subset value. This is not a standard ability in DOM, so it's only
available with some parsers. Subclasses can alter the mechanism by
which the attempt is made to set the value.<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>dt</CODE> - DocumentType to be altered<DD><CODE>s</CODE> - String to use as the internal DTD subset</DL>
</DD>
</DL>
<!-- ========= END OF CLASS DATA ========= -->
<HR>
<!-- ========== START OF NAVBAR ========== -->
<A NAME="navbar_bottom"><!-- --></A>
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0">
<TR>
<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
<A NAME="navbar_bottom_firstrow"><!-- --></A>
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3">
<TR ALIGN="center" VALIGN="top">
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../overview-summary.html"><FONT ID="NavBarFont1"><B>Overview</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT ID="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/AbstractDOMAdapter.html"><FONT ID="NavBarFont1"><B>Use</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT ID="NavBarFont1"><B>Tree</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../deprecated-list.html"><FONT ID="NavBarFont1"><B>Deprecated</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../index-files/index-1.html"><FONT ID="NavBarFont1"><B>Index</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../help-doc.html"><FONT ID="NavBarFont1"><B>Help</B></FONT></A> </TD>
</TR>
</TABLE>
</TD>
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
<b>JDOM<br><font size='-1'>1.0</font></b></EM>
</TD>
</TR>
<TR>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
PREV CLASS
<A HREF="../../../org/jdom/adapters/CrimsonDOMAdapter.html"><B>NEXT CLASS</B></A></FONT></TD>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
<A HREF="../../../index.html" TARGET="_top"><B>FRAMES</B></A>
<A HREF="AbstractDOMAdapter.html" TARGET="_top"><B>NO FRAMES</B></A></FONT></TD>
</TR>
<TR>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
SUMMARY: INNER | FIELD | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
DETAIL: FIELD | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD>
</TR>
</TABLE>
<!-- =========== END OF NAVBAR =========== -->
<HR>
Copyright © 2004 Jason Hunter, Brett McLaughlin. All Rights Reserved.
</BODY>
</HTML>
See more files for this project here