From 275b6096aaf403b5606590820110f3b13f7f61c9 Mon Sep 17 00:00:00 2001 From: Rainer Klute Date: Sun, 13 Feb 2005 18:35:09 +0000 Subject: [PATCH] - Added support for the MacRoman codepage (10000). Thanks to Mikael Puittinen for the patch! git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/trunk@353630 13f79535-47bb-0310-9956-ffa450edef68 --- src/java/org/apache/poi/hpsf/Constants.java | 3 +++ src/java/org/apache/poi/hpsf/VariantSupport.java | 2 ++ 2 files changed, 5 insertions(+) diff --git a/src/java/org/apache/poi/hpsf/Constants.java b/src/java/org/apache/poi/hpsf/Constants.java index ac14224745..e5656ae3d8 100644 --- a/src/java/org/apache/poi/hpsf/Constants.java +++ b/src/java/org/apache/poi/hpsf/Constants.java @@ -10,6 +10,9 @@ package org.apache.poi.hpsf; */ public class Constants { + + /**

Codepage for Macintosh Roman (MacRoman)

*/ + public static final int CP_MACROMAN = 10000; /**

Codepage for SJIS

*/ public static final int CP_SJIS = 932; diff --git a/src/java/org/apache/poi/hpsf/VariantSupport.java b/src/java/org/apache/poi/hpsf/VariantSupport.java index 7b4719a4fb..081e7f4dd4 100644 --- a/src/java/org/apache/poi/hpsf/VariantSupport.java +++ b/src/java/org/apache/poi/hpsf/VariantSupport.java @@ -285,6 +285,8 @@ public class VariantSupport extends Variant ("Codepage number may not be " + codepage); switch (codepage) { + case Constants.CP_MACROMAN: + return "MacRoman"; case Constants.CP_SJIS: return "SJIS"; case Constants.CP_UTF16: