]> source.dussan.org Git - poi.git/commitdiff
start of new Word file support refactorization
authorAndrew C. Oliver <acoliver@apache.org>
Sun, 24 Feb 2002 20:29:45 +0000 (20:29 +0000)
committerAndrew C. Oliver <acoliver@apache.org>
Sun, 24 Feb 2002 20:29:45 +0000 (20:29 +0000)
git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/trunk@352119 13f79535-47bb-0310-9956-ffa450edef68

src/scratchpad/src/org/apache/poi/hdf/model/HDFObjectFactory.java [new file with mode: 0644]
src/scratchpad/src/org/apache/poi/hdf/model/hdftypes/FileInformationBlock.java [new file with mode: 0644]
src/scratchpad/src/org/apache/poi/hdf/model/hdftypes/HDFType.java [new file with mode: 0644]

diff --git a/src/scratchpad/src/org/apache/poi/hdf/model/HDFObjectFactory.java b/src/scratchpad/src/org/apache/poi/hdf/model/HDFObjectFactory.java
new file mode 100644 (file)
index 0000000..c5001fd
--- /dev/null
@@ -0,0 +1,20 @@
+/*
+ * HDFObjectFactory.java
+ *
+ * Created on February 24, 2002, 2:17 PM
+ */
+
+package org.apache.poi.hdf.model;
+
+/**
+ * The Object Factory takes in a stream and creates the low level objects 
+ * that represent the data.
+ * @author  andy
+ */
+public class HDFObjectFactory {
+
+    /** Creates a new instance of HDFObjectFactory */
+    public HDFObjectFactory() {
+    }
+
+}
diff --git a/src/scratchpad/src/org/apache/poi/hdf/model/hdftypes/FileInformationBlock.java b/src/scratchpad/src/org/apache/poi/hdf/model/hdftypes/FileInformationBlock.java
new file mode 100644 (file)
index 0000000..298aaeb
--- /dev/null
@@ -0,0 +1,46 @@
+/*
+ * FileInformationBlock.java
+ *
+ * Created on February 24, 2002, 2:37 PM
+ */
+
+package org.apache.poi.hdf.model.hdftypes;
+
+import org.apache.poi.util.BitField;
+
+/**
+ *
+ * @author  andy
+ */
+public class FileInformationBlock implements HDFType {
+
+    private  short field_1_id;
+    private  short field_2_version; // 101 = Word 6.0 +
+    private  short field_3_product_version;
+    private  short field_4_language_stamp;
+    private  short field_5_unknown;
+    private  short field_6_options;    
+    
+        private static final BitField template          = new BitField(0x0001);
+        private static final BitField glossary          = new BitField(0x0002);
+        private static final BitField quicksave         = new BitField(0x0004);
+        private static final BitField haspictr          = new BitField(0x0008);        
+        private static final BitField nquicksaves       = new BitField(0x000F);
+        private static final BitField encrypted         = new BitField(0x0100);        
+        private static final BitField tabletype         = new BitField(0x0200);        
+        private static final BitField readonly          = new BitField(0x0400);
+        private static final BitField writeReservation  = new BitField(0x0800);
+        private static final BitField extendedCharacter = new BitField(0x1000);
+        private static final BitField loadOverride      = new BitField(0x2000);
+        private static final BitField farEast           = new BitField(0x4000);
+        private static final BitField crypto            = new BitField(0x8000);
+   
+    private short field_7_minversion;
+    //private short field_8_
+        
+        
+    /** Creates a new instance of FileInformationBlock */
+    public FileInformationBlock() {
+    }
+
+}
diff --git a/src/scratchpad/src/org/apache/poi/hdf/model/hdftypes/HDFType.java b/src/scratchpad/src/org/apache/poi/hdf/model/hdftypes/HDFType.java
new file mode 100644 (file)
index 0000000..f0e318f
--- /dev/null
@@ -0,0 +1,16 @@
+/*
+ * HDFType.java
+ *
+ * Created on February 24, 2002, 2:37 PM
+ */
+
+package org.apache.poi.hdf.model.hdftypes;
+
+/**
+ *
+ * @author  andy
+ */
+public interface HDFType {
+
+}
+