poi-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From n...@apache.org
Subject svn commit: r678374 - in /poi/branches/ooxml/src: documentation/content/xdocs/ documentation/content/xdocs/spreadsheet/ java/org/apache/poi/ddf/ java/org/apache/poi/hssf/record/ java/org/apache/poi/util/
Date Mon, 21 Jul 2008 09:34:12 GMT
Author: nick
Date: Mon Jul 21 02:34:08 2008
New Revision: 678374

URL: http://svn.apache.org/viewvc?rev=678374&view=rev
Log:
New class org.apache.poi.hssf.record.RecordFormatException, which DDF uses instead of the
HSSF version, and the HSSF version inherits from

Added:
    poi/branches/ooxml/src/java/org/apache/poi/util/RecordFormatException.java   (with props)
Modified:
    poi/branches/ooxml/src/documentation/content/xdocs/changes.xml
    poi/branches/ooxml/src/documentation/content/xdocs/spreadsheet/converting.xml
    poi/branches/ooxml/src/documentation/content/xdocs/status.xml
    poi/branches/ooxml/src/java/org/apache/poi/ddf/DefaultEscherRecordFactory.java
    poi/branches/ooxml/src/java/org/apache/poi/ddf/EscherBlipWMFRecord.java
    poi/branches/ooxml/src/java/org/apache/poi/ddf/EscherDggRecord.java
    poi/branches/ooxml/src/java/org/apache/poi/ddf/EscherSpgrRecord.java
    poi/branches/ooxml/src/java/org/apache/poi/ddf/EscherSplitMenuColorsRecord.java
    poi/branches/ooxml/src/java/org/apache/poi/ddf/EscherTextboxRecord.java
    poi/branches/ooxml/src/java/org/apache/poi/hssf/record/RecordFormatException.java

Modified: poi/branches/ooxml/src/documentation/content/xdocs/changes.xml
URL: http://svn.apache.org/viewvc/poi/branches/ooxml/src/documentation/content/xdocs/changes.xml?rev=678374&r1=678373&r2=678374&view=diff
==============================================================================
--- poi/branches/ooxml/src/documentation/content/xdocs/changes.xml (original)
+++ poi/branches/ooxml/src/documentation/content/xdocs/changes.xml Mon Jul 21 02:34:08 2008
@@ -37,6 +37,7 @@
 
 		<!-- Don't forget to update status.xml too! -->
         <release version="3.5.1-beta2" date="2008-??-??">
+           <action dev="POI-DEVELOPERS" type="add">New class org.apache.poi.hssf.record.RecordFormatException,
which DDF uses instead of the HSSF version, and the HSSF version inherits from</action>
            <action dev="POI-DEVELOPERS" type="add">45431 - Partial support for .xlm
files. Not quite enough for excel to load them though</action>
            <action dev="POI-DEVELOPERS" type="fix">45430 - Correct named range sheet
reporting when no local sheet id is given in the xml</action>
 		</release>

Modified: poi/branches/ooxml/src/documentation/content/xdocs/spreadsheet/converting.xml
URL: http://svn.apache.org/viewvc/poi/branches/ooxml/src/documentation/content/xdocs/spreadsheet/converting.xml?rev=678374&r1=678373&r2=678374&view=diff
==============================================================================
--- poi/branches/ooxml/src/documentation/content/xdocs/spreadsheet/converting.xml (original)
+++ poi/branches/ooxml/src/documentation/content/xdocs/spreadsheet/converting.xml Mon Jul
21 02:34:08 2008
@@ -48,6 +48,17 @@
         <em>org.apache.poi.ss.usermodel.Row.MissingCellPolicy</em>
        </p>
     </section>
+    <section><title>DDF and org.apache.poi.hssf.record.RecordFormatException</title>
+       <p>Previously, record level errors within DDF would throw an
+        exception from the hssf class heirachy. Now, record level errors
+        within DDF will throw a more general RecordFormatException,
+        <em>org.apache.poi.util.RecordFormatException</em></p>
+       <p>In addition, org.apache.poi.hssf.record.RecordFormatException
+        has been changed to inherit from the new	
+        <em>org.apache.poi.util.RecordFormatException</em>, so you may
+        wish to change catches of the hssf version to the new util version.
+       </p>
+    </section>
   </section>
   <section><title>Converting existing HSSF Usermodel code to SS Usermodel (for
XSSF and HSSF)</title>
 

