acoliver 02/02/21 20:27:18
Modified: src/contrib/src/org/apache/poi/contrib/poibrowser
POIBrowser.java TreeReaderListener.java
src/documentation/xdocs book.xml index.xml overview.xml
who.xml
Log:
added stuff from the klute-meister
Revision Changes Path
1.3 +13 -3
jakarta-poi/src/contrib/src/org/apache/poi/contrib/poibrowser/POIBrowser.java
Index: POIBrowser.java
===================================================================
RCS file:
/home/cvs/jakarta-poi/src/contrib/src/org/apache/poi/contrib/poibrowser/POIBrowser.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- POIBrowser.java 15 Feb 2002 02:24:36 -0000 1.2
+++ POIBrowser.java 22 Feb 2002 04:27:18 -0000 1.3
@@ -72,7 +72,7 @@
* @see POIFSReader
*
* @author Rainer Klute ([EMAIL PROTECTED])
- * @version $Id: POIBrowser.java,v 1.2 2002/02/15 02:24:36 mjohnson Exp $
+ * @version $Id: POIBrowser.java,v 1.3 2002/02/22 04:27:18 acoliver Exp $
* @since 2002-01-19
*/
public class POIBrowser extends JFrame
@@ -110,7 +110,7 @@
/* Create the tree model with a root node. The latter is
* invisible but it must be present because a tree model
* always needs a root. */
- rootNode = new DefaultMutableTreeNode("POIFS");
+ rootNode = new DefaultMutableTreeNode("POI Filesystems");
DefaultTreeModel treeModel = new DefaultTreeModel(rootNode);
/* Create the tree UI element. */
@@ -118,6 +118,7 @@
getContentPane().add(new JScrollPane(treeUI));
/* Add the POI filesystems to the tree. */
+ int displayedFiles = 0;
for (int i = 0; i < args.length; i++)
{
final String filename = args[i];
@@ -126,6 +127,7 @@
POIFSReader r = new POIFSReader();
r.registerListener(new TreeReaderListener(filename, rootNode));
r.read(new FileInputStream(filename));
+ displayedFiles++;
}
catch (IOException ex)
{
@@ -139,6 +141,14 @@
}
}
+ /* Exit if there is no file to display (none specified or only
+ * files with problems). */
+ if (displayedFiles == 0)
+ {
+ System.out.println("No POI filesystem(s) to display.");
+ System.exit(0);
+ }
+
/* Make the tree UI element visible. */
treeUI.setRootVisible(true);
treeUI.setShowsRootHandles(true);
@@ -149,7 +159,7 @@
new PropertySetDescriptorRenderer());
treeUI.setCellRenderer(etcr);
setSize(600, 450);
- setTitle("POI Browser 0.10");
+ setTitle("POI Browser 0.06");
setVisible(true);
}
1.2 +2 -2
jakarta-poi/src/contrib/src/org/apache/poi/contrib/poibrowser/TreeReaderListener.java
Index: TreeReaderListener.java
===================================================================
RCS file:
/home/cvs/jakarta-poi/src/contrib/src/org/apache/poi/contrib/poibrowser/TreeReaderListener.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- TreeReaderListener.java 14 Feb 2002 04:00:58 -0000 1.1
+++ TreeReaderListener.java 22 Feb 2002 04:27:18 -0000 1.2
@@ -90,7 +90,7 @@
* contains only some meta-information about a document.</p>
*
* @author Rainer Klute ([EMAIL PROTECTED])
- * @version $Id: TreeReaderListener.java,v 1.1 2002/02/14 04:00:58 mjohnson Exp $
+ * @version $Id: TreeReaderListener.java,v 1.2 2002/02/22 04:27:18 acoliver Exp $
* @since 2002-01-24
*/
public class TreeReaderListener implements POIFSReaderListener
@@ -134,7 +134,7 @@
{
this.filename = filename;
this.rootNode = rootNode;
- pathToNode = new HashMap(15);
+ pathToNode = new HashMap(15); // Should be a reasonable guess.
}
1.5 +1 -0 jakarta-poi/src/documentation/xdocs/book.xml
Index: book.xml
===================================================================
RCS file: /home/cvs/jakarta-poi/src/documentation/xdocs/book.xml,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- book.xml 3 Feb 2002 13:45:59 -0000 1.4
+++ book.xml 22 Feb 2002 04:27:18 -0000 1.5
@@ -27,6 +27,7 @@
<menu-item label="POIFS" href="poifs/index.html"/>
<menu-item label="HSSF" href="hssf/index.html"/>
<menu-item label="HDF" href="hdf/index.html"/>
+ <menu-item label="HPSF" href="hpsf/index.html"/>
<menu-item label="POI-Utils" href="utils/index.html"/>
</menu>
1.3 +25 -16 jakarta-poi/src/documentation/xdocs/index.xml
Index: index.xml
===================================================================
RCS file: /home/cvs/jakarta-poi/src/documentation/xdocs/index.xml,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- index.xml 1 Feb 2002 17:25:00 -0000 1.2
+++ index.xml 22 Feb 2002 04:27:18 -0000 1.3
@@ -27,7 +27,7 @@
XLS format; and <link
href="http://jakarta.apache.org/lucene">Lucene</link> for which we'll soon have file
format interpretors. When practical, we donate components directly to
those projects for POI-enabling them.
</p>
- <s2 title="Why/when would I use POI">
+ <s2 title="Why/when would I use POI?">
<p>
We'll tackle this on a component level. POI refers to the whole
project.
</p>
@@ -70,32 +70,41 @@
<s1 title="Components To Date">
<s2 title="Overview">
- A common misconception is that POI writes Excel files. POI is the
name of the project. POI contains several
+ <p>A common misconception is that POI writes Excel files. POI is the
name of the project. POI contains several
components, one of which, HSSF, writes Excel files. The following are
components of the entire POI project
- and a brief summary of their purpose.
+ and a brief summary of their purpose.</p>
</s2>
- <s2 title="POIFS">
- POIFS is the oldest and most stable part of the project. It is our
port of the OLE 2 Compound Document Format to
+ <s2 title="POIFS (POI Filesystem)">
+ <p>POIFS is the oldest and most stable part of the project. It is our
port of the OLE 2 Compound Document Format to
pure Java. It supports both read and write functionality. All of our
components ultimately rely on it by
- definition. Please see <link href="./poifs/index.html">the POIFS
project page</link> for more information.
+ definition. Please see <link href="./poifs/index.html">the POIFS
project page</link> for more information.</p>
</s2>
- <s2 title="HSSF">
- HSSF is our port of the Microsoft Excel 97(-2002) file format (BIFF8)
to pure Java. It supports read and write
- capability. Please see <link href="./hssf/index.html">the HSSF
project page</link> for more information.
+ <s2 title="HSSF (Horrible Spreadsheet Format)">
+ <p>HSSF is our port of the Microsoft Excel 97(-2002) file format
(BIFF8) to pure Java. It supports read and write
+ capability. Please see <link href="./hssf/index.html">the HSSF
project page</link> for more information.</p>
</s2>
- <s2 title="HDF">
- HDF is our port of the Microsoft Word 97 file format to pure Java. It
supports read and write capability.
+ <s2 title="HDF (Horrible Document Format)">
+ <p>HDF is our port of the Microsoft Word 97 file format to pure Java.
It supports read and write capability.
Please see <link href="./hdf/index.html">the HDF project page for more
information</link>. This component is
- in the early stages of design. Jump in!
+ in the early stages of design. Jump in!</p>
+ </s2>
+ <s2 title="HPSF (Horrible Property Set Format)">
+ <p>HPSF is our port of the OLE 2 property set format to pure
+ Java. Property sets are mostly use to store a document's properties
+ (title, author, date of last modification etc.), but they can be used
+ for application-specific purposes as well. Currently HPSF supports
+ read functionality only. Please see <link
+ href="./hpsf/index.html">the HPSF project page</link> for more
+ information.</p>
</s2>
</s1>
<s1 title="What happened to the HSSF Serializer?">
- The HSSF Serializer, which was part of our 1.0 release and last builds on
+ <p>The HSSF Serializer, which was part of our 1.0 release and last builds on
<link href="http://www.sourceforge.net/projects/poi">Sourceforge</link>,
has been donated to the Cocoon project. We're
- currently in the process of porting it over.
- </s1>
+ currently in the process of porting it over.</p>
+ </s1>
<s1 title="Contributing ">
<p>
@@ -116,7 +125,7 @@
<footer>
<legal>
Copyright (c) @year@ The Apache Software Foundation All rights reserved.
- $Revision: 1.2 $ $Date: 2002/02/01 17:25:00 $
+ $Revision: 1.3 $ $Date: 2002/02/22 04:27:18 $
</legal>
</footer>
</document>
1.3 +8 -1 jakarta-poi/src/documentation/xdocs/overview.xml
Index: overview.xml
===================================================================
RCS file: /home/cvs/jakarta-poi/src/documentation/xdocs/overview.xml,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- overview.xml 1 Feb 2002 02:01:23 -0000 1.2
+++ overview.xml 22 Feb 2002 04:27:18 -0000 1.3
@@ -43,6 +43,13 @@
</p>
</s2>
+ <s2 title="HPSF">
+ <p>
+ <link href="hpsf/index.html">HPSF</link> is the set of APIs
+ for reading property sets using (only) Java.
+ </p>
+ </s2>
+
<s2 title="POI-Utils">
<p>
<link href="utils/index.html">POI-Utils</link> are general purpose
artifacts
@@ -57,7 +64,7 @@
<footer>
<legal>
Copyright (c) @year@ The Poi Project All rights reserved.
- $Revision: 1.2 $ $Date: 2002/02/01 02:01:23 $
+ $Revision: 1.3 $ $Date: 2002/02/22 04:27:18 $
</legal>
</footer>
</document>
1.4 +1 -0 jakarta-poi/src/documentation/xdocs/who.xml
Index: who.xml
===================================================================
RCS file: /home/cvs/jakarta-poi/src/documentation/xdocs/who.xml,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- who.xml 11 Feb 2002 04:23:09 -0000 1.3
+++ who.xml 22 Feb 2002 04:27:18 -0000 1.4
@@ -48,6 +48,7 @@
<ul>
<li>Glen Stampoultzis (glens at apache.org)</li>
<li>Nicola Ken Barozzi (barozzi at nicolaken dot com)</li>
+ <li>Rainer Klute (klute at rainer-klute dot de)</li>
</ul>
</s2>
</s1>