diff options
author | Nick Burch <nick@apache.org> | 2007-06-27 20:19:18 +0000 |
---|---|---|
committer | Nick Burch <nick@apache.org> | 2007-06-27 20:19:18 +0000 |
commit | 3cbb307ffcb8324a97ef3349bf6bc21019e0ea7c (patch) | |
tree | 33f5d8225e904d66f5d13d9801a62e95fbd5fccb /src/documentation/content/xdocs/hdgf | |
parent | 211c9e157ae2ebf09fbd45c8a2f7cd60d14d2739 (diff) | |
download | poi-3cbb307ffcb8324a97ef3349bf6bc21019e0ea7c.tar.gz poi-3cbb307ffcb8324a97ef3349bf6bc21019e0ea7c.zip |
Several TLP tweaks and typo fixes in the documentation. Update the changelog for recent commits, and add some initial documentation on HDGF
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@551309 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/documentation/content/xdocs/hdgf')
-rw-r--r-- | src/documentation/content/xdocs/hdgf/book.xml | 34 | ||||
-rwxr-xr-x | src/documentation/content/xdocs/hdgf/index.xml | 98 |
2 files changed, 132 insertions, 0 deletions
diff --git a/src/documentation/content/xdocs/hdgf/book.xml b/src/documentation/content/xdocs/hdgf/book.xml new file mode 100644 index 0000000000..fb37a33a75 --- /dev/null +++ b/src/documentation/content/xdocs/hdgf/book.xml @@ -0,0 +1,34 @@ +<?xml version="1.0"?> +<!-- + ==================================================================== + 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. + ==================================================================== +--> +<!DOCTYPE book PUBLIC "-//APACHE//DTD Cocoon Documentation Book V1.0//EN" "../dtd/book-cocoon-v10.dtd"> + +<book software="POI Project" + title="HGDF" + copyright="@year@ POI Project"> + + <menu label="Apache POI"> + <menu-item label="Top" href="../index.html"/> + </menu> + + <menu label="HDGF"> + <menu-item label="Overview" href="index.html"/> + </menu> + +</book> diff --git a/src/documentation/content/xdocs/hdgf/index.xml b/src/documentation/content/xdocs/hdgf/index.xml new file mode 100755 index 0000000000..f14bb1e766 --- /dev/null +++ b/src/documentation/content/xdocs/hdgf/index.xml @@ -0,0 +1,98 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- + ==================================================================== + 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. + ==================================================================== +--> +<!DOCTYPE document PUBLIC "-//APACHE//DTD Documentation V1.1//EN" "../dtd/document-v11.dtd"> + +<document> + <header> + <title>POI-HDGF - Java API To Access Microsoft Visio Format Files</title> + <subtitle>Overview</subtitle> + <authors> + <person name="Nick Burch" email="nick at apache dot org"/> + </authors> + </header> + + <body> + <section> + <title>Overview</title> + + <p>HDGF is the POI Project's pure Java implementation of the Visio file format.</p> + <p>Currently, HDGF provides a low-level, read-only api for + accessing Visio documents. It also provides a + <link href="http://svn.apache.org/repos/asf/poi/trunk/src/scratchpad/src/org/apache/poi/hdgf/extractor/">way</link> + to extract the textual content from a file. + </p> + <p>At this time, there is no <em>usermodel</em> api or similar, + only low level access to the streams, chunks and chunk commands. + Users are advised to check the unit tests to see how everything + works. They are also well advised to read the documentation + supplied with + <link href="http://www.gnome.ru/projects/vsdump_en.html">vsdump</link> + to get a feel for how Visio files are structured.</p> + <p>To get a feel for the contents of a file, and to track down + where data of interest is stored, HDGF comes with + <link href="http://svn.apache.org/repos/asf/poi/trunk/src/scratchpad/src/org/apache/poi/hdgf/dev/">VSDDumper</link> + to print out the contents of the file. Users should also make + use of + <link href="http://www.gnome.ru/projects/vsdump_en.html">vsdump</link> + to probe the structure of files.</p> + <note> + This code currently lives the + <link href="http://svn.apache.org/viewcvs.cgi/poi/trunk/src/scratchpad/">scratchpad area</link> + of the POI SVN repository. + Ensure that you have the scratchpad jar or the scratchpad + build area in your + classpath before experimenting with this code. + </note> + + <section> + <title>Steps required for write support</title> + <p>Currently, HDGF is only able to read visio files, it is + not able to write them back out again. We believe the + following are the steps that would need to be taken to + implement it.</p> + <ol> + <li>Re-write the decompression support in LZW4HDGF to be + less opaque, and also under the ASL.</li> + <li>Add compression support to the new LZw4HDGF.</li> + <li>Have HDGF just write back the raw bytes it read in, and + have a test to ensure the file is un-changed.</li> + <li>Have HDGF generate the bytes to write out from the + Stream stores, using the compressed data as appropriate, + without re-compressing. Plus test to ensure file is + un-changed.</li> + <li>Have HDGF generate the bytes to write out from the + Stream stores, re-compressing any streams that were + decompressed. Plus test to ensure file is un-changed.</li> + <li>Have HDGF re-generate the offsets in pointers for the + locations of the streams. Plus test to ensure file is + un-changed.</li> + <li>Have HDGF re-generate the bytes for all the chunks, from + the chunk commands. Tests to ensure the chunks are + serialized properly, and then that the file is un-changed</li> + <li>Alter the data of one command, but keep it the same + length, and check visio can open the file when written + out.</li> + <li>Alter the data of one command, to a new length, and + check that visio can open the file when written out.</li> + </ol> + </section> + </section> + </body> +</document> |