]> source.dussan.org Git - poi.git/commitdiff
backed out the code it caused this problem http://nagoya.apache.org/bugzilla/show_bug...
authorAndrew C. Oliver <acoliver@apache.org>
Sun, 28 Jul 2002 22:54:43 +0000 (22:54 +0000)
committerAndrew C. Oliver <acoliver@apache.org>
Sun, 28 Jul 2002 22:54:43 +0000 (22:54 +0000)
git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/trunk@352814 13f79535-47bb-0310-9956-ffa450edef68

src/java/org/apache/poi/hssf/usermodel/HSSFWorkbook.java

index 9656ab7e84eb3ff41a3d51ef81dcd2881b13389a..46fad9ae1d765af98206bfdfac43a397b532af82 100644 (file)
@@ -70,7 +70,6 @@ import java.io.ByteArrayInputStream;
 import java.io.IOException;
 import java.io.InputStream;
 import java.io.OutputStream;
-import java.io.UnsupportedEncodingException;
 import java.util.ArrayList;
 import java.util.List;
 
@@ -83,7 +82,6 @@ import java.util.List;
  * @see org.apache.poi.hssf.usermodel.HSSFSheet
  * @author  Andrew C. Oliver (acoliver at apache dot org)
  * @author  Glen Stampoultzis (glens at apache.org)
- * @author  Sergei Kozello (sergeikozello at mail.ru)
  * @version 2.0-pre
  */
 
@@ -202,11 +200,7 @@ public class HSSFWorkbook
 
         // none currently
     }
-    
-    
-       public final static byte ENCODING_COMPRESSED_UNICODE    = 0;
-       public final static byte ENCODING_UTF_16                        = 1;
-       
+
     /**
      * set the sheet name.
      * @param sheet number (0 based)
@@ -214,30 +208,14 @@ public class HSSFWorkbook
      */
 
     public void setSheetName(int sheet, String name)
-    {
-        workbook.setSheetName( sheet, name, ENCODING_COMPRESSED_UNICODE );
-    }
-
-    public void setSheetName( int sheet, String name, short encoding )
     {
         if (sheet > (sheets.size() - 1))
         {
             throw new RuntimeException("Sheet out of bounds");
         }
-        
-        switch ( encoding ) {
-        case ENCODING_COMPRESSED_UNICODE:
-        case ENCODING_UTF_16:
-            break;
-            
-        default:
-               // TODO java.io.UnsupportedEncodingException
-                       throw new RuntimeException( "Unsupported encoding" );
-        }
-        
-        workbook.setSheetName( sheet, name, encoding );
+        workbook.setSheetName(sheet, name);
     }
-    
+
     /**
      * get the sheet name
      * @param sheet Number