klute 2004/08/31 13:46:41
Modified: src/java/org/apache/poi/hpsf VariantSupport.java
Log:
- Adjusting the variant type moved to Property.
Revision Changes Path
1.11 +4 -10 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.10
retrieving revision 1.11
diff -u -r1.10 -r1.11
--- VariantSupport.java 22 Jun 2004 16:11:39 -0000 1.10
+++ VariantSupport.java 31 Aug 2004 20:46:41 -0000 1.11
@@ -320,14 +320,8 @@
final Object value, final int codepage)
throws IOException, WritingNotSupportedException
{
- long lType = type;
-
- /* Ensure that wide strings are written if the codepage is Unicode. */
- if (codepage == Constants.CP_UNICODE && type == Variant.VT_LPSTR)
- lType = Variant.VT_LPWSTR;
-
int length = 0;
- switch ((int) lType)
+ switch ((int) type)
{
case Variant.VT_BOOL:
{
@@ -419,10 +413,10 @@
out.write(b);
length = b.length;
writeUnsupportedTypeMessage
- (new WritingNotSupportedException(lType, value));
+ (new WritingNotSupportedException(type, value));
}
else
- throw new WritingNotSupportedException(lType, value);
+ throw new WritingNotSupportedException(type, value);
break;
}
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]