From 20f4eeafcbc7f3bebccee6b3066183b6789464a1 Mon Sep 17 00:00:00 2001 From: Rainer Klute Date: Mon, 28 Jul 2003 17:01:03 +0000 Subject: [PATCH] *** empty log message *** git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/trunk@353267 13f79535-47bb-0310-9956-ffa450edef68 --- .../org/apache/poi/contrib/poibrowser/Codec.java | 6 ++++-- .../poi/contrib/poibrowser/TreeReaderListener.java | 9 --------- src/testcases/org/apache/poi/hpsf/basic/Util.java | 13 +++++++++++++ 3 files changed, 17 insertions(+), 11 deletions(-) diff --git a/src/contrib/src/org/apache/poi/contrib/poibrowser/Codec.java b/src/contrib/src/org/apache/poi/contrib/poibrowser/Codec.java index 325b0fe077..7f5c2508e0 100644 --- a/src/contrib/src/org/apache/poi/contrib/poibrowser/Codec.java +++ b/src/contrib/src/org/apache/poi/contrib/poibrowser/Codec.java @@ -58,8 +58,10 @@ package org.apache.poi.contrib.poibrowser; -import java.io.*; -import java.util.*; +import java.io.BufferedReader; +import java.io.IOException; +import java.io.InputStreamReader; + import org.apache.poi.hpsf.ClassID; diff --git a/src/contrib/src/org/apache/poi/contrib/poibrowser/TreeReaderListener.java b/src/contrib/src/org/apache/poi/contrib/poibrowser/TreeReaderListener.java index bcb237ea9b..0467872fae 100644 --- a/src/contrib/src/org/apache/poi/contrib/poibrowser/TreeReaderListener.java +++ b/src/contrib/src/org/apache/poi/contrib/poibrowser/TreeReaderListener.java @@ -265,13 +265,4 @@ public class TreeReaderListener implements POIFSReaderListener } } - - private String s(final Object o) - { - if (o == null) - return "null"; - else - return o.getClass().getName() + '@' + o.hashCode(); - } - } diff --git a/src/testcases/org/apache/poi/hpsf/basic/Util.java b/src/testcases/org/apache/poi/hpsf/basic/Util.java index 7afd37194f..75e7aa72e5 100644 --- a/src/testcases/org/apache/poi/hpsf/basic/Util.java +++ b/src/testcases/org/apache/poi/hpsf/basic/Util.java @@ -90,7 +90,10 @@ public class Util * output stream until end of file is encountered.

* * @param in the input stream to read from + * * @param out the output stream to write to + * + * @exception IOException if an I/O exception occurs */ public static void copy(final InputStream in, final OutputStream out) throws IOException @@ -129,6 +132,11 @@ public class Util * * @return The POI files. The elements are ordered in the same way * as the files in the POI filesystem. + * + * @exception FileNotFoundException if the file containing the POI + * filesystem does not exist + * + * @exception IOException if an I/O exception occurs */ public static POIFile[] readPOIFiles(final File poiFs) throws FileNotFoundException, IOException @@ -151,6 +159,11 @@ public class Util * * @return The POI files. The elements are ordered in the same way * as the files in the POI filesystem. + * + * @exception FileNotFoundException if the file containing the POI + * filesystem does not exist + * + * @exception IOException if an I/O exception occurs */ public static POIFile[] readPOIFiles(final File poiFs, final String[] poiFiles) -- 2.39.5