You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@poi.apache.org by ni...@apache.org on 2007/09/17 18:34:51 UTC

svn commit: r576507 - /poi/trunk/src/scratchpad/src/org/apache/poi/hdgf/HDGFDiagram.java

Author: nick
Date: Mon Sep 17 09:34:48 2007
New Revision: 576507

URL: http://svn.apache.org/viewvc?rev=576507&view=rev
Log:
Convert to use POIDocument

Modified:
    poi/trunk/src/scratchpad/src/org/apache/poi/hdgf/HDGFDiagram.java

Modified: poi/trunk/src/scratchpad/src/org/apache/poi/hdgf/HDGFDiagram.java
URL: http://svn.apache.org/viewvc/poi/trunk/src/scratchpad/src/org/apache/poi/hdgf/HDGFDiagram.java?rev=576507&r1=576506&r2=576507&view=diff
==============================================================================
--- poi/trunk/src/scratchpad/src/org/apache/poi/hdgf/HDGFDiagram.java (original)
+++ poi/trunk/src/scratchpad/src/org/apache/poi/hdgf/HDGFDiagram.java Mon Sep 17 09:34:48 2007
@@ -19,6 +19,7 @@
 import java.io.FileInputStream;
 import java.io.IOException;
 
+import org.apache.poi.POIDocument;
 import org.apache.poi.hdgf.chunks.ChunkFactory;
 import org.apache.poi.hdgf.pointers.Pointer;
 import org.apache.poi.hdgf.pointers.PointerFactory;
@@ -37,10 +38,9 @@
  *  http://www.gnome.ru/projects/docs/slide1.png
  *  http://www.gnome.ru/projects/docs/slide2.png
  */
-public class HDGFDiagram {
+public class HDGFDiagram extends POIDocument {
 	private static final String VISIO_HEADER = "Visio (TM) Drawing\r\n";
 	
-	private POIFSFileSystem filesystem;
 	private byte[] _docstream;
 	
 	private short version;
@@ -61,6 +61,9 @@
 		// Grab the document stream
 		_docstream = new byte[docProps.getSize()];
 		filesystem.createDocumentInputStream("VisioDocument").read(_docstream);
+		
+		// Read in the common POI streams
+		readProperties();
 		
 		// Check it's really visio
 		String typeString = new String(_docstream, 0, 20);



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