Modified: poi/branches/ooxml/src/documentation/content/xdocs/status.xml
URL: http://svn.apache.org/viewvc/poi/branches/ooxml/src/documentation/content/xdocs/status.xml?rev=678374&r1=678373&r2=678374&view=diff
==============================================================================
--- poi/branches/ooxml/src/documentation/content/xdocs/status.xml (original)
+++ poi/branches/ooxml/src/documentation/content/xdocs/status.xml Mon Jul 21 02:34:08 2008
@@ -34,6 +34,7 @@
 	<!-- Don't forget to update changes.xml too! -->
     <changes>
         <release version="3.5.1-beta2" date="2008-??-??">
+           <action dev="POI-DEVELOPERS" type="add">New class org.apache.poi.hssf.record.RecordFormatException,
which DDF uses instead of the HSSF version, and the HSSF version inherits from</action>
            <action dev="POI-DEVELOPERS" type="add">45431 - Partial support for .xlm
files. Not quite enough for excel to load them though</action>
            <action dev="POI-DEVELOPERS" type="fix">45430 - Correct named range sheet
reporting when no local sheet id is given in the xml</action>
 		</release>

Modified: poi/branches/ooxml/src/java/org/apache/poi/ddf/DefaultEscherRecordFactory.java
URL: http://svn.apache.org/viewvc/poi/branches/ooxml/src/java/org/apache/poi/ddf/DefaultEscherRecordFactory.java?rev=678374&r1=678373&r2=678374&view=diff
==============================================================================
--- poi/branches/ooxml/src/java/org/apache/poi/ddf/DefaultEscherRecordFactory.java (original)
+++ poi/branches/ooxml/src/java/org/apache/poi/ddf/DefaultEscherRecordFactory.java Mon Jul
21 02:34:08 2008
@@ -18,7 +18,7 @@
         
 package org.apache.poi.ddf;
 
-import org.apache.poi.hssf.record.RecordFormatException;
+import org.apache.poi.util.RecordFormatException;
 
 import java.lang.reflect.Constructor;
 import java.util.HashMap;

Modified: poi/branches/ooxml/src/java/org/apache/poi/ddf/EscherBlipWMFRecord.java
URL: http://svn.apache.org/viewvc/poi/branches/ooxml/src/java/org/apache/poi/ddf/EscherBlipWMFRecord.java?rev=678374&r1=678373&r2=678374&view=diff
==============================================================================
--- poi/branches/ooxml/src/java/org/apache/poi/ddf/EscherBlipWMFRecord.java (original)
+++ poi/branches/ooxml/src/java/org/apache/poi/ddf/EscherBlipWMFRecord.java Mon Jul 21 02:34:08
2008
@@ -18,9 +18,9 @@
         
 package org.apache.poi.ddf;
 
-import org.apache.poi.hssf.record.RecordFormatException;
 import org.apache.poi.util.HexDump;
 import org.apache.poi.util.LittleEndian;
+import org.apache.poi.util.RecordFormatException;
 
 import java.io.ByteArrayInputStream;
 import java.io.ByteArrayOutputStream;

Modified: poi/branches/ooxml/src/java/org/apache/poi/ddf/EscherDggRecord.java
URL: http://svn.apache.org/viewvc/poi/branches/ooxml/src/java/org/apache/poi/ddf/EscherDggRecord.java?rev=678374&r1=678373&r2=678374&view=diff
==============================================================================
--- poi/branches/ooxml/src/java/org/apache/poi/ddf/EscherDggRecord.java (original)
+++ poi/branches/ooxml/src/java/org/apache/poi/ddf/EscherDggRecord.java Mon Jul 21 02:34:08
2008
@@ -18,9 +18,9 @@
         
 package org.apache.poi.ddf;
 
-import org.apache.poi.hssf.record.RecordFormatException;
 import org.apache.poi.util.HexDump;
 import org.apache.poi.util.LittleEndian;
+import org.apache.poi.util.RecordFormatException;
 
 import java.util.*;
 

Modified: poi/branches/ooxml/src/java/org/apache/poi/ddf/EscherSpgrRecord.java
URL: http://svn.apache.org/viewvc/poi/branches/ooxml/src/java/org/apache/poi/ddf/EscherSpgrRecord.java?rev=678374&r1=678373&r2=678374&view=diff
==============================================================================
--- poi/branches/ooxml/src/java/org/apache/poi/ddf/EscherSpgrRecord.java (original)
+++ poi/branches/ooxml/src/java/org/apache/poi/ddf/EscherSpgrRecord.java Mon Jul 21 02:34:08
2008
@@ -20,7 +20,7 @@
 
 import org.apache.poi.util.HexDump;
 import org.apache.poi.util.LittleEndian;
