diff options
author | Rainer Klute <klute@apache.org> | 2003-12-02 17:46:01 +0000 |
---|---|---|
committer | Rainer Klute <klute@apache.org> | 2003-12-02 17:46:01 +0000 |
commit | 319c1c1fe8c3ee2a9fc1f08ce8b8a515450215f6 (patch) | |
tree | 3f954e28fe61087ef46c0d0705367fc0a3d87784 /src/examples | |
parent | 4066067f576ca99863853c1d47c3615b6ecf73b8 (diff) | |
download | poi-319c1c1fe8c3ee2a9fc1f08ce8b8a515450215f6.tar.gz poi-319c1c1fe8c3ee2a9fc1f08ce8b8a515450215f6.zip |
HPSF: codepage support added
git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/trunk@353460 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/examples')
-rw-r--r-- | src/examples/src/org/apache/poi/hpsf/examples/CopyCompare.java | 5 | ||||
-rw-r--r-- | src/examples/src/org/apache/poi/hpsf/examples/WriteAuthorAndTitle.java | 5 |
2 files changed, 8 insertions, 2 deletions
diff --git a/src/examples/src/org/apache/poi/hpsf/examples/CopyCompare.java b/src/examples/src/org/apache/poi/hpsf/examples/CopyCompare.java index 94b3a426ca..5b14e7ad4b 100644 --- a/src/examples/src/org/apache/poi/hpsf/examples/CopyCompare.java +++ b/src/examples/src/org/apache/poi/hpsf/examples/CopyCompare.java @@ -558,7 +558,10 @@ public class CopyCompare * exists. However, since we have full control about directory * creation we can ensure that this will never happen. */ ex.printStackTrace(System.err); - throw new RuntimeException(ex); + throw new RuntimeException(ex.toString()); + /* FIXME (2): Replace the previous line by the following once we + * no longer need JDK 1.3 compatibility. */ + // throw new RuntimeException(ex); } } } diff --git a/src/examples/src/org/apache/poi/hpsf/examples/WriteAuthorAndTitle.java b/src/examples/src/org/apache/poi/hpsf/examples/WriteAuthorAndTitle.java index dd550dae01..7b8d58f412 100644 --- a/src/examples/src/org/apache/poi/hpsf/examples/WriteAuthorAndTitle.java +++ b/src/examples/src/org/apache/poi/hpsf/examples/WriteAuthorAndTitle.java @@ -444,7 +444,10 @@ public class WriteAuthorAndTitle * exists. However, since we have full control about directory * creation we can ensure that this will never happen. */ ex.printStackTrace(System.err); - throw new RuntimeException(ex); + throw new RuntimeException(ex.toString()); + /* FIXME (2): Replace the previous line by the following once we + * no longer need JDK 1.3 compatibility. */ + // throw new RuntimeException(ex); } } } |