poi-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kl...@apache.org
Subject cvs commit: jakarta-poi/src/java/org/apache/poi/hpsf Constants.java VariantSupport.java
Date Sun, 13 Feb 2005 18:35:10 GMT
klute       2005/02/13 10:35:10

  Modified:    src/java/org/apache/poi/hpsf Constants.java
                        VariantSupport.java
  Log:
  - Added support for the MacRoman codepage (10000). Thanks to Mikael Puittinen for the patch!
  
  Revision  Changes    Path
  1.2       +4 -1      jakarta-poi/src/java/org/apache/poi/hpsf/Constants.java
  
  Index: Constants.java
  ===================================================================
  RCS file: /home/cvs/jakarta-poi/src/java/org/apache/poi/hpsf/Constants.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- Constants.java	22 Jun 2004 16:11:38 -0000	1.1
  +++ Constants.java	13 Feb 2005 18:35:09 -0000	1.2
  @@ -10,6 +10,9 @@
    */
   public class Constants
   {
  +
  +    /** <p>Codepage for Macintosh Roman (MacRoman)</p> */
  +    public static final int CP_MACROMAN = 10000;
       
       /** <p>Codepage for SJIS</p> */
       public static final int CP_SJIS = 932;
  
  
  
  1.12      +3 -1      jakarta-poi/src/java/org/apache/poi/hpsf/VariantSupport.java
  
  Index: VariantSupport.java
  ===================================================================
  RCS file: /home/cvs/jakarta-poi/src/java/org/apache/poi/hpsf/VariantSupport.java,v
  retrieving revision 1.11
  retrieving revision 1.12
  diff -u -r1.11 -r1.12
  --- VariantSupport.java	31 Aug 2004 20:46:41 -0000	1.11
  +++ VariantSupport.java	13 Feb 2005 18:35:09 -0000	1.12
  @@ -285,6 +285,8 @@
                   ("Codepage number may not be " + codepage);
           switch (codepage)
           {
  +            case Constants.CP_MACROMAN:
  +                return "MacRoman";
               case Constants.CP_SJIS:
                   return "SJIS";
               case Constants.CP_UTF16:
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: poi-dev-unsubscribe@jakarta.apache.org
Mailing List:    http://jakarta.apache.org/site/mail2.html#poi
The Apache Jakarta POI Project: http://jakarta.apache.org/poi/


Mime
View raw message