-import org.apache.poi.hssf.record.RecordFormatException;
+import org.apache.poi.util.RecordFormatException;
 
 /**
  * The spgr record defines information about a shape group.  Groups in escher

Modified: poi/branches/ooxml/src/java/org/apache/poi/ddf/EscherSplitMenuColorsRecord.java
URL: http://svn.apache.org/viewvc/poi/branches/ooxml/src/java/org/apache/poi/ddf/EscherSplitMenuColorsRecord.java?rev=678374&r1=678373&r2=678374&view=diff
==============================================================================
--- poi/branches/ooxml/src/java/org/apache/poi/ddf/EscherSplitMenuColorsRecord.java (original)
+++ poi/branches/ooxml/src/java/org/apache/poi/ddf/EscherSplitMenuColorsRecord.java Mon Jul
21 02:34:08 2008
@@ -20,7 +20,7 @@
 
 import org.apache.poi.util.HexDump;
 import org.apache.poi.util.LittleEndian;
-import org.apache.poi.hssf.record.RecordFormatException;
+import org.apache.poi.util.RecordFormatException;
 
 /**
  * A list of the most recently used colours for the drawings contained in

Modified: poi/branches/ooxml/src/java/org/apache/poi/ddf/EscherTextboxRecord.java
URL: http://svn.apache.org/viewvc/poi/branches/ooxml/src/java/org/apache/poi/ddf/EscherTextboxRecord.java?rev=678374&r1=678373&r2=678374&view=diff
==============================================================================
--- poi/branches/ooxml/src/java/org/apache/poi/ddf/EscherTextboxRecord.java (original)
+++ poi/branches/ooxml/src/java/org/apache/poi/ddf/EscherTextboxRecord.java Mon Jul 21 02:34:08
2008
@@ -18,9 +18,9 @@
         
 package org.apache.poi.ddf;
 
-import org.apache.poi.hssf.record.RecordFormatException;
 import org.apache.poi.util.HexDump;
 import org.apache.poi.util.LittleEndian;
+import org.apache.poi.util.RecordFormatException;
 
 /**
  * Holds data from the parent application. Most commonly used to store

Modified: poi/branches/ooxml/src/java/org/apache/poi/hssf/record/RecordFormatException.java
URL: http://svn.apache.org/viewvc/poi/branches/ooxml/src/java/org/apache/poi/hssf/record/RecordFormatException.java?rev=678374&r1=678373&r2=678374&view=diff
==============================================================================
--- poi/branches/ooxml/src/java/org/apache/poi/hssf/record/RecordFormatException.java (original)
+++ poi/branches/ooxml/src/java/org/apache/poi/hssf/record/RecordFormatException.java Mon
Jul 21 02:34:08 2008
@@ -25,7 +25,7 @@
  */
 
 public class RecordFormatException
-    extends RuntimeException
+    extends org.apache.poi.util.RecordFormatException
 {
     public RecordFormatException(String exception)
     {

Added: poi/branches/ooxml/src/java/org/apache/poi/util/RecordFormatException.java
URL: http://svn.apache.org/viewvc/poi/branches/ooxml/src/java/org/apache/poi/util/RecordFormatException.java?rev=678374&view=auto
==============================================================================
--- poi/branches/ooxml/src/java/org/apache/poi/util/RecordFormatException.java (added)
+++ poi/branches/ooxml/src/java/org/apache/poi/util/RecordFormatException.java Mon Jul 21
02:34:08 2008
@@ -0,0 +1,42 @@
+
+/* ====================================================================
+   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.util;
+
+/**
+ * A common exception thrown by our binary format parsers
+ *  (especially HSSF and DDF), when they hit invalid
+ *  format or data when processing a record.
+ */
+public class RecordFormatException
+    extends RuntimeException
+{
+    public RecordFormatException(String exception)
+    {
+        super(exception);
+    }
+    
+    public RecordFormatException(String exception, Throwable thr) {
+      super(exception, thr);
+    }
+    
+    public RecordFormatException(Throwable thr) {
+      super(thr);
+    }
+}

Propchange: poi/branches/ooxml/src/java/org/apache/poi/util/RecordFormatException.java
------------------------------------------------------------------------------
    svn:eol-style = native



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@poi.apache.org
For additional commands, e-mail: commits-help@poi.apache.org


Mime
View raw message