diff options
author | Nick Burch <nick@apache.org> | 2010-06-11 15:16:49 +0000 |
---|---|---|
committer | Nick Burch <nick@apache.org> | 2010-06-11 15:16:49 +0000 |
commit | c1ec96c55f39c19b0168f0f50ca71bf53e6e936d (patch) | |
tree | 871b3cede45dbcf78f66b9804ca27e503021fb21 | |
parent | 8c602455fbf9c72e529b03ad8d9a483edd4f2353 (diff) | |
download | poi-c1ec96c55f39c19b0168f0f50ca71bf53e6e936d.tar.gz poi-c1ec96c55f39c19b0168f0f50ca71bf53e6e936d.zip |
Keep compatibility for now, and alert people to move to the new class
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@953721 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r-- | src/java/org/apache/poi/hssf/record/UnicodeString.java | 35 | ||||
-rw-r--r-- | src/java/org/apache/poi/hssf/record/common/UnicodeString.java | 2 |
2 files changed, 36 insertions, 1 deletions
diff --git a/src/java/org/apache/poi/hssf/record/UnicodeString.java b/src/java/org/apache/poi/hssf/record/UnicodeString.java new file mode 100644 index 0000000000..a8c23dfd9b --- /dev/null +++ b/src/java/org/apache/poi/hssf/record/UnicodeString.java @@ -0,0 +1,35 @@ +/* ==================================================================== + Licensed to the Apache Software Foundation (ASF) under one or more + contributor license agreements. See the NOTICE file distributed with + this work for additional information regarding copyright ownership. + The ASF licenses this file to You under the Apache License, Version 2.0 + (the "License"); you may not use this file except in compliance with + the License. You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +==================================================================== */ + +package org.apache.poi.hssf.record; +/** + * @deprecated Use {@link org.apache.poi.hssf.record.common.UnicodeString} instead + */ +public final class UnicodeString extends org.apache.poi.hssf.record.common.UnicodeString { + /** + * @deprecated Use {@link org.apache.poi.hssf.record.common.UnicodeString} instead + */ + public UnicodeString(RecordInputStream in) { + super(in); + } + /** + * @deprecated Use {@link org.apache.poi.hssf.record.common.UnicodeString} instead + */ + public UnicodeString(String str) { + super(str); + } +} diff --git a/src/java/org/apache/poi/hssf/record/common/UnicodeString.java b/src/java/org/apache/poi/hssf/record/common/UnicodeString.java index b10d282046..235d547091 100644 --- a/src/java/org/apache/poi/hssf/record/common/UnicodeString.java +++ b/src/java/org/apache/poi/hssf/record/common/UnicodeString.java @@ -38,7 +38,7 @@ import org.apache.poi.util.StringUtil; * REFERENCE: PG 264 Microsoft Excel 97 Developer's Kit (ISBN: 1-57231-498-2)<p/> * REFERENCE: PG 951 Excel Binary File Format (.xls) Structure Specification v20091214 */ -public final class UnicodeString implements Comparable<UnicodeString> { +public class UnicodeString implements Comparable<UnicodeString> { // TODO - make this final when the compatibility version is removed private short field_1_charCount; private byte field_2_optionflags; private String field_3_string; |