You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@poi.apache.org by kl...@apache.org on 2004/06/22 18:16:00 UTC

cvs commit: jakarta-poi/src/examples/src/org/apache/poi/hpsf/examples CopyCompare.java

klute       2004/06/22 09:16:00

  Modified:    src/examples/src/org/apache/poi/hpsf/examples
                        CopyCompare.java
  Log:
  
  
  Revision  Changes    Path
  1.4       +10 -5     jakarta-poi/src/examples/src/org/apache/poi/hpsf/examples/CopyCompare.java
  
  Index: CopyCompare.java
  ===================================================================
  RCS file: /home/cvs/jakarta-poi/src/examples/src/org/apache/poi/hpsf/examples/CopyCompare.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- CopyCompare.java	9 Apr 2004 13:05:14 -0000	1.3
  +++ CopyCompare.java	22 Jun 2004 16:16:00 -0000	1.4
  @@ -1,4 +1,3 @@
  -
   /* ====================================================================
      Copyright 2002-2004   Apache Software Foundation
   
  @@ -26,6 +25,7 @@
   import java.io.IOException;
   import java.io.InputStream;
   import java.io.OutputStream;
  +import java.io.UnsupportedEncodingException;
   import java.util.HashMap;
   import java.util.Iterator;
   import java.util.Map;
  @@ -98,9 +98,12 @@
        * create a property set from a POI document stream that is not a property
        * set stream.
        * @exception IOException if any I/O exception occurs.
  +     * @exception UnsupportedEncodingException if a character encoding is not
  +     * supported.
        */
       public static void main(final String[] args)
  -    throws MarkUnsupportedException, NoPropertySetStreamException, IOException
  +    throws NoPropertySetStreamException, MarkUnsupportedException,
  +           UnsupportedEncodingException, IOException
       {
           String originalFileName = null;
           String copyFileName = null;
  @@ -174,7 +177,8 @@
       private static boolean equal(final DirectoryEntry d1,
                                    final DirectoryEntry d2,
                                    final StringBuffer msg)
  -    throws MarkUnsupportedException, NoPropertySetStreamException, IOException
  +    throws NoPropertySetStreamException, MarkUnsupportedException,
  +           UnsupportedEncodingException, IOException
       {
           boolean equal = true;
           /* Iterate over d1 and compare each entry with its counterpart in d2. */
  @@ -251,7 +255,8 @@
        */
       private static boolean equal(final DocumentEntry d1, final DocumentEntry d2,
                                    final StringBuffer msg)
  -    throws MarkUnsupportedException, NoPropertySetStreamException, IOException
  +    throws NoPropertySetStreamException, MarkUnsupportedException,
  +           UnsupportedEncodingException, IOException
       {
           boolean equal = true;
           final DocumentInputStream dis1 = new DocumentInputStream(d1);
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: poi-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: poi-dev-help@jakarta.apache.org