Adding JMCR-Stable version
[Benchmarks_CSolver.git] / JMCR-Stable / real-world application / jigsaw / WWW / Doc / Programmer / api / org / w3c / tools / resources / upgrade / Upgrader.html
diff --git a/JMCR-Stable/real-world application/jigsaw/WWW/Doc/Programmer/api/org/w3c/tools/resources/upgrade/Upgrader.html b/JMCR-Stable/real-world application/jigsaw/WWW/Doc/Programmer/api/org/w3c/tools/resources/upgrade/Upgrader.html
new file mode 100644 (file)
index 0000000..73b0964
--- /dev/null
@@ -0,0 +1,695 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">\r
+<!--NewPage-->\r
+<HTML>\r
+<HEAD>\r
+<!-- Generated by javadoc (build 1.5.0_11) on Tue Apr 10 15:02:45 UTC 2007 -->\r
+<TITLE>\r
+Upgrader\r
+</TITLE>\r
+\r
+<META NAME="keywords" CONTENT="org.w3c.tools.resources.upgrade.Upgrader class">\r
+\r
+<LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../../stylesheet.css" TITLE="Style">\r
+\r
+<SCRIPT type="text/javascript">\r
+function windowTitle()\r
+{\r
+    parent.document.title="Upgrader";\r
+}\r
+</SCRIPT>\r
+<NOSCRIPT>\r
+</NOSCRIPT>\r
+\r
+</HEAD>\r
+\r
+<BODY BGCOLOR="white" onload="windowTitle();">\r
+\r
+\r
+<!-- ========= START OF TOP NAVBAR ======= -->\r
+<A NAME="navbar_top"><!-- --></A>\r
+<A HREF="#skip-navbar_top" title="Skip navigation links"></A>\r
+<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">\r
+<TR>\r
+<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">\r
+<A NAME="navbar_top_firstrow"><!-- --></A>\r
+<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">\r
+  <TR ALIGN="center" VALIGN="top">\r
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>\r
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>\r
+  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>\r
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>\r
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>\r
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>\r
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>\r
+  </TR>\r
+</TABLE>\r
+</TD>\r
+<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>\r
+</EM>\r
+</TD>\r
+</TR>\r
+\r
+<TR>\r
+<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">\r
+&nbsp;<A HREF="../../../../../org/w3c/tools/resources/upgrade/UpgradeException.html" title="class in org.w3c.tools.resources.upgrade"><B>PREV CLASS</B></A>&nbsp;\r
+&nbsp;NEXT CLASS</FONT></TD>\r
+<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">\r
+  <A HREF="../../../../../index.html?org/w3c/tools/resources/upgrade/Upgrader.html" target="_top"><B>FRAMES</B></A>  &nbsp;\r
+&nbsp;<A HREF="Upgrader.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;\r
+&nbsp;<SCRIPT type="text/javascript">\r
+  <!--\r
+  if(window==top) {\r
+    document.writeln('<A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A>');\r
+  }\r
+  //-->\r
+</SCRIPT>\r
+<NOSCRIPT>\r
+  <A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A>\r
+</NOSCRIPT>\r
+\r
+\r
+</FONT></TD>\r
+</TR>\r
+<TR>\r
+<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">\r
+  SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;<A HREF="#field_summary">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>\r
+<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">\r
+DETAIL:&nbsp;<A HREF="#field_detail">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>\r
+</TR>\r
+</TABLE>\r
+<A NAME="skip-navbar_top"></A>\r
+<!-- ========= END OF TOP NAVBAR ========= -->\r
+\r
+<HR>\r
+<!-- ======== START OF CLASS DATA ======== -->\r
+<H2>\r
+<FONT SIZE="-1">\r
+org.w3c.tools.resources.upgrade</FONT>\r
+<BR>\r
+Class Upgrader</H2>\r
+<PRE>\r
+java.lang.Object\r
+  <IMG SRC="../../../../../resources/inherit.gif" ALT="extended by "><B>org.w3c.tools.resources.upgrade.Upgrader</B>\r
+</PRE>\r
+<HR>\r
+<DL>\r
+<DT><PRE>public class <B>Upgrader</B><DT>extends java.lang.Object</DL>\r
+</PRE>\r
+\r
+<P>\r
+<HR>\r
+\r
+<P>\r
+<!-- =========== FIELD SUMMARY =========== -->\r
+\r
+<A NAME="field_summary"><!-- --></A>\r
+<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">\r
+<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">\r
+<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">\r
+<B>Field Summary</B></FONT></TH>\r
+</TR>\r
+<TR BGCOLOR="white" CLASS="TableRowColor">\r
+<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">\r
+<CODE>static&nbsp;boolean</CODE></FONT></TD>\r
+<TD><CODE><B><A HREF="../../../../../org/w3c/tools/resources/upgrade/Upgrader.html#debug">debug</A></B></CODE>\r
+\r
+<BR>\r
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>\r
+</TR>\r
+</TABLE>\r
+&nbsp;\r
+<!-- ======== CONSTRUCTOR SUMMARY ======== -->\r
+\r
+<A NAME="constructor_summary"><!-- --></A>\r
+<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">\r
+<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">\r
+<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">\r
+<B>Constructor Summary</B></FONT></TH>\r
+</TR>\r
+<TR BGCOLOR="white" CLASS="TableRowColor">\r
+<TD><CODE><B><A HREF="../../../../../org/w3c/tools/resources/upgrade/Upgrader.html#Upgrader(java.lang.String, java.io.File, java.io.File, org.w3c.tools.resources.serialization.Serializer)">Upgrader</A></B>(java.lang.String&nbsp;server,\r
+         java.io.File&nbsp;config,\r
+         java.io.File&nbsp;props,\r
+         <A HREF="../../../../../org/w3c/tools/resources/serialization/Serializer.html" title="interface in org.w3c.tools.resources.serialization">Serializer</A>&nbsp;serializer)</CODE>\r
+\r
+<BR>\r
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Constructor</TD>\r
+</TR>\r
+</TABLE>\r
+&nbsp;\r
+<!-- ========== METHOD SUMMARY =========== -->\r
+\r
+<A NAME="method_summary"><!-- --></A>\r
+<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">\r
+<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">\r
+<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">\r
+<B>Method Summary</B></FONT></TH>\r
+</TR>\r
+<TR BGCOLOR="white" CLASS="TableRowColor">\r
+<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">\r
+<CODE>protected &nbsp;void</CODE></FONT></TD>\r
+<TD><CODE><B><A HREF="../../../../../org/w3c/tools/resources/upgrade/Upgrader.html#backupStores(java.io.File, java.io.FilenameFilter)">backupStores</A></B>(java.io.File&nbsp;storedir,\r
+             java.io.FilenameFilter&nbsp;filter)</CODE>\r
+\r
+<BR>\r
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;backup the stores under the given store directory.</TD>\r
+</TR>\r
+<TR BGCOLOR="white" CLASS="TableRowColor">\r
+<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">\r
+<CODE>protected &nbsp;void</CODE></FONT></TD>\r
+<TD><CODE><B><A HREF="../../../../../org/w3c/tools/resources/upgrade/Upgrader.html#checkDir(java.io.File)">checkDir</A></B>(java.io.File&nbsp;dir)</CODE>\r
+\r
+<BR>\r
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>\r
+</TR>\r
+<TR BGCOLOR="white" CLASS="TableRowColor">\r
+<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">\r
+<CODE>protected &nbsp;void</CODE></FONT></TD>\r
+<TD><CODE><B><A HREF="../../../../../org/w3c/tools/resources/upgrade/Upgrader.html#cleanStores(java.io.File, java.io.FilenameFilter)">cleanStores</A></B>(java.io.File&nbsp;storedir,\r
+            java.io.FilenameFilter&nbsp;filter)</CODE>\r
+\r
+<BR>\r
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;clean the stores under the given store directory.</TD>\r
+</TR>\r
+<TR BGCOLOR="white" CLASS="TableRowColor">\r
+<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">\r
+<CODE>protected &nbsp;boolean</CODE></FONT></TD>\r
+<TD><CODE><B><A HREF="../../../../../org/w3c/tools/resources/upgrade/Upgrader.html#createSubDirs(java.io.File)">createSubDirs</A></B>(java.io.File&nbsp;storedir)</CODE>\r
+\r
+<BR>\r
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Create the subdirectories under /stores.</TD>\r
+</TR>\r
+<TR BGCOLOR="white" CLASS="TableRowColor">\r
+<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">\r
+<CODE>protected &nbsp;java.io.File</CODE></FONT></TD>\r
+<TD><CODE><B><A HREF="../../../../../org/w3c/tools/resources/upgrade/Upgrader.html#getNewStore(java.io.File, java.io.File)">getNewStore</A></B>(java.io.File&nbsp;storedir,\r
+            java.io.File&nbsp;oldstore)</CODE>\r
+\r
+<BR>\r
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Get the new store location.</TD>\r
+</TR>\r
+<TR BGCOLOR="white" CLASS="TableRowColor">\r
+<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">\r
+<CODE>static&nbsp;<A HREF="../../../../../org/w3c/tools/resources/upgrade/Attribute.html" title="class in org.w3c.tools.resources.upgrade">Attribute</A></CODE></FONT></TD>\r
+<TD><CODE><B><A HREF="../../../../../org/w3c/tools/resources/upgrade/Upgrader.html#getOldAttribute(org.w3c.tools.resources.Attribute)">getOldAttribute</A></B>(<A HREF="../../../../../org/w3c/tools/resources/Attribute.html" title="class in org.w3c.tools.resources">Attribute</A>&nbsp;attr)</CODE>\r
+\r
+<BR>\r
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Get the old attribute relative to the given new kind of attribute.</TD>\r
+</TR>\r
+<TR BGCOLOR="white" CLASS="TableRowColor">\r
+<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">\r
+<CODE>static&nbsp;int</CODE></FONT></TD>\r
+<TD><CODE><B><A HREF="../../../../../org/w3c/tools/resources/upgrade/Upgrader.html#lookupAttribute(java.lang.String, org.w3c.tools.resources.Attribute[])">lookupAttribute</A></B>(java.lang.String&nbsp;name,\r
+                <A HREF="../../../../../org/w3c/tools/resources/Attribute.html" title="class in org.w3c.tools.resources">Attribute</A>[]&nbsp;attributes)</CODE>\r
+\r
+<BR>\r
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Get the index of the given attribute in the given attribute array</TD>\r
+</TR>\r
+<TR BGCOLOR="white" CLASS="TableRowColor">\r
+<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">\r
+<CODE>static&nbsp;void</CODE></FONT></TD>\r
+<TD><CODE><B><A HREF="../../../../../org/w3c/tools/resources/upgrade/Upgrader.html#readIndex(java.io.DataInputStream)">readIndex</A></B>(java.io.DataInputStream&nbsp;in)</CODE>\r
+\r
+<BR>\r
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>\r
+</TR>\r
+<TR BGCOLOR="white" CLASS="TableRowColor">\r
+<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">\r
+<CODE>static&nbsp;<A HREF="../../../../../org/w3c/tools/resources/Resource.html" title="class in org.w3c.tools.resources">Resource</A>[]</CODE></FONT></TD>\r
+<TD><CODE><B><A HREF="../../../../../org/w3c/tools/resources/upgrade/Upgrader.html#readRepository(java.io.File)">readRepository</A></B>(java.io.File&nbsp;rep)</CODE>\r
+\r
+<BR>\r
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Read the resource from a repository.</TD>\r
+</TR>\r
+<TR BGCOLOR="white" CLASS="TableRowColor">\r
+<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">\r
+<CODE>static&nbsp;<A HREF="../../../../../org/w3c/tools/resources/Resource.html" title="class in org.w3c.tools.resources">Resource</A></CODE></FONT></TD>\r
+<TD><CODE><B><A HREF="../../../../../org/w3c/tools/resources/upgrade/Upgrader.html#readResource(java.io.DataInputStream)">readResource</A></B>(java.io.DataInputStream&nbsp;in)</CODE>\r
+\r
+<BR>\r
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;load a resoure from the given DataInputStream.</TD>\r
+</TR>\r
+<TR BGCOLOR="white" CLASS="TableRowColor">\r
+<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">\r
+<CODE>static&nbsp;void</CODE></FONT></TD>\r
+<TD><CODE><B><A HREF="../../../../../org/w3c/tools/resources/upgrade/Upgrader.html#unpickleProlog(java.io.DataInputStream)">unpickleProlog</A></B>(java.io.DataInputStream&nbsp;in)</CODE>\r
+\r
+<BR>\r
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>\r
+</TR>\r
+<TR BGCOLOR="white" CLASS="TableRowColor">\r
+<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">\r
+<CODE>&nbsp;void</CODE></FONT></TD>\r
+<TD><CODE><B><A HREF="../../../../../org/w3c/tools/resources/upgrade/Upgrader.html#updateEntriesIndex(java.io.File)">updateEntriesIndex</A></B>(java.io.File&nbsp;storedir)</CODE>\r
+\r
+<BR>\r
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;update the index file (in stores)</TD>\r
+</TR>\r
+<TR BGCOLOR="white" CLASS="TableRowColor">\r
+<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">\r
+<CODE>protected &nbsp;void</CODE></FONT></TD>\r
+<TD><CODE><B><A HREF="../../../../../org/w3c/tools/resources/upgrade/Upgrader.html#updateProperties(int)">updateProperties</A></B>(int&nbsp;version)</CODE>\r
+\r
+<BR>\r
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Update the properties to add the serializer class in it.</TD>\r
+</TR>\r
+<TR BGCOLOR="white" CLASS="TableRowColor">\r
+<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">\r
+<CODE>&nbsp;void</CODE></FONT></TD>\r
+<TD><CODE><B><A HREF="../../../../../org/w3c/tools/resources/upgrade/Upgrader.html#upgrade(int)">upgrade</A></B>(int&nbsp;version)</CODE>\r
+\r
+<BR>\r
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;The big stuff, upgrade the configuration in XML\r
\r
+  Upgrade the resource stores\r
+  Upgrade the indexers (if any)\r
+  Upgrade the realms (if any)\r
+  Upgrade the properties files\r
+ </TD>\r
+</TR>\r
+<TR BGCOLOR="white" CLASS="TableRowColor">\r
+<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">\r
+<CODE>protected &nbsp;void</CODE></FONT></TD>\r
+<TD><CODE><B><A HREF="../../../../../org/w3c/tools/resources/upgrade/Upgrader.html#upgradeDB(java.io.File, java.io.FilenameFilter)">upgradeDB</A></B>(java.io.File&nbsp;storedir,\r
+          java.io.FilenameFilter&nbsp;filter)</CODE>\r
+\r
+<BR>\r
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Upgrade the stores (.db) under the given store directory.</TD>\r
+</TR>\r
+<TR BGCOLOR="white" CLASS="TableRowColor">\r
+<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">\r
+<CODE>protected &nbsp;void</CODE></FONT></TD>\r
+<TD><CODE><B><A HREF="../../../../../org/w3c/tools/resources/upgrade/Upgrader.html#upgradeStores(java.io.File, java.io.FilenameFilter)">upgradeStores</A></B>(java.io.File&nbsp;storedir,\r
+              java.io.FilenameFilter&nbsp;filter)</CODE>\r
+\r
+<BR>\r
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Upgrade the stores (st-xxx)  under the given store directory.</TD>\r
+</TR>\r
+<TR BGCOLOR="white" CLASS="TableRowColor">\r
+<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">\r
+<CODE>static&nbsp;void</CODE></FONT></TD>\r
+<TD><CODE><B><A HREF="../../../../../org/w3c/tools/resources/upgrade/Upgrader.html#usage()">usage</A></B>()</CODE>\r
+\r
+<BR>\r
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>\r
+</TR>\r
+</TABLE>\r
+&nbsp;<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>\r
+<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">\r
+<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">\r
+<TH ALIGN="left"><B>Methods inherited from class java.lang.Object</B></TH>\r
+</TR>\r
+<TR BGCOLOR="white" CLASS="TableRowColor">\r
+<TD><CODE>clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</CODE></TD>\r
+</TR>\r
+</TABLE>\r
+&nbsp;\r
+<P>\r
+\r
+<!-- ============ FIELD DETAIL =========== -->\r
+\r
+<A NAME="field_detail"><!-- --></A>\r
+<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">\r
+<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">\r
+<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">\r
+<B>Field Detail</B></FONT></TH>\r
+</TR>\r
+</TABLE>\r
+\r
+<A NAME="debug"><!-- --></A><H3>\r
+debug</H3>\r
+<PRE>\r
+public static final boolean <B>debug</B></PRE>\r
+<DL>\r
+<DL>\r
+<DT><B>See Also:</B><DD><A HREF="../../../../../constant-values.html#org.w3c.tools.resources.upgrade.Upgrader.debug">Constant Field Values</A></DL>\r
+</DL>\r
+\r
+<!-- ========= CONSTRUCTOR DETAIL ======== -->\r
+\r
+<A NAME="constructor_detail"><!-- --></A>\r
+<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">\r
+<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">\r
+<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">\r
+<B>Constructor Detail</B></FONT></TH>\r
+</TR>\r
+</TABLE>\r
+\r
+<A NAME="Upgrader(java.lang.String, java.io.File, java.io.File, org.w3c.tools.resources.serialization.Serializer)"><!-- --></A><H3>\r
+Upgrader</H3>\r
+<PRE>\r
+public <B>Upgrader</B>(java.lang.String&nbsp;server,\r
+                java.io.File&nbsp;config,\r
+                java.io.File&nbsp;props,\r
+                <A HREF="../../../../../org/w3c/tools/resources/serialization/Serializer.html" title="interface in org.w3c.tools.resources.serialization">Serializer</A>&nbsp;serializer)</PRE>\r
+<DL>\r
+<DD>Constructor\r
+<P>\r
+<DL>\r
+<DT><B>Parameters:</B><DD><CODE>server</CODE> - the server name<DD><CODE>config</CODE> - the server config directory<DD><CODE>props</CODE> - the server properties file<DD><CODE>serializer</CODE> - the XML Serializer</DL>\r
+</DL>\r
+\r
+<!-- ============ METHOD DETAIL ========== -->\r
+\r
+<A NAME="method_detail"><!-- --></A>\r
+<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">\r
+<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">\r
+<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">\r
+<B>Method Detail</B></FONT></TH>\r
+</TR>\r
+</TABLE>\r
+\r
+<A NAME="usage()"><!-- --></A><H3>\r
+usage</H3>\r
+<PRE>\r
+public static void <B>usage</B>()</PRE>\r
+<DL>\r
+<DD><DL>\r
+</DL>\r
+</DD>\r
+</DL>\r
+<HR>\r
+\r
+<A NAME="lookupAttribute(java.lang.String, org.w3c.tools.resources.Attribute[])"><!-- --></A><H3>\r
+lookupAttribute</H3>\r
+<PRE>\r
+public static int <B>lookupAttribute</B>(java.lang.String&nbsp;name,\r
+                                  <A HREF="../../../../../org/w3c/tools/resources/Attribute.html" title="class in org.w3c.tools.resources">Attribute</A>[]&nbsp;attributes)</PRE>\r
+<DL>\r
+<DD>Get the index of the given attribute in the given attribute array\r
+<P>\r
+<DD><DL>\r
+<DT><B>Parameters:</B><DD><CODE>name,</CODE> - the attribute name.<DD><CODE>attributes,</CODE> - the atribute array.\r
+<DT><B>Returns:</B><DD>an int</DL>\r
+</DD>\r
+</DL>\r
+<HR>\r
+\r
+<A NAME="getOldAttribute(org.w3c.tools.resources.Attribute)"><!-- --></A><H3>\r
+getOldAttribute</H3>\r
+<PRE>\r
+public static <A HREF="../../../../../org/w3c/tools/resources/upgrade/Attribute.html" title="class in org.w3c.tools.resources.upgrade">Attribute</A> <B>getOldAttribute</B>(<A HREF="../../../../../org/w3c/tools/resources/Attribute.html" title="class in org.w3c.tools.resources">Attribute</A>&nbsp;attr)\r
+                                 throws <A HREF="../../../../../org/w3c/tools/resources/upgrade/UpgradeException.html" title="class in org.w3c.tools.resources.upgrade">UpgradeException</A></PRE>\r
+<DL>\r
+<DD>Get the old attribute relative to the given new kind of attribute.\r
+<P>\r
+<DD><DL>\r
+<DT><B>Parameters:</B><DD><CODE>attr</CODE> - the new attribute\r
+<DT><B>Returns:</B><DD>the old attribute\r
+<DT><B>Throws:</B>\r
+<DD><CODE><A HREF="../../../../../org/w3c/tools/resources/upgrade/UpgradeException.html" title="class in org.w3c.tools.resources.upgrade">UpgradeException</A></CODE></DL>\r
+</DD>\r
+</DL>\r
+<HR>\r
+\r
+<A NAME="unpickleProlog(java.io.DataInputStream)"><!-- --></A><H3>\r
+unpickleProlog</H3>\r
+<PRE>\r
+public static void <B>unpickleProlog</B>(java.io.DataInputStream&nbsp;in)\r
+                           throws java.io.IOException</PRE>\r
+<DL>\r
+<DD><DL>\r
+\r
+<DT><B>Throws:</B>\r
+<DD><CODE>java.io.IOException</CODE></DL>\r
+</DD>\r
+</DL>\r
+<HR>\r
+\r
+<A NAME="readIndex(java.io.DataInputStream)"><!-- --></A><H3>\r
+readIndex</H3>\r
+<PRE>\r
+public static void <B>readIndex</B>(java.io.DataInputStream&nbsp;in)\r
+                      throws java.io.IOException</PRE>\r
+<DL>\r
+<DD><DL>\r
+\r
+<DT><B>Throws:</B>\r
+<DD><CODE>java.io.IOException</CODE></DL>\r
+</DD>\r
+</DL>\r
+<HR>\r
+\r
+<A NAME="readResource(java.io.DataInputStream)"><!-- --></A><H3>\r
+readResource</H3>\r
+<PRE>\r
+public static <A HREF="../../../../../org/w3c/tools/resources/Resource.html" title="class in org.w3c.tools.resources">Resource</A> <B>readResource</B>(java.io.DataInputStream&nbsp;in)\r
+                             throws java.io.IOException,\r
+                                    <A HREF="../../../../../org/w3c/tools/resources/upgrade/UpgradeException.html" title="class in org.w3c.tools.resources.upgrade">UpgradeException</A></PRE>\r
+<DL>\r
+<DD>load a resoure from the given DataInputStream.\r
+<P>\r
+<DD><DL>\r
+<DT><B>Parameters:</B><DD><CODE>in</CODE> - the DataInputStream\r
+<DT><B>Returns:</B><DD>a Resource instance\r
+<DT><B>Throws:</B>\r
+<DD><CODE>java.io.IOException</CODE>\r
+<DD><CODE><A HREF="../../../../../org/w3c/tools/resources/upgrade/UpgradeException.html" title="class in org.w3c.tools.resources.upgrade">UpgradeException</A></CODE></DL>\r
+</DD>\r
+</DL>\r
+<HR>\r
+\r
+<A NAME="readRepository(java.io.File)"><!-- --></A><H3>\r
+readRepository</H3>\r
+<PRE>\r
+public static <A HREF="../../../../../org/w3c/tools/resources/Resource.html" title="class in org.w3c.tools.resources">Resource</A>[] <B>readRepository</B>(java.io.File&nbsp;rep)\r
+                                 throws java.io.FileNotFoundException,\r
+                                        java.io.IOException,\r
+                                        <A HREF="../../../../../org/w3c/tools/resources/upgrade/UpgradeException.html" title="class in org.w3c.tools.resources.upgrade">UpgradeException</A></PRE>\r
+<DL>\r
+<DD>Read the resource from a repository.\r
+<P>\r
+<DD><DL>\r
+<DT><B>Parameters:</B><DD><CODE>rep</CODE> - the repository (a File)\r
+<DT><B>Returns:</B><DD>a Resource array\r
+<DT><B>Throws:</B>\r
+<DD><CODE>java.io.FileNotFoundException</CODE>\r
+<DD><CODE>java.io.IOException</CODE>\r
+<DD><CODE><A HREF="../../../../../org/w3c/tools/resources/upgrade/UpgradeException.html" title="class in org.w3c.tools.resources.upgrade">UpgradeException</A></CODE></DL>\r
+</DD>\r
+</DL>\r
+<HR>\r
+\r
+<A NAME="updateEntriesIndex(java.io.File)"><!-- --></A><H3>\r
+updateEntriesIndex</H3>\r
+<PRE>\r
+public void <B>updateEntriesIndex</B>(java.io.File&nbsp;storedir)\r
+                        throws java.io.IOException,\r
+                               <A HREF="../../../../../org/w3c/tools/resources/upgrade/UpgradeException.html" title="class in org.w3c.tools.resources.upgrade">UpgradeException</A></PRE>\r
+<DL>\r
+<DD>update the index file (in stores)\r
+<P>\r
+<DD><DL>\r
+\r
+<DT><B>Throws:</B>\r
+<DD><CODE>java.io.IOException</CODE> - if an IO error occurs\r
+<DD><CODE><A HREF="../../../../../org/w3c/tools/resources/upgrade/UpgradeException.html" title="class in org.w3c.tools.resources.upgrade">UpgradeException</A></CODE></DL>\r
+</DD>\r
+</DL>\r
+<HR>\r
+\r
+<A NAME="createSubDirs(java.io.File)"><!-- --></A><H3>\r
+createSubDirs</H3>\r
+<PRE>\r
+protected boolean <B>createSubDirs</B>(java.io.File&nbsp;storedir)</PRE>\r
+<DL>\r
+<DD>Create the subdirectories under /stores.\r
+<P>\r
+<DD><DL>\r
+</DL>\r
+</DD>\r
+</DL>\r
+<HR>\r
+\r
+<A NAME="getNewStore(java.io.File, java.io.File)"><!-- --></A><H3>\r
+getNewStore</H3>\r
+<PRE>\r
+protected java.io.File <B>getNewStore</B>(java.io.File&nbsp;storedir,\r
+                                   java.io.File&nbsp;oldstore)</PRE>\r
+<DL>\r
+<DD>Get the new store location.\r
+<P>\r
+<DD><DL>\r
+<DT><B>Parameters:</B><DD><CODE>oldstore</CODE> - the Old store.\r
+<DT><B>Returns:</B><DD>a File instance</DL>\r
+</DD>\r
+</DL>\r
+<HR>\r
+\r
+<A NAME="upgradeStores(java.io.File, java.io.FilenameFilter)"><!-- --></A><H3>\r
+upgradeStores</H3>\r
+<PRE>\r
+protected void <B>upgradeStores</B>(java.io.File&nbsp;storedir,\r
+                             java.io.FilenameFilter&nbsp;filter)\r
+                      throws <A HREF="../../../../../org/w3c/tools/resources/upgrade/UpgradeException.html" title="class in org.w3c.tools.resources.upgrade">UpgradeException</A></PRE>\r
+<DL>\r
+<DD>Upgrade the stores (st-xxx)  under the given store directory.\r
+<P>\r
+<DD><DL>\r
+<DT><B>Parameters:</B><DD><CODE>storedir</CODE> - the store directory<DD><CODE>filter</CODE> - the filter to use to list the stores\r
+<DT><B>Throws:</B>\r
+<DD><CODE><A HREF="../../../../../org/w3c/tools/resources/upgrade/UpgradeException.html" title="class in org.w3c.tools.resources.upgrade">UpgradeException</A></CODE></DL>\r
+</DD>\r
+</DL>\r
+<HR>\r
+\r
+<A NAME="upgradeDB(java.io.File, java.io.FilenameFilter)"><!-- --></A><H3>\r
+upgradeDB</H3>\r
+<PRE>\r
+protected void <B>upgradeDB</B>(java.io.File&nbsp;storedir,\r
+                         java.io.FilenameFilter&nbsp;filter)</PRE>\r
+<DL>\r
+<DD>Upgrade the stores (.db) under the given store directory.\r
+<P>\r
+<DD><DL>\r
+<DT><B>Parameters:</B><DD><CODE>storedir</CODE> - the store directory<DD><CODE>filter</CODE> - the filter to use to list the stores</DL>\r
+</DD>\r
+</DL>\r
+<HR>\r
+\r
+<A NAME="backupStores(java.io.File, java.io.FilenameFilter)"><!-- --></A><H3>\r
+backupStores</H3>\r
+<PRE>\r
+protected void <B>backupStores</B>(java.io.File&nbsp;storedir,\r
+                            java.io.FilenameFilter&nbsp;filter)\r
+                     throws java.io.IOException</PRE>\r
+<DL>\r
+<DD>backup the stores under the given store directory.\r
+<P>\r
+<DD><DL>\r
+<DT><B>Parameters:</B><DD><CODE>storedir</CODE> - the store directory<DD><CODE>filter</CODE> - the filter to use to list the stores\r
+<DT><B>Throws:</B>\r
+<DD><CODE>java.io.IOException</CODE></DL>\r
+</DD>\r
+</DL>\r
+<HR>\r
+\r
+<A NAME="cleanStores(java.io.File, java.io.FilenameFilter)"><!-- --></A><H3>\r
+cleanStores</H3>\r
+<PRE>\r
+protected void <B>cleanStores</B>(java.io.File&nbsp;storedir,\r
+                           java.io.FilenameFilter&nbsp;filter)\r
+                    throws java.io.IOException</PRE>\r
+<DL>\r
+<DD>clean the stores under the given store directory.\r
+<P>\r
+<DD><DL>\r
+<DT><B>Parameters:</B><DD><CODE>storedir</CODE> - the store directory<DD><CODE>filter</CODE> - the filter to use to list the stores\r
+<DT><B>Throws:</B>\r
+<DD><CODE>java.io.IOException</CODE></DL>\r
+</DD>\r
+</DL>\r
+<HR>\r
+\r
+<A NAME="updateProperties(int)"><!-- --></A><H3>\r
+updateProperties</H3>\r
+<PRE>\r
+protected void <B>updateProperties</B>(int&nbsp;version)</PRE>\r
+<DL>\r
+<DD>Update the properties to add the serializer class in it.\r
+<P>\r
+<DD><DL>\r
+</DL>\r
+</DD>\r
+</DL>\r
+<HR>\r
+\r
+<A NAME="checkDir(java.io.File)"><!-- --></A><H3>\r
+checkDir</H3>\r
+<PRE>\r
+protected void <B>checkDir</B>(java.io.File&nbsp;dir)\r
+                 throws <A HREF="../../../../../org/w3c/tools/resources/upgrade/UpgradeException.html" title="class in org.w3c.tools.resources.upgrade">UpgradeException</A></PRE>\r
+<DL>\r
+<DD><DL>\r
+\r
+<DT><B>Throws:</B>\r
+<DD><CODE><A HREF="../../../../../org/w3c/tools/resources/upgrade/UpgradeException.html" title="class in org.w3c.tools.resources.upgrade">UpgradeException</A></CODE></DL>\r
+</DD>\r
+</DL>\r
+<HR>\r
+\r
+<A NAME="upgrade(int)"><!-- --></A><H3>\r
+upgrade</H3>\r
+<PRE>\r
+public void <B>upgrade</B>(int&nbsp;version)\r
+             throws java.io.IOException,\r
+                    <A HREF="../../../../../org/w3c/tools/resources/upgrade/UpgradeException.html" title="class in org.w3c.tools.resources.upgrade">UpgradeException</A></PRE>\r
+<DL>\r
+<DD>The big stuff, upgrade the configuration in XML\r
+ <ol>\r
+ <li> Upgrade the resource stores\r
+ <li> Upgrade the indexers (if any)\r
+ <li> Upgrade the realms (if any)\r
+ <li> Upgrade the properties files\r
+ </ol>\r
+<P>\r
+<DD><DL>\r
+\r
+<DT><B>Throws:</B>\r
+<DD><CODE>java.io.IOException</CODE> - if an IO error occurs\r
+<DD><CODE><A HREF="../../../../../org/w3c/tools/resources/upgrade/UpgradeException.html" title="class in org.w3c.tools.resources.upgrade">UpgradeException</A></CODE></DL>\r
+</DD>\r
+</DL>\r
+<!-- ========= END OF CLASS DATA ========= -->\r
+<HR>\r
+\r
+\r
+<!-- ======= START OF BOTTOM NAVBAR ====== -->\r
+<A NAME="navbar_bottom"><!-- --></A>\r
+<A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>\r
+<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">\r
+<TR>\r
+<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">\r
+<A NAME="navbar_bottom_firstrow"><!-- --></A>\r
+<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">\r
+  <TR ALIGN="center" VALIGN="top">\r
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>\r
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>\r
+  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>\r
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>\r
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>\r
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>\r
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>\r
+  </TR>\r
+</TABLE>\r
+</TD>\r
+<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>\r
+</EM>\r
+</TD>\r
+</TR>\r
+\r
+<TR>\r
+<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">\r
+&nbsp;<A HREF="../../../../../org/w3c/tools/resources/upgrade/UpgradeException.html" title="class in org.w3c.tools.resources.upgrade"><B>PREV CLASS</B></A>&nbsp;\r
+&nbsp;NEXT CLASS</FONT></TD>\r
+<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">\r
+  <A HREF="../../../../../index.html?org/w3c/tools/resources/upgrade/Upgrader.html" target="_top"><B>FRAMES</B></A>  &nbsp;\r
+&nbsp;<A HREF="Upgrader.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;\r
+&nbsp;<SCRIPT type="text/javascript">\r
+  <!--\r
+  if(window==top) {\r
+    document.writeln('<A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A>');\r
+  }\r
+  //-->\r
+</SCRIPT>\r
+<NOSCRIPT>\r
+  <A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A>\r
+</NOSCRIPT>\r
+\r
+\r
+</FONT></TD>\r
+</TR>\r
+<TR>\r
+<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">\r
+  SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;<A HREF="#field_summary">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>\r
+<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">\r
+DETAIL:&nbsp;<A HREF="#field_detail">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>\r
+</TR>\r
+</TABLE>\r
+<A NAME="skip-navbar_bottom"></A>\r
+<!-- ======== END OF BOTTOM NAVBAR ======= -->\r
+\r
+<HR>\r
+\r
+</BODY>\r
+</HTML>\r