Modified: poi/site/publish/components/poifs/how-to.html URL: http://svn.apache.org/viewvc/poi/site/publish/components/poifs/how-to.html?rev=1836244&r1=1836243&r2=1836244&view=diff ============================================================================== --- poi/site/publish/components/poifs/how-to.html (original) +++ poi/site/publish/components/poifs/how-to.html Wed Jul 18 23:27:21 2018 @@ -1,229 +1,360 @@ -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> +<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <META http-equiv="Content-Type" content="text/html; charset=UTF-8"> -<!--*** This is a generated file. Do not edit. ***--> -<link rel="stylesheet" href="../skin/tigris.css" type="text/css"> -<link rel="stylesheet" href="../skin/mysite.css" type="text/css"> -<link rel="stylesheet" href="../skin/site.css" type="text/css"> -<link media="print" rel="stylesheet" href="../skin/print.css" type="text/css"> +<meta content="Apache Forrest" name="Generator"> +<meta name="Forrest-version" content="0.9"> +<meta name="Forrest-skin-name" content="pelt"> <title>How To Use the POIFS APIs</title> +<link type="text/css" href="../../skin/basic.css" rel="stylesheet"> +<link media="screen" type="text/css" href="../../skin/screen.css" rel="stylesheet"> +<link media="print" type="text/css" href="../../skin/print.css" rel="stylesheet"> +<link type="text/css" href="../../skin/profile.css" rel="stylesheet"> +<script src="../../skin/getBlank.js" language="javascript" type="text/javascript"></script><script src="../../skin/getMenu.js" language="javascript" type="text/javascript"></script><script src="../../skin/fontsize.js" language="javascript" type="text/javascript"></script> +<link rel="shortcut icon" href="../../images/favicon.ico"> </head> -<body bgcolor="white" class="composite"> -<!--================= start Banner ==================--> -<div id="banner"> -<table width="100%" cellpadding="8" cellspacing="0" summary="banner" border="0"> -<tbody> -<tr> -<!--================= start Group Logo ==================--> -<td width="50%" align="left"> -<div class="groupLogo"> -<a href="https://www.apache.org"><img border="0" class="logoImage" alt="The Apache Software Foundation" src="../resources/images/asf_logo.png"></a> -</div> -</td> -<!--================= end Group Logo ==================--> -<!--================= start Project Logo ==================--><td width="50%" align="right"> -<div align="right" class="projectLogo"> -<a href="https://donate.apache.org/"><img border="0" class="logoImage" alt="Support Apache" src="../resources/images/support-asf.png" width="120" height="120" title="Your donation helps The Apache Software Foundation ensure its community-driven software remains available to billions of users at absolutely no cost."></a><a href="https://poi.apache.org/"><img border="0" class="logoImage" alt="Apache POI" src="../resources/images/pb-poi.png" width="120" height="120" title="Apache POI - the Java API for Microsoft Documents"></a> +<body onload="init()"> +<script type="text/javascript">ndeSetTextSize();</script> +<div id="top"> +<!--+ + |breadtrail + +--> +<div class="breadtrail"> +<a href="https://www.apache.org">Apache Software Foundation</a> > <a href="https://poi.apache.org">Apache POI</a><script src="../../skin/breadcrumbs.js" language="JavaScript" type="text/javascript"></script> +</div> +<!--+ + |header + +--> +<div class="header"> +<!--+ + |start group logo + +--> +<div class="grouplogo"> +<a href="https://www.apache.org"><img class="logoImage" alt="Apache Software Foundation" src="../../images/group-logo.png" title="The Apache Software Foundation is a cornerstone of the modern Open Source software ecosystem – supporting some of the most widely used and important software solutions powering today's Internet economy."></a> +</div> +<!--+ + |end group logo + +--> +<!--+ + |start Project Logo + +--> +<div class="projectlogo"> +<a href="https://poi.apache.org"><img class="logoImage" alt="Apache POI" src="../../images/project-logo.png" title="Apache POI is well-known in the Java field as a library for reading and writing Microsoft Office file formats, such as Excel, PowerPoint, Word, Visio, Publisher and Outlook. It supports both the older (OLE2) and new (OOXML - Office Open XML) formats."></a> +</div> +<!--+ + |end Project Logo + +--> +<!--+ + |start Search + +--> +<div class="searchbox"> +<form action="http://www.google.com/search" method="get" class="roundtopsmall"> +<input value="poi.apache.org" name="sitesearch" type="hidden"><input onFocus="getBlank (this, 'Search the site with google');" size="25" name="q" id="query" type="text" value="Search the site with google"> + <input name="Search" value="Search" type="submit"> +</form> </div> -</td> -<!--================= end Project Logo ==================--> -</tr> -</tbody> -</table> +<!--+ + |end search + +--> +<!--+ + |start Tabs + +--> +<ul id="tabs"> +<li> +<a class="unselected" href="../../index.html">Home</a> +</li> +<li> +<a class="unselected" href="../../help/index.html">Help</a> +</li> +<li class="current"> +<a class="selected" href="../../components/index.html">Component APIs</a> +</li> +<li> +<a class="unselected" href="../../devel/index.html">Getting Involved</a> +</li> +</ul> +<!--+ + |end Tabs + +--> </div> -<!--================= end Banner ==================--> -<!--================= start Main ==================--> -<table width="100%" cellpadding="0" cellspacing="0" border="0" summary="nav" id="breadcrumbs"> -<tbody> -<!--================= start Status ==================--> -<tr class="status"> -<td> -<!--================= start BreadCrumb ==================--><a href="https://www.apache.org/">Apache</a> | <a href="https://poi.apache.org/">POI</a><a href=""></a> -<!--================= end BreadCrumb ==================--></td><td id="tabs"> -<!--================= start Tabs ==================--> -<div class="tab"> -<span class="selectedTab"><a class="base-selected" href="../index.html">Home</a></span> | <script language="Javascript" type="text/javascript"> -function printit() { -if (window.print) { - window.print() ; -} else { - var WebBrowser = '<OBJECT ID="WebBrowser1" WIDTH="0" HEIGHT="0" CLASSID="CLSID:8856F961-340A-11D0-A96B-00C04FD705A2"></OBJECT>'; -document.body.insertAdjacentHTML('beforeEnd', WebBrowser); - WebBrowser1.ExecWB(6, 2);//Use a 1 vs. a 2 for a prompting dialog box WebBrowser1.outerHTML = ""; -} -} -</script><script language="Javascript" type="text/javascript"> -var NS = (navigator.appName == "Netscape"); -var VERSION = parseInt(navigator.appVersion); -if (VERSION > 3) { - document.write(' <a title="PRINT this page OUT" href="javascript:printit()">PRINT</a>'); -} -</script> </div> -<!--================= end Tabs ==================--> -</td> -</tr> -</tbody> -</table> -<!--================= end Status ==================--> -<table id="main" width="100%" cellpadding="8" cellspacing="0" summary="" border="0"> -<tbody> -<tr valign="top"> -<!--================= start Menu ==================--> -<td id="leftcol"> -<div id="navcolumn"> -<div class="menuBar"> -<div class="menu"> -<span class="menuLabel">Apache POI</span> - -<div class="menuItem"> -<a href="../index.html">Top</a> +<div id="main"> +<div id="publishedStrip"> +<!--+ + |start Subtabs + +--> +<div id="level2tabs"></div> +<!--+ + |end Endtabs + +--> +<script type="text/javascript"><!-- +document.write("Last Published: " + document.lastModified); +// --></script> </div> - +<!--+ + |breadtrail + +--> +<div class="breadtrail"> + + + </div> +<!--+ + |start Menu, mainarea + +--> +<!--+ + |start Menu + +--> +<div id="menu"> +<div onclick="SwitchMenu('menu_selected_1.1', '../../skin/')" id="menu_selected_1.1Title" class="menutitle" style="background-image: url('../../skin/images/chapter_open.gif');">Component APIs</div> +<div id="menu_selected_1.1" class="selectedmenuitemgroup" style="display: block;"> +<div class="menuitem"> +<a href="../../components/index.html">Overview</a> </div> -<div class="menu"> -<span class="menuLabel">POIFS</span> - -<div class="menuItem"> -<a href="index.html">Overview</a> +<div class="menuitem"> +<a href="../../apidocs/index.html">Javadocs</a> </div> - -<div class="menuItem"> -<span class="menuSelected">How To</span> +<div onclick="SwitchMenu('menu_1.1.3', '../../skin/')" id="menu_1.1.3Title" class="menutitle">Excel (HSSF/XSSF)</div> +<div id="menu_1.1.3" class="menuitemgroup"> +<div class="menuitem"> +<a href="../../components/spreadsheet/index.html">Overview</a> </div> - -<div class="menuItem"> -<a href="embeded.html">Embedded Documents</a> +<div class="menuitem"> +<a href="../../components/spreadsheet/quick-guide.html">Quick Guide</a> </div> - -<div class="menuItem"> -<a href="fileformat.html">File System Documentation</a> +<div class="menuitem"> +<a href="../../components/spreadsheet/how-to.html">HOWTO</a> </div> - -<div class="menuItem"> -<a href="usecases.html">Use Cases</a> +<div class="menuitem"> +<a href="../../components/spreadsheet/converting.html">HSSF to SS Converting</a> </div> - +<div class="menuitem"> +<a href="../../components/spreadsheet/formula.html">Formula Support</a> </div> -<center> -<a href="https://www.apache.org/events/current-event.html"><img src="https://www.apache.org/events/current-event-125x125.png"></a> -</center> +<div class="menuitem"> +<a href="../../components/spreadsheet/eval.html">Formula Evaluation</a> </div> +<div class="menuitem"> +<a href="../../components/spreadsheet/eval-devguide.html">Eval Dev Guide</a> </div> -<form target="_blank" action="https://www.google.com/search" method="get"> -<table summary="search" border="0" cellspacing="0" cellpadding="0"> -<tr> -<td><img height="1" width="1" alt="" src="../skin/images/spacer.gif" class="spacer"></td><td nowrap="nowrap"> - Search Apache POI<br> -<input value="poi.apache.org" name="sitesearch" type="hidden"><input size="10" name="q" id="query" type="text"><img height="1" width="5" alt="" src="../skin/images/spacer.gif" class="spacer"><input name="Search" value="GO" type="submit"></td><td><img height="1" width="1" alt="" src="../skin/images/spacer.gif" class="spacer"></td> -</tr> -<tr> -<td colspan="3"><img height="7" width="1" alt="" src="../skin/images/spacer.gif" class="spacer"></td> -</tr> -<tr> -<td class="bottom-left-thick"></td><td bgcolor="#a5b6c6"><img height="1" width="1" alt="" src="../skin/images/spacer.gif" class="spacer"></td><td class="bottom-right-thick"></td> -</tr> -</table> -</form> -</td> -<!--================= end Menu ==================--> -<!--================= start Content ==================--><td> -<div id="bodycol"> -<div class="app"> -<div align="center"> -<h1>How To Use the POIFS APIs</h1> +<div class="menuitem"> +<a href="../../components/spreadsheet/examples.html">Examples</a> </div> -<div class="h3"> - - +<div class="menuitem"> +<a href="../../components/spreadsheet/use-case.html">Use Case</a> +</div> +<div class="menuitem"> +<a href="../../components/spreadsheet/diagrams.html">Pictorial Docs</a> +</div> +<div class="menuitem"> +<a href="../../components/spreadsheet/limitations.html">Limitations</a> +</div> +<div class="menuitem"> +<a href="../../components/spreadsheet/user-defined-functions.html">User Defined Functions</a> +</div> +<div class="menuitem"> +<a href="../../components/spreadsheet/excelant.html">ExcelAnt Tests</a> +</div> +<div class="menuitem"> +<a href="../../components/spreadsheet/hacking-hssf.html">Hacking HSSF</a> +</div> +<div class="menuitem"> +<a href="../../components/spreadsheet/record-generator.html">Record Generator</a> +</div> +<div class="menuitem"> +<a href="../../components/spreadsheet/chart.html">Charts</a> +</div> +</div> +<div onclick="SwitchMenu('menu_1.1.4', '../../skin/')" id="menu_1.1.4Title" class="menutitle">PowerPoint (HSLF/XSLF)</div> +<div id="menu_1.1.4" class="menuitemgroup"> +<div class="menuitem"> +<a href="../../components/slideshow/index.html">Overview</a> +</div> +<div class="menuitem"> +<a href="../../components/slideshow/quick-guide.html">Quick Guide</a> +</div> +<div class="menuitem"> +<a href="../../components/slideshow/how-to-shapes.html">HSLF Cookbook</a> +</div> +<div class="menuitem"> +<a href="../../components/slideshow/xslf-cookbook.html">XSLF Cookbook</a> +</div> +<div class="menuitem"> +<a href="../../components/slideshow/ppt-file-format.html">PPT File Format</a> +</div> +</div> +<div onclick="SwitchMenu('menu_1.1.5', '../../skin/')" id="menu_1.1.5Title" class="menutitle">Word (HWPF/XWPF)</div> +<div id="menu_1.1.5" class="menuitemgroup"> +<div class="menuitem"> +<a href="../../components/document/index.html">Overview</a> +</div> +<div class="menuitem"> +<a href="../../components/document/quick-guide.html">HWPF Quick Guide</a> +</div> +<div class="menuitem"> +<a href="../../components/document/quick-guide-xwpf.html">XWPF Quick Guide</a> +</div> +<div class="menuitem"> +<a href="../../components/document/docoverview.html">HWPF Format</a> +</div> +<div class="menuitem"> +<a href="../../components/document/projectplan.html">HWPF Project plan</a> +</div> +</div> +<div class="menuitem"> +<a href="../../components/hsmf/index.html">Outlook (HSMF)</a> +</div> +<div class="menuitem"> +<a href="../../components/diagram/index.html">Visio (HDGF+XDGF)</a> +</div> +<div onclick="SwitchMenu('menu_1.1.8', '../../skin/')" id="menu_1.1.8Title" class="menutitle">Publisher (HPBF)</div> +<div id="menu_1.1.8" class="menuitemgroup"> +<div class="menuitem"> +<a href="../../components/hpbf/index.html">Overview</a> +</div> +<div class="menuitem"> +<a href="../../components/hpbf/file-format.html">File Format</a> +</div> +</div> +<div onclick="SwitchMenu('menu_selected_1.1.9', '../../skin/')" id="menu_selected_1.1.9Title" class="menutitle" style="background-image: url('../../skin/images/chapter_open.gif');">OLE2 Filesystem (POIFS)</div> +<div id="menu_selected_1.1.9" class="selectedmenuitemgroup" style="display: block;"> +<div class="menuitem"> +<a href="../../components/poifs/index.html">Overview</a> +</div> +<div class="menupage"> +<div class="menupagetitle">How To</div> +</div> +<div class="menuitem"> +<a href="../../components/poifs/embeded.html">Embedded Documents</a> +</div> +<div class="menuitem"> +<a href="../../components/poifs/fileformat.html">File System Documentation</a> +</div> +<div class="menuitem"> +<a href="../../components/poifs/usecases.html">Use Cases</a> +</div> +<div class="menuitem"> +<a href="../../components/poifs/design.html">Design</a> +</div> +</div> +<div onclick="SwitchMenu('menu_1.1.10', '../../skin/')" id="menu_1.1.10Title" class="menutitle">OLE2 Document Props (HPSF)</div> +<div id="menu_1.1.10" class="menuitemgroup"> +<div class="menuitem"> +<a href="../../components/hpsf/index.html">Overview</a> +</div> +<div class="menuitem"> +<a href="../../components/hpsf/how-to.html">How To</a> +</div> +<div class="menuitem"> +<a href="../../components/hpsf/thumbnails.html">Thumbnails</a> +</div> +<div class="menuitem"> +<a href="../../components/hpsf/internals.html">Internals</a> +</div> +<div class="menuitem"> +<a href="../../components/hpsf/todo.html">To Do</a> +</div> +</div> +<div class="menuitem"> +<a href="../../components/hmef/index.html">TNEF (HMEF) for winmail.dat</a> +</div> +<div class="menuitem"> +<a href="../../components/oxml4j/index.html">OpenXML4J (OOXML)</a> +</div> +<div class="menuitem"> +<a href="../../components/logging.html">Logging framework</a> +</div> +</div> +<div id="credit"></div> +<div id="roundbottom"> +<img style="display: none" class="corner" height="15" width="15" alt="" src="../../skin/images/rc-b-l-15-1body-2menu-3menu.png"></div> +<!--+ + |alternative credits + +--> +<div id="credit2"> +<a href="https://donate.apache.org/"><img border="0" title="Support Apache" alt="Support Apache - logo" src="../../images/support-asf.png" style="width: 125px;height: 125px;"></a> +</div> +</div> +<!--+ + |end Menu + +--> +<!--+ + |start content + +--> +<div id="content"> +<h1>How To Use the POIFS APIs</h1> +<div id="front-matter"></div> <a name="How+To+Use+the+POIFS+APIs"></a> -<div class="h3"> -<h3>How To Use the POIFS APIs<a title="Permanent link" class="headerlink" href="#How+To+Use+the+POIFS+APIs">#</a> -</h3> -</div> - +<h2 class="boxed">How To Use the POIFS APIs</h2> +<div class="section"> <p>This document describes how to use the POIFS APIs to read, write, and modify files that employ a POIFS-compatible data structure to organize their content.</p> - <a name="Target+Audience"></a> -<div class="h4"> -<h4>Target Audience<a title="Permanent link" class="headerlink" href="#Target+Audience">#</a> -</h4> -</div> - +<h3 class="boxed">Target Audience</h3> <p>This document is intended for Java developers who need to use the POIFS APIs to read, write, or modify files that employ a POIFS-compatible data structure to organize their content. It is not necessary for developers to understand the POIFS data structures, and an explanation of those data structures is beyond the scope of this document. It is expected that the members of the target audience will understand the rudiments of a hierarchical file system, and familiarity with the event pattern employed by Java APIs such as AWT would be helpful.</p> - - <a name="Glossary"></a> -<div class="h4"> -<h4>Glossary<a title="Permanent link" class="headerlink" href="#Glossary">#</a> -</h4> -</div> - +<h3 class="boxed">Glossary</h3> <p>This document attempts to be consistent in its terminology, which is defined here:</p> - <table class="ForrestTable" cellspacing="1" cellpadding="4"> -<tr class="b"> +<tr> <td colspan="1" rowspan="1"><em>Term</em></td> <td colspan="1" rowspan="1"><em>Definition</em></td> </tr> -<tr class="a"> +<tr> <td colspan="1" rowspan="1">Directory</td> <td colspan="1" rowspan="1">A special file that may contain other directories and documents.</td> </tr> -<tr class="b"> +<tr> <td colspan="1" rowspan="1">DirectoryEntry</td> <td colspan="1" rowspan="1">Representation of a directory within another directory.</td> </tr> -<tr class="a"> +<tr> <td colspan="1" rowspan="1">Document</td> <td colspan="1" rowspan="1">A file containing data, such as word processing data or a spreadsheet workbook.</td> </tr> -<tr class="b"> +<tr> <td colspan="1" rowspan="1">DocumentEntry</td> <td colspan="1" rowspan="1">Representation of a document within a directory.</td> </tr> -<tr class="a"> +<tr> <td colspan="1" rowspan="1">Entry</td> <td colspan="1" rowspan="1">Representation of a file in a directory.</td> </tr> -<tr class="b"> +<tr> <td colspan="1" rowspan="1">File</td> <td colspan="1" rowspan="1">A named entity, managed and contained by the file system.</td> </tr> -<tr class="a"> +<tr> <td colspan="1" rowspan="1">File System</td> <td colspan="1" rowspan="1">The POIFS data structures, plus the contained directories and documents, which are maintained in a hierarchical directory structure.</td> </tr> -<tr class="b"> +<tr> <td colspan="1" rowspan="1">Root Directory</td> <td colspan="1" rowspan="1">The directory at the base of a file system. All file systems have a root directory. The POIFS APIs will not allow the root directory to be removed or renamed, but it can be accessed for the purpose of reading its contents or adding files (directories and documents) to it.</td> @@ -231,20 +362,15 @@ if (VERSION > 3) { </tr> </table> - - +</div> <a name="The+different+ways+of+working+with+POIFS"></a> -<div class="h3"> -<h3>The different ways of working with POIFS<a title="Permanent link" class="headerlink" href="#The+different+ways+of+working+with+POIFS">#</a> -</h3> -</div> - +<h2 class="boxed">The different ways of working with POIFS</h2> +<div class="section"> <p>The POIFS API provides ways to read, modify and write files and streams that employ a POIFS-compatible data structure to organize their content. The following use cases are covered:</p> - <ul> <li> @@ -274,22 +400,17 @@ if (VERSION > 3) { </li> </ul> - +</div> <a name="Reading+a+File+System"></a> -<div class="h3"> -<h3>Reading a File System<a title="Permanent link" class="headerlink" href="#Reading+a+File+System">#</a> -</h3> -</div> - -<a name="reading"></a> - +<h2 class="boxed">Reading a File System</h2> +<div class="section"> +<a name="reading" id="reading"></a> <p>This section covers reading a file system. There are two ways to read a file system; these techniques are sketched out in the following table, and then explained in greater depth in the sections following the table.</p> - <table class="ForrestTable" cellspacing="1" cellpadding="4"> -<tr class="b"> +<tr> <td colspan="1" rowspan="1"><em>Technique</em></td> <td colspan="1" rowspan="1"><em>Advantages</em></td> @@ -297,7 +418,7 @@ if (VERSION > 3) { </tr> -<tr class="a"> +<tr> <td colspan="1" rowspan="1">Conventional Reading (POIFSFileSystem)</td> <td colspan="1" rowspan="1"> @@ -312,7 +433,7 @@ if (VERSION > 3) { </tr> -<tr class="b"> +<tr> <td colspan="1" rowspan="1">New NIO driven Reading (NPOIFSFileSystem)</td> <td colspan="1" rowspan="1"> @@ -330,7 +451,7 @@ if (VERSION > 3) { </tr> -<tr class="a"> +<tr> <td colspan="1" rowspan="1">Event-Driven Reading</td> <td colspan="1" rowspan="1"> @@ -347,26 +468,13 @@ if (VERSION > 3) { </tr> </table> - - <a name="Conventional+Reading+with+POIFSFileSystem"></a> -<div class="h4"> -<h4>Conventional Reading with POIFSFileSystem<a title="Permanent link" class="headerlink" href="#Conventional+Reading+with+POIFSFileSystem">#</a> -</h4> -</div> - -<a name="reading_poifsfilesystem"></a> - +<h3 class="boxed">Conventional Reading with POIFSFileSystem</h3> +<a name="reading_poifsfilesystem" id="reading_poifsfilesystem"></a> <p>In this technique for reading, the entire file system is loaded into memory, and the entire directory tree can be walked by an application, reading specific documents at the application's leisure.</p> - <a name="Preparation"></a> -<div class="h2"> -<h2>Preparation<a title="Permanent link" class="headerlink" href="#Preparation">#</a> -</h2> -</div> - +<h4>Preparation</h4> <p>Before an application can read a file from the file system, the file system needs to be loaded into memory. This is done by using the <span class="codefrag">org.apache.poi.poifs.filesystem.POIFSFileSystem</span> class. Once the file system has been loaded into memory, the application may need the root directory. The following code fragment will accomplish this preparation stage:</p> - <pre class="code"> // need an open InputStream; for a file-based system, this would be appropriate: // InputStream stream = new FileInputStream(fileName); @@ -381,20 +489,11 @@ catch (IOException e) // POIFS data structure } DirectoryEntry root = fs.getRoot();</pre> - <p>Assuming no exception was thrown, the file system can then be read.</p> - <p>Note: loading the file system can take noticeable time, particularly for large file systems.</p> - - <a name="Reading+the+Directory+Tree"></a> -<div class="h2"> -<h2>Reading the Directory Tree<a title="Permanent link" class="headerlink" href="#Reading+the+Directory+Tree">#</a> -</h2> -</div> - +<h4>Reading the Directory Tree</h4> <p>Once the file system has been loaded into memory and the root directory has been obtained, the root directory can be read. The following code fragment shows how to read the entries in an <span class="codefrag">org.apache.poi.poifs.filesystem.DirectoryEntry</span> instance:</p> - <pre class="code"> // dir is an instance of DirectoryEntry ... for (Entry entry : dir) @@ -415,24 +514,12 @@ for (Entry entry : dir) // internal data structure certainly allows for a lot more entry types. } }</pre> - - <a name="Reading+a+Specific+Document"></a> -<div class="h2"> -<h2>Reading a Specific Document<a title="Permanent link" class="headerlink" href="#Reading+a+Specific+Document">#</a> -</h2> -</div> - +<h4>Reading a Specific Document</h4> <p>There are a couple of ways to read a document, depending on whether the document resides in the root directory or in another directory. Either way, you will obtain an <span class="codefrag">org.apache.poi.poifs.filesystem.DocumentInputStream</span> instance.</p> - <a name="DocumentInputStream"></a> -<div class="h5"> -<h5>DocumentInputStream<a title="Permanent link" class="headerlink" href="#DocumentInputStream">#</a> -</h5> -</div> - +<h5>DocumentInputStream</h5> <p>The DocumentInputStream class is a simple implementation of InputStream that makes a few guarantees worth noting:</p> - <ul> <li> @@ -451,25 +538,15 @@ for (Entry entry : dir) <span class="codefrag">skip(long n)</span> will take you to your current position + n (but not past the end of the document).</li> </ul> - <p>The behavior of <span class="codefrag">available</span> means you can read in a document in a single read call like this:</p> - <pre class="code"> byte[] content = new byte[ stream.available() ]; stream.read(content); stream.close();</pre> - <p>The combination of <span class="codefrag">mark</span>, <span class="codefrag">reset</span>, and <span class="codefrag">skip</span> provide the basic mechanisms needed for random access of the document contents.</p> - - <a name="Reading+a+Document+From+the+Root+Directory"></a> -<div class="h5"> -<h5>Reading a Document From the Root Directory<a title="Permanent link" class="headerlink" href="#Reading+a+Document+From+the+Root+Directory">#</a> -</h5> -</div> - +<h5>Reading a Document From the Root Directory</h5> <p>If the document resides in the root directory, you can obtain a <span class="codefrag">DocumentInputStream</span> like this:</p> - <pre class="code"> // load file system try @@ -482,36 +559,19 @@ catch (IOException e) // no such document, or the Entry represented by documentName is not a // DocumentEntry }</pre> - - <a name="Reading+a+Document+From+an+Arbitrary+Directory"></a> -<div class="h5"> -<h5>Reading a Document From an Arbitrary Directory<a title="Permanent link" class="headerlink" href="#Reading+a+Document+From+an+Arbitrary+Directory">#</a> -</h5> -</div> - +<h5>Reading a Document From an Arbitrary Directory</h5> <p>A more generic technique for reading a document is to obtain an <span class="codefrag">org.apache.poi.poifs.filesystem.DirectoryEntry</span> instance for the directory containing the desired document (recall that you can use <span class="codefrag">getRoot()</span> to obtain the root directory from its file system). From that DirectoryEntry, you can then obtain a <span class="codefrag">DocumentInputStream</span> like this:</p> - <pre class="code"> DocumentEntry document = (DocumentEntry)directory.getEntry(documentName); DocumentInputStream stream = new DocumentInputStream(document); </pre> - - - - <a name="NIO+Reading+using+NPOIFSFileSystem"></a> -<div class="h4"> -<h4>NIO Reading using NPOIFSFileSystem<a title="Permanent link" class="headerlink" href="#NIO+Reading+using+NPOIFSFileSystem">#</a> -</h4> -</div> - -<a name="reading_npoifsfilesystem"></a> - +<h3 class="boxed">NIO Reading using NPOIFSFileSystem</h3> +<a name="reading_npoifsfilesystem" id="reading_npoifsfilesystem"></a> <p>In this technique for reading, certain key structures are loaded into memory, and the entire directory tree can be walked by the application, reading specific documents at leisure.</p> - <p>If you create a NPOIFSFileSystem instance from a File, the memory footprint is very small. However, if you createa a NPOIFSFileSystem instance from an input stream, then the whole contents must be @@ -520,20 +580,14 @@ DocumentInputStream stream = new Documen or up to 120% of the file size when using an InputStream. (Using NPOIFSFileSystem, whether File or InputStream based, should always result in a lower memory footprint than POIFSFileSystem needed)</p> - -<a name="Preparation-N101FB"></a> -<div class="h2"> -<h2>Preparation<a title="Permanent link" class="headerlink" href="#Preparation-N101FB">#</a> -</h2> -</div> - +<a name="Preparation-N101FC"></a> +<h4>Preparation</h4> <p>Before an application can read a file from the file system, the file system needs to be opened and core parts processed. This is done using the <span class="codefrag">org.apache.poi.poifs.filesystem.NPOIFSFileSystem</span> class. Once the file system has been loaded into memory, the application may need the root directory. The following code fragment will accomplish this preparation stage:</p> - <pre class="code"> // This is the most memory efficient way to open the FileSystem NPOIFSFileSystem fs; @@ -562,33 +616,16 @@ catch (IOException e) } DirectoryEntry root = fs.getRoot(); </pre> - <p>Assuming no exception was thrown, the file system can then be read.</p> - <p>One the NPOIFSFileSytem is open, you can manipulate it just like a POIFSFileSytem one.</p> - - - - <a name="Event-Driven+Reading"></a> -<div class="h4"> -<h4>Event-Driven Reading<a title="Permanent link" class="headerlink" href="#Event-Driven+Reading">#</a> -</h4> -</div> - -<a name="reading_event"></a> - +<h3 class="boxed">Event-Driven Reading</h3> +<a name="reading_event" id="reading_event"></a> <p>The event-driven API for reading documents is a little more complicated and requires that your application know, in advance, which files it wants to read. The benefit of using this API is that each document is in memory just long enough for your application to read it, and documents that you never read at all are not in memory at all. When you're finished reading the documents you wanted, the file system has no data structures associated with it at all and can be discarded.</p> - -<a name="Preparation-N1021D"></a> -<div class="h2"> -<h2>Preparation<a title="Permanent link" class="headerlink" href="#Preparation-N1021D">#</a> -</h2> -</div> - +<a name="Preparation-N1021E"></a> +<h4>Preparation</h4> <p>The preparation phase involves creating an instance of <span class="codefrag">org.apache.poi.poifs.eventfilesystem.POIFSReader</span> and to then register one or more <span class="codefrag">org.apache.poi.poifs.eventfilesystem.POIFSReaderListener</span> instances with the <span class="codefrag">POIFSReader</span>.</p> - <pre class="code"> POIFSReader reader = new POIFSReader(); // register for everything @@ -601,51 +638,39 @@ reader.registerListener(myOtherPickyList "fubar"); reader.registerListener(myOtherPickyListener, new POIFSDocumentPath( new String[] { "usr", "bin" ), "fubar");</pre> - - <a name="POIFSReaderListener"></a> -<div class="h2"> -<h2>POIFSReaderListener<a title="Permanent link" class="headerlink" href="#POIFSReaderListener">#</a> -</h2> -</div> - +<h4>POIFSReaderListener</h4> <p> <span class="codefrag">org.apache.poi.poifs.eventfilesystem.POIFSReaderListener</span> is an interface used to register for documents. When a matching document is read by the <span class="codefrag">org.apache.poi.poifs.eventfilesystem.POIFSReader</span>, the <span class="codefrag">POIFSReaderListener</span> instance receives an <span class="codefrag">org.apache.poi.poifs.eventfilesystem.POIFSReaderEvent</span> instance, which contains an open <span class="codefrag">DocumentInputStream</span> and information about the document.</p> - <p>A <span class="codefrag">POIFSReaderListener</span> instance can register for individual documents, or it can register for all documents; once it has registered for all documents, subsequent (and previous!) registration requests for individual documents are ignored. There is no way to unregister a <span class="codefrag">POIFSReaderListener</span>.</p> - <p>Thus, it is possible to register a single <span class="codefrag">POIFSReaderListener</span> for multiple documents - one, some, or all documents. It is guaranteed that a single <span class="codefrag">POIFSReaderListener</span> will receive exactly one notification per registered document. There is no guarantee as to the order in which it will receive notification of its documents, as future implementations of <span class="codefrag">POIFSReader</span> are free to change the algorithm for walking the file system's directory structure.</p> - <p>It is also permitted to register more than one <span class="codefrag">POIFSReaderListener</span> for the same document. There is no guarantee of ordering for notification of <span class="codefrag">POIFSReaderListener</span> instances that have registered for the same document when <span class="codefrag">POIFSReader</span> processes that document.</p> - <p>It is guaranteed that all notifications occur in the same thread. A future enhancement may be made to provide multi-threaded notifications, but such an enhancement would very probably be made in a new reader class, a <span class="codefrag">ThreadedPOIFSReader</span> perhaps.</p> - <p>The following table describes the three ways to register a <span class="codefrag">POIFSReaderListener</span> for a document or set of documents:</p> - <table class="ForrestTable" cellspacing="1" cellpadding="4"> -<tr class="b"> +<tr> <td colspan="1" rowspan="1"><em>Method Signature</em></td> <td colspan="1" rowspan="1"><em>What it does</em></td> </tr> -<tr class="a"> +<tr> <td colspan="1" rowspan="1">registerListener(POIFSReaderListener <em>listener</em>)</td> <td colspan="1" rowspan="1">registers <em>listener</em> for all documents.</td> </tr> -<tr class="b"> +<tr> <td colspan="1" rowspan="1">registerListener(POIFSReaderListener <em>listener</em>, String <em>name</em>)</td> <td colspan="1" rowspan="1">registers <em>listener</em> for a document with the specified <em>name</em> in the root directory.</td> </tr> -<tr class="a"> +<tr> <td colspan="1" rowspan="1">registerListener(POIFSReaderListener <em>listener</em>, POIFSDocumentPath <em>path</em>, String <em>name</em>)</td> <td colspan="1" rowspan="1">registers <em>listener</em> for a document with the specified <em>name</em> in the directory described by <em>path</em></td> @@ -653,54 +678,47 @@ reader.registerListener(myOtherPickyList </tr> </table> - - <a name="POIFSDocumentPath"></a> -<div class="h2"> -<h2>POIFSDocumentPath<a title="Permanent link" class="headerlink" href="#POIFSDocumentPath">#</a> -</h2> -</div> - +<h4>POIFSDocumentPath</h4> <p>The <span class="codefrag">org.apache.poi.poifs.filesystem.POIFSDocumentPath</span> class is used to describe a directory in a POIFS file system. Since there are no reserved characters in the name of a file in a POIFS file system, a more traditional string-based solution for describing a directory, with special characters delimiting the components of the directory name, is not feasible. The constructors for the class are used as follows:</p> - <table class="ForrestTable" cellspacing="1" cellpadding="4"> -<tr class="b"> +<tr> <td colspan="1" rowspan="1"><em>Constructor example</em></td> <td colspan="1" rowspan="1"><em>Directory described</em></td> </tr> -<tr class="a"> +<tr> <td colspan="1" rowspan="1">new POIFSDocumentPath()</td> <td colspan="1" rowspan="1">The root directory.</td> </tr> -<tr class="b"> +<tr> <td colspan="1" rowspan="1">new POIFSDocumentPath(null)</td> <td colspan="1" rowspan="1">The root directory.</td> </tr> -<tr class="a"> +<tr> <td colspan="1" rowspan="1">new POIFSDocumentPath(new String[ 0 ])</td> <td colspan="1" rowspan="1">The root directory.</td> </tr> -<tr class="b"> +<tr> <td colspan="1" rowspan="1">new POIFSDocumentPath(new String[ ] { "foo", "bar"} )</td> <td colspan="1" rowspan="1">in Unix terminology, "/foo/bar".</td> </tr> -<tr class="a"> +<tr> <td colspan="1" rowspan="1">new POIFSDocumentPath(new POIFSDocumentPath(new String[] { "foo" }), new String[ ] { "fu", "bar"} )</td> <td colspan="1" rowspan="1">in Unix terminology, "/foo/fu/bar".</td> @@ -708,49 +726,28 @@ reader.registerListener(myOtherPickyList </tr> </table> - - <a name="Processing+POIFSReaderEvent+Events"></a> -<div class="h2"> -<h2>Processing POIFSReaderEvent Events<a title="Permanent link" class="headerlink" href="#Processing+POIFSReaderEvent+Events">#</a> -</h2> -</div> - +<h4>Processing POIFSReaderEvent Events</h4> <p>Processing <span class="codefrag">org.apache.poi.poifs.eventfilesystem.POIFSReaderEvent</span> events is relatively easy. After all of the <span class="codefrag">POIFSReaderListener</span> instances have been registered with <span class="codefrag">POIFSReader</span>, the <span class="codefrag">POIFSReader.read(InputStream stream)</span> method is called.</p> - <p>Assuming that there are no problems with the data, as the <span class="codefrag">POIFSReader</span> processes the documents in the specified <span class="codefrag">InputStream</span>'s data, it calls registered <span class="codefrag">POIFSReaderListener</span> instances' <span class="codefrag">processPOIFSReaderEvent</span> method with a <span class="codefrag">POIFSReaderEvent</span> instance.</p> - <p>The <span class="codefrag">POIFSReaderEvent</span> instance contains information to identify the document (a <span class="codefrag">POIFSDocumentPath</span> object to identify the directory that the document is in, and the document name), and an open <span class="codefrag">DocumentInputStream</span> instance from which to read the document.</p> - - - +</div> <a name="Writing+a+File+System"></a> -<div class="h3"> -<h3>Writing a File System<a title="Permanent link" class="headerlink" href="#Writing+a+File+System">#</a> -</h3> -</div> - -<a name="writing"></a> - +<h2 class="boxed">Writing a File System</h2> +<div class="section"> +<a name="writing" id="writing"></a> <p>Writing a file system is very much like reading a file system in that there are multiple ways to do so. You can load an existing file system into memory and modify it (removing files, renaming files) and/or add new files to it, and write it, or you can start with a new, empty file system:</p> - <pre class="code"> // Newer, lower memory footprint writing NPOIFSFileSystem fs = new NPOIFSFileSystem(); // Older style writing POIFSFileSystem fs = new POIFSFileSystem();</pre> - <a name="The+Naming+of+Names"></a> -<div class="h4"> -<h4>The Naming of Names<a title="Permanent link" class="headerlink" href="#The+Naming+of+Names">#</a> -</h4> -</div> - +<h3 class="boxed">The Naming of Names</h3> <p>There are two restrictions on the names of files in a file system that must be considered when creating files:</p> - <ol> <li>The name of the file must not exceed 31 characters. If it does, the POIFS API will silently truncate the name to fit.</li> @@ -758,19 +755,12 @@ POIFSFileSystem fs = new POIFSFileSystem <li>The name of the file must be unique within its containing directory. This seems pretty obvious, but if it isn't spelled out, there'll be hell to pay, to be sure. Uniqueness, of course, is determined <em>after</em> the name has been truncated, if the original name was too long to begin with.</li> </ol> - - <a name="Creating+a+Document"></a> -<div class="h4"> -<h4>Creating a Document<a title="Permanent link" class="headerlink" href="#Creating+a+Document">#</a> -</h4> -</div> - +<h3 class="boxed">Creating a Document</h3> <p>A document can be created by acquiring a <span class="codefrag">DirectoryEntry</span> and calling one of the two <span class="codefrag">createDocument</span> methods:</p> - <table class="ForrestTable" cellspacing="1" cellpadding="4"> -<tr class="b"> +<tr> <td colspan="1" rowspan="1"><em>Method Signature</em></td> <td colspan="1" rowspan="1"><em>Advantages</em></td> @@ -778,7 +768,7 @@ POIFSFileSystem fs = new POIFSFileSystem </tr> -<tr class="a"> +<tr> <td colspan="1" rowspan="1">createDocument(String name, InputStream stream)</td> <td colspan="1" rowspan="1"> @@ -790,7 +780,7 @@ POIFSFileSystem fs = new POIFSFileSystem </tr> -<tr class="b"> +<tr> <td colspan="1" rowspan="1">createDocument(String name, int size, POIFSWriterListener writer)</td> <td colspan="1" rowspan="1"> @@ -805,63 +795,45 @@ POIFSFileSystem fs = new POIFSFileSystem </tr> </table> - <p>Unlike reading, you don't have to choose between the in-memory and event-driven writing models; both can co-exist in the same file system.</p> - <p>Writing is initiated when the <span class="codefrag">POIFSFileSystem</span> instance's <span class="codefrag">writeFilesystem()</span> method is called with an <span class="codefrag">OutputStream</span> to write to.</p> - <p>The event-driven model is quite similar to the event-driven model for reading, in that the file system calls your <span class="codefrag">org.apache.poi.poifs.filesystem.POIFSWriterListener</span> when it's time to write your document, just as the <span class="codefrag">POIFSReader</span> calls your <span class="codefrag">POIFSReaderListener</span> when it's time to read your document. Internally, when <span class="codefrag">writeFilesystem()</span> is called, the final POIFS data structures are created and are written to the specified <span class="codefrag">OutputStream</span>. When the file system needs to write a document out that was created with the event-driven model, it calls the <span class="codefrag">POIFSWriterListener</span> back, calling its <span class="codefrag">processPOIFSWriterEvent()</span> method, passing an <span class="codefrag">org.apache.poi.poifs.filesystem.POIFSWriterEvent</span> instance. This object contains the <span class="codefrag">POIFSDocumentPath</ span> and name of the document, its size, and an open <span class="codefrag">org.apache.poi.poifs.filesystem.DocumentOutputStream</span> to which to write. A <span class="codefrag">DocumentOutputStream</span> is a wrapper over the <span class="codefrag">OutputStream</span> that was provided to the <span class="codefrag">POIFSFileSystem</span> to write to, and has the responsibility of making sure that the document your application writes fits within the size you specified for it.</p> - <p>If you are using a <span class="codefrag">NPOIFSFileSystem</span> loaded from a <span class="codefrag">File</span> with <span class="codefrag">readOnly</span> set to false, it is also possible to do an in-place write. Simply call <span class="codefrag">writeFilesystem()</span> to have the (limited) in-memory structures synced with the disk, then <span class="codefrag">close()</span> to finish.</p> - - <a name="Creating+a+Directory"></a> -<div class="h4"> -<h4>Creating a Directory<a title="Permanent link" class="headerlink" href="#Creating+a+Directory">#</a> -</h4> -</div> - +<h3 class="boxed">Creating a Directory</h3> <p>Creating a directory is similar to creating a document, except that there's only one way to do so:</p> - <pre class="code"> DirectoryEntry createdDir = existingDir.createDirectory(name);</pre> - - <a name="Using+POIFSFileSystem+Directly+To+Create+a+Document+Or+Directory"></a> -<div class="h4"> -<h4>Using POIFSFileSystem Directly To Create a Document Or Directory<a title="Permanent link" class="headerlink" href="#Using+POIFSFileSystem+Directly+To+Create+a+Document+Or+Directory">#</a> -</h4> -</div> - +<h3 class="boxed">Using POIFSFileSystem Directly To Create a Document Or Directory</h3> <p>As with reading documents, it is possible to create a new document or directory in the root directory by using convenience methods of POIFSFileSystem.</p> - <table class="ForrestTable" cellspacing="1" cellpadding="4"> -<tr class="b"> +<tr> <td colspan="1" rowspan="1"><em>DirectoryEntry Method Signature</em></td> <td colspan="1" rowspan="1"><em>POIFSFileSystem Method Signature</em></td> </tr> -<tr class="a"> +<tr> <td colspan="1" rowspan="1">createDocument(String name, InputStream stream)</td> <td colspan="1" rowspan="1">createDocument(InputStream stream, String name)</td> </tr> -<tr class="b"> +<tr> <td colspan="1" rowspan="1">createDocument(String name, int size, POIFSWriterListener writer)</td> <td colspan="1" rowspan="1">createDocument(String name, int size, POIFSWriterListener writer)</td> </tr> -<tr class="a"> +<tr> <td colspan="1" rowspan="1">createDirectory(String name)</td> <td colspan="1" rowspan="1">createDirectory(String name)</td> @@ -869,37 +841,20 @@ DirectoryEntry createdDir = existingDir. </tr> </table> - - +</div> <a name="Modifying+a+File+System"></a> -<div class="h3"> -<h3>Modifying a File System<a title="Permanent link" class="headerlink" href="#Modifying+a+File+System">#</a> -</h3> -</div> - -<a name="modifying"></a> - +<h2 class="boxed">Modifying a File System</h2> +<div class="section"> +<a name="modifying" id="modifying"></a> <p>It is possible to modify an existing POIFS file system, whether it's one your application has loaded into memory, or one which you are creating on the fly.</p> - <a name="Removing+a+Document"></a> -<div class="h4"> -<h4>Removing a Document<a title="Permanent link" class="headerlink" href="#Removing+a+Document">#</a> -</h4> -</div> - +<h3 class="boxed">Removing a Document</h3> <p>Removing a document is simple: you get the <span class="codefrag">Entry</span> corresponding to the document and call its <span class="codefrag">delete()</span> method. This is a boolean method, but should always return <span class="codefrag">true</span>, indicating that the operation succeeded.</p> - - <a name="Removing+a+Directory"></a> -<div class="h4"> -<h4>Removing a Directory<a title="Permanent link" class="headerlink" href="#Removing+a+Directory">#</a> -</h4> -</div> - +<h3 class="boxed">Removing a Directory</h3> <p>Removing a directory is also simple: you get the <span class="codefrag">Entry</span> corresponding to the directory and call its <span class="codefrag">delete()</span> method. This is a boolean method, but, unlike deleting a document, may not always return <span class="codefrag">true</span>, indicating that the operation succeeded. Here are the reasons why the operation may fail:</p> - <ul> <li>The directory still has files in it (to check, call <span class="codefrag">isEmpty()</span> on its DirectoryEntry; is the return value <span class="codefrag">false</span>?)</li> @@ -907,27 +862,18 @@ DirectoryEntry createdDir = existingDir. <li>The directory is the root directory. You cannot remove the root directory.</li> </ul> - - <a name="Changing+a+File%27s+contents"></a> -<div class="h4"> -<h4>Changing a File's contents<a title="Permanent link" class="headerlink" href="#Changing+a+File%27s+contents">#</a> -</h4> -</div> - +<h3 class="boxed">Changing a File's contents</h3> <p> <em>Changing a file's contents is only possible with NPOIFSFileSystem</em> </p> - <p>There are two ways available to change the contents of an existing file within a POIFS file system. One is using a <span class="codefrag">NDocumentOutputStream</span>, the other is with <span class="codefrag">NPOIFSDocument.replaceContents</span> </p> - <p>If you have available to you an <span class="codefrag">InputStream</span> to read the new File contents from, then the easiest way is via <span class="codefrag">NPOIFSDocument.replaceContents</span>. You would do something like:</p> - <pre class="code"> // Get the input stream from somewhere InputStream inp = db.getContentStream(); @@ -945,12 +891,10 @@ myDoc.replaceContents(inp); fs.writeFileSystem(); fs.close(); </pre> - <p>Alternately, if you either have a byte array, or you need to write as you go along, then the OutputStream interface provided by <span class="codefrag">NDocumentOutputStream</span> will likely be a better bet. Your code would want to look somewhat like:</p> - <pre class="code"> // Open the POIFS File System, and get the entry of interest NPOIFSFileSystem fs = new NPOIFSFileSystem(new File(filename)); @@ -968,22 +912,13 @@ fs.write(out); fs.close(); out.close(); </pre> - <p>For an example of an in-place change to one stream within a file, you can see the example <a href="http://svn.apache.org/repos/asf/poi/trunk/src/examples/src/org/apache/poi/hpsf/examples/ModifyDocumentSummaryInformation.java">org/apache/poi/hpsf/examples/ModifyDocumentSummaryInformation.java</a> </p> - - <a name="Renaming+a+File"></a> -<div class="h4"> -<h4>Renaming a File<a title="Permanent link" class="headerlink" href="#Renaming+a+File">#</a> -</h4> -</div> - +<h3 class="boxed">Renaming a File</h3> <p>Regardless of whether the file is a directory or a document, it can be renamed, with one exception - the root directory has a special name that is expected by the components of a major software vendor's office suite, and the POIFS API will not let that name be changed. Renaming is done by acquiring the file's corresponding <span class="codefrag">Entry</span> instance and calling its <span class="codefrag">renameTo</span> method, passing in the new name.</p> - <p>Like <span class="codefrag">delete</span>, <span class="codefrag">renameTo</span> returns <span class="codefrag">true</span> if the operation succeeded, otherwise <span class="codefrag">false</span>. Reasons for failure include these:</p> - <ul> <li>The new name is the same as another file in the same directory. And don't forget - if the new name is longer than 31 characters, it <em>will</em> be silently truncated. In its original length, the new name may have been unique, but truncated to 31 characters, it may not be unique any longer.</li> @@ -991,51 +926,37 @@ out.close(); <li>You tried to rename the root directory.</li> </ul> - - - - -<div id="authors" align="right">by Marc Johnson</div> </div> + +<p align="right"> +<font size="-2">by Marc Johnson</font> +</p> </div> +<!--+ + |end content + +--> +<div class="clearboth"> </div> </div> -</td> -<!--================= end Content ==================--> -</tr> -</tbody> -</table> -<!--================= end Main ==================--> -<!--================= start Footer ==================--> <div id="footer"> -<table summary="footer" cellspacing="0" cellpadding="4" width="100%" border="0"> -<tbody> -<tr> -<!--================= start Copyright ==================--> -<td colspan="2"> -<div align="center"> +<!--+ + |start bottomstrip + +--> +<div class="lastmodified"> +<script type="text/javascript"><!-- +document.write("Last Published: " + document.lastModified); +// --></script> +</div> <div class="copyright"> - Copyright © 2002-2018 The Apache Software Foundation. All rights reserved.<br> - Apache, Apache POI, and the Apache POI logo are registered trademarks or - trademarks of The Apache Software Foundation in the U.S. and/or other countries. - </div> -</div> -</td> -<!--================= end Copyright ==================--> -</tr> -<tr> -<td align="left"> -<!--================= start Host ==================--> -<!--================= end Host ==================--></td><td align="right"> -<!--================= start Credits ==================--> -<div align="right"> -<div class="credit"></div> + Copyright © + 2001-2018 <a href="https://www.apache.org/">The Apache Software Foundation</a> </div> -<!--================= end Credits ==================--> -</td> -</tr> -</tbody> -</table> +<div id="feedback"> + Send feedback about the website to: + <a id="feedbackto" href="mailto:[email protected]?subject=Feedback%C2%A0components/poifs/how-to.html">[email protected]</a> +</div> +<!--+ + |end bottomstrip + +--> </div> -<!--================= end Footer ==================--> </body> </html>
Added: poi/site/publish/components/poifs/images/BlockClassDiagram.gif URL: http://svn.apache.org/viewvc/poi/site/publish/components/poifs/images/BlockClassDiagram.gif?rev=1836244&view=auto ============================================================================== Binary file - no diff available. Propchange: poi/site/publish/components/poifs/images/BlockClassDiagram.gif ------------------------------------------------------------------------------ svn:mime-type = application/octet-stream Added: poi/site/publish/components/poifs/images/POIFSAddDocument.gif URL: http://svn.apache.org/viewvc/poi/site/publish/components/poifs/images/POIFSAddDocument.gif?rev=1836244&view=auto ============================================================================== Binary file - no diff available. Propchange: poi/site/publish/components/poifs/images/POIFSAddDocument.gif ------------------------------------------------------------------------------ svn:mime-type = application/octet-stream Added: poi/site/publish/components/poifs/images/POIFSClassDiagram.gif URL: http://svn.apache.org/viewvc/poi/site/publish/components/poifs/images/POIFSClassDiagram.gif?rev=1836244&view=auto ============================================================================== Binary file - no diff available. Propchange: poi/site/publish/components/poifs/images/POIFSClassDiagram.gif ------------------------------------------------------------------------------ svn:mime-type = application/octet-stream Added: poi/site/publish/components/poifs/images/POIFSInitialization.gif URL: http://svn.apache.org/viewvc/poi/site/publish/components/poifs/images/POIFSInitialization.gif?rev=1836244&view=auto ============================================================================== Binary file - no diff available. Propchange: poi/site/publish/components/poifs/images/POIFSInitialization.gif ------------------------------------------------------------------------------ svn:mime-type = application/octet-stream Added: poi/site/publish/components/poifs/images/POIFSLifeCycle.gif URL: http://svn.apache.org/viewvc/poi/site/publish/components/poifs/images/POIFSLifeCycle.gif?rev=1836244&view=auto ============================================================================== Binary file - no diff available. Propchange: poi/site/publish/components/poifs/images/POIFSLifeCycle.gif ------------------------------------------------------------------------------ svn:mime-type = application/octet-stream Added: poi/site/publish/components/poifs/images/POIFSPropertyTablePreWrite.gif URL: http://svn.apache.org/viewvc/poi/site/publish/components/poifs/images/POIFSPropertyTablePreWrite.gif?rev=1836244&view=auto ============================================================================== Binary file - no diff available. Propchange: poi/site/publish/components/poifs/images/POIFSPropertyTablePreWrite.gif ------------------------------------------------------------------------------ svn:mime-type = application/octet-stream Added: poi/site/publish/components/poifs/images/POIFSRootPropertyPreWrite.gif URL: http://svn.apache.org/viewvc/poi/site/publish/components/poifs/images/POIFSRootPropertyPreWrite.gif?rev=1836244&view=auto ============================================================================== Binary file - no diff available. Propchange: poi/site/publish/components/poifs/images/POIFSRootPropertyPreWrite.gif ------------------------------------------------------------------------------ svn:mime-type = application/octet-stream Added: poi/site/publish/components/poifs/images/POIFSWriteFilesystem.gif URL: http://svn.apache.org/viewvc/poi/site/publish/components/poifs/images/POIFSWriteFilesystem.gif?rev=1836244&view=auto ============================================================================== Binary file - no diff available. Propchange: poi/site/publish/components/poifs/images/POIFSWriteFilesystem.gif ------------------------------------------------------------------------------ svn:mime-type = application/octet-stream Added: poi/site/publish/components/poifs/images/PropertyTableClassDiagram.gif URL: http://svn.apache.org/viewvc/poi/site/publish/components/poifs/images/PropertyTableClassDiagram.gif?rev=1836244&view=auto ============================================================================== Binary file - no diff available. Propchange: poi/site/publish/components/poifs/images/PropertyTableClassDiagram.gif ------------------------------------------------------------------------------ svn:mime-type = application/octet-stream Added: poi/site/publish/components/poifs/images/utilClasses.gif URL: http://svn.apache.org/viewvc/poi/site/publish/components/poifs/images/utilClasses.gif?rev=1836244&view=auto ============================================================================== Binary file - no diff available. Propchange: poi/site/publish/components/poifs/images/utilClasses.gif ------------------------------------------------------------------------------ svn:mime-type = application/octet-stream Modified: poi/site/publish/components/poifs/index.html URL: http://svn.apache.org/viewvc/poi/site/publish/components/poifs/index.html?rev=1836244&r1=1836243&r2=1836244&view=diff ============================================================================== --- poi/site/publish/components/poifs/index.html (original) +++ poi/site/publish/components/poifs/index.html Wed Jul 18 23:27:21 2018 @@ -1,147 +1,300 @@ -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> +<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <META http-equiv="Content-Type" content="text/html; charset=UTF-8"> -<!--*** This is a generated file. Do not edit. ***--> -<link rel="stylesheet" href="../skin/tigris.css" type="text/css"> -<link rel="stylesheet" href="../skin/mysite.css" type="text/css"> -<link rel="stylesheet" href="../skin/site.css" type="text/css"> -<link media="print" rel="stylesheet" href="../skin/print.css" type="text/css"> +<meta content="Apache Forrest" name="Generator"> +<meta name="Forrest-version" content="0.9"> +<meta name="Forrest-skin-name" content="pelt"> <title>Apache POI - POIFS - Java implementation of the OLE 2 Compound Document format</title> +<link type="text/css" href="../../skin/basic.css" rel="stylesheet"> +<link media="screen" type="text/css" href="../../skin/screen.css" rel="stylesheet"> +<link media="print" type="text/css" href="../../skin/print.css" rel="stylesheet"> +<link type="text/css" href="../../skin/profile.css" rel="stylesheet"> +<script src="../../skin/getBlank.js" language="javascript" type="text/javascript"></script><script src="../../skin/getMenu.js" language="javascript" type="text/javascript"></script><script src="../../skin/fontsize.js" language="javascript" type="text/javascript"></script> +<link rel="shortcut icon" href="../../images/favicon.ico"> </head> -<body bgcolor="white" class="composite"> -<!--================= start Banner ==================--> -<div id="banner"> -<table width="100%" cellpadding="8" cellspacing="0" summary="banner" border="0"> -<tbody> -<tr> -<!--================= start Group Logo ==================--> -<td width="50%" align="left"> -<div class="groupLogo"> -<a href="https://www.apache.org"><img border="0" class="logoImage" alt="The Apache Software Foundation" src="../resources/images/asf_logo.png"></a> -</div> -</td> -<!--================= end Group Logo ==================--> -<!--================= start Project Logo ==================--><td width="50%" align="right"> -<div align="right" class="projectLogo"> -<a href="https://donate.apache.org/"><img border="0" class="logoImage" alt="Support Apache" src="../resources/images/support-asf.png" width="120" height="120" title="Your donation helps The Apache Software Foundation ensure its community-driven software remains available to billions of users at absolutely no cost."></a><a href="https://poi.apache.org/"><img border="0" class="logoImage" alt="Apache POI" src="../resources/images/pb-poi.png" width="120" height="120" title="Apache POI - the Java API for Microsoft Documents"></a> -</div> -</td> -<!--================= end Project Logo ==================--> -</tr> -</tbody> -</table> -</div> -<!--================= end Banner ==================--> -<!--================= start Main ==================--> -<table width="100%" cellpadding="0" cellspacing="0" border="0" summary="nav" id="breadcrumbs"> -<tbody> -<!--================= start Status ==================--> -<tr class="status"> -<td> -<!--================= start BreadCrumb ==================--><a href="https://www.apache.org/">Apache</a> | <a href="https://poi.apache.org/">POI</a><a href=""></a> -<!--================= end BreadCrumb ==================--></td><td id="tabs"> -<!--================= start Tabs ==================--> -<div class="tab"> -<span class="selectedTab"><a class="base-selected" href="../index.html">Home</a></span> | <script language="Javascript" type="text/javascript"> -function printit() { -if (window.print) { - window.print() ; -} else { - var WebBrowser = '<OBJECT ID="WebBrowser1" WIDTH="0" HEIGHT="0" CLASSID="CLSID:8856F961-340A-11D0-A96B-00C04FD705A2"></OBJECT>'; -document.body.insertAdjacentHTML('beforeEnd', WebBrowser); - WebBrowser1.ExecWB(6, 2);//Use a 1 vs. a 2 for a prompting dialog box WebBrowser1.outerHTML = ""; -} -} -</script><script language="Javascript" type="text/javascript"> -var NS = (navigator.appName == "Netscape"); -var VERSION = parseInt(navigator.appVersion); -if (VERSION > 3) { - document.write(' <a title="PRINT this page OUT" href="javascript:printit()">PRINT</a>'); -} -</script> -</div> -<!--================= end Tabs ==================--> -</td> -</tr> -</tbody> -</table> -<!--================= end Status ==================--> -<table id="main" width="100%" cellpadding="8" cellspacing="0" summary="" border="0"> -<tbody> -<tr valign="top"> -<!--================= start Menu ==================--> -<td id="leftcol"> -<div id="navcolumn"> -<div class="menuBar"> -<div class="menu"> -<span class="menuLabel">Apache POI</span> -<div class="menuItem"> -<a href="../index.html">Top</a> -</div> -</div> -<div class="menu"> -<span class="menuLabel">POIFS</span> -<div class="menuItem"> -<span class="menuSelected">Overview</span> -</div> -<div class="menuItem"> -<a href="how-to.html">How To</a> -</div> -<div class="menuItem"> -<a href="embeded.html">Embedded Documents</a> -</div> -<div class="menuItem"> -<a href="fileformat.html">File System Documentation</a> -</div> -<div class="menuItem"> -<a href="usecases.html">Use Cases</a> -</div> -</div> -<center> -<a href="https://www.apache.org/events/current-event.html"><img src="https://www.apache.org/events/current-event-125x125.png"></a> -</center> -</div> -</div> -<form target="_blank" action="https://www.google.com/search" method="get"> -<table summary="search" border="0" cellspacing="0" cellpadding="0"> -<tr> -<td><img height="1" width="1" alt="" src="../skin/images/spacer.gif" class="spacer"></td><td nowrap="nowrap"> - Search Apache POI<br> -<input value="poi.apache.org" name="sitesearch" type="hidden"><input size="10" name="q" id="query" type="text"><img height="1" width="5" alt="" src="../skin/images/spacer.gif" class="spacer"><input name="Search" value="GO" type="submit"></td><td><img height="1" width="1" alt="" src="../skin/images/spacer.gif" class="spacer"></td> -</tr> -<tr> -<td colspan="3"><img height="7" width="1" alt="" src="../skin/images/spacer.gif" class="spacer"></td> -</tr> -<tr> -<td class="bottom-left-thick"></td><td bgcolor="#a5b6c6"><img height="1" width="1" alt="" src="../skin/images/spacer.gif" class="spacer"></td><td class="bottom-right-thick"></td> -</tr> -</table> +<body onload="init()"> +<script type="text/javascript">ndeSetTextSize();</script> +<div id="top"> +<!--+ + |breadtrail + +--> +<div class="breadtrail"> +<a href="https://www.apache.org">Apache Software Foundation</a> > <a href="https://poi.apache.org">Apache POI</a><script src="../../skin/breadcrumbs.js" language="JavaScript" type="text/javascript"></script> +</div> +<!--+ + |header + +--> +<div class="header"> +<!--+ + |start group logo + +--> +<div class="grouplogo"> +<a href="https://www.apache.org"><img class="logoImage" alt="Apache Software Foundation" src="../../images/group-logo.png" title="The Apache Software Foundation is a cornerstone of the modern Open Source software ecosystem – supporting some of the most widely used and important software solutions powering today's Internet economy."></a> +</div> +<!--+ + |end group logo + +--> +<!--+ + |start Project Logo + +--> +<div class="projectlogo"> +<a href="https://poi.apache.org"><img class="logoImage" alt="Apache POI" src="../../images/project-logo.png" title="Apache POI is well-known in the Java field as a library for reading and writing Microsoft Office file formats, such as Excel, PowerPoint, Word, Visio, Publisher and Outlook. It supports both the older (OLE2) and new (OOXML - Office Open XML) formats."></a> +</div> +<!--+ + |end Project Logo + +--> +<!--+ + |start Search + +--> +<div class="searchbox"> +<form action="http://www.google.com/search" method="get" class="roundtopsmall"> +<input value="poi.apache.org" name="sitesearch" type="hidden"><input onFocus="getBlank (this, 'Search the site with google');" size="25" name="q" id="query" type="text" value="Search the site with google"> + <input name="Search" value="Search" type="submit"> </form> -</td> -<!--================= end Menu ==================--> -<!--================= start Content ==================--><td> -<div id="bodycol"> -<div class="app"> -<div align="center"> -<h1>Apache POI - POIFS - Java implementation of the OLE 2 Compound Document format</h1> </div> -<div class="h3"> - - +<!--+ + |end search + +--> +<!--+ + |start Tabs + +--> +<ul id="tabs"> +<li> +<a class="unselected" href="../../index.html">Home</a> +</li> +<li> +<a class="unselected" href="../../help/index.html">Help</a> +</li> +<li class="current"> +<a class="selected" href="../../components/index.html">Component APIs</a> +</li> +<li> +<a class="unselected" href="../../devel/index.html">Getting Involved</a> +</li> +</ul> +<!--+ + |end Tabs + +--> +</div> +</div> +<div id="main"> +<div id="publishedStrip"> +<!--+ + |start Subtabs + +--> +<div id="level2tabs"></div> +<!--+ + |end Endtabs + +--> +<script type="text/javascript"><!-- +document.write("Last Published: " + document.lastModified); +// --></script> +</div> +<!--+ + |breadtrail + +--> +<div class="breadtrail"> + + + </div> +<!--+ + |start Menu, mainarea + +--> +<!--+ + |start Menu + +--> +<div id="menu"> +<div onclick="SwitchMenu('menu_selected_1.1', '../../skin/')" id="menu_selected_1.1Title" class="menutitle" style="background-image: url('../../skin/images/chapter_open.gif');">Component APIs</div> +<div id="menu_selected_1.1" class="selectedmenuitemgroup" style="display: block;"> +<div class="menuitem"> +<a href="../../components/index.html">Overview</a> +</div> +<div class="menuitem"> +<a href="../../apidocs/index.html">Javadocs</a> +</div> +<div onclick="SwitchMenu('menu_1.1.3', '../../skin/')" id="menu_1.1.3Title" class="menutitle">Excel (HSSF/XSSF)</div> +<div id="menu_1.1.3" class="menuitemgroup"> +<div class="menuitem"> +<a href="../../components/spreadsheet/index.html">Overview</a> +</div> +<div class="menuitem"> +<a href="../../components/spreadsheet/quick-guide.html">Quick Guide</a> +</div> +<div class="menuitem"> +<a href="../../components/spreadsheet/how-to.html">HOWTO</a> +</div> +<div class="menuitem"> +<a href="../../components/spreadsheet/converting.html">HSSF to SS Converting</a> +</div> +<div class="menuitem"> +<a href="../../components/spreadsheet/formula.html">Formula Support</a> +</div> +<div class="menuitem"> +<a href="../../components/spreadsheet/eval.html">Formula Evaluation</a> +</div> +<div class="menuitem"> +<a href="../../components/spreadsheet/eval-devguide.html">Eval Dev Guide</a> +</div> +<div class="menuitem"> +<a href="../../components/spreadsheet/examples.html">Examples</a> +</div> +<div class="menuitem"> +<a href="../../components/spreadsheet/use-case.html">Use Case</a> +</div> +<div class="menuitem"> +<a href="../../components/spreadsheet/diagrams.html">Pictorial Docs</a> +</div> +<div class="menuitem"> +<a href="../../components/spreadsheet/limitations.html">Limitations</a> +</div> +<div class="menuitem"> +<a href="../../components/spreadsheet/user-defined-functions.html">User Defined Functions</a> +</div> +<div class="menuitem"> +<a href="../../components/spreadsheet/excelant.html">ExcelAnt Tests</a> +</div> +<div class="menuitem"> +<a href="../../components/spreadsheet/hacking-hssf.html">Hacking HSSF</a> +</div> +<div class="menuitem"> +<a href="../../components/spreadsheet/record-generator.html">Record Generator</a> +</div> +<div class="menuitem"> +<a href="../../components/spreadsheet/chart.html">Charts</a> +</div> +</div> +<div onclick="SwitchMenu('menu_1.1.4', '../../skin/')" id="menu_1.1.4Title" class="menutitle">PowerPoint (HSLF/XSLF)</div> +<div id="menu_1.1.4" class="menuitemgroup"> +<div class="menuitem"> +<a href="../../components/slideshow/index.html">Overview</a> +</div> +<div class="menuitem"> +<a href="../../components/slideshow/quick-guide.html">Quick Guide</a> +</div> +<div class="menuitem"> +<a href="../../components/slideshow/how-to-shapes.html">HSLF Cookbook</a> +</div> +<div class="menuitem"> +<a href="../../components/slideshow/xslf-cookbook.html">XSLF Cookbook</a> +</div> +<div class="menuitem"> +<a href="../../components/slideshow/ppt-file-format.html">PPT File Format</a> +</div> +</div> +<div onclick="SwitchMenu('menu_1.1.5', '../../skin/')" id="menu_1.1.5Title" class="menutitle">Word (HWPF/XWPF)</div> +<div id="menu_1.1.5" class="menuitemgroup"> +<div class="menuitem"> +<a href="../../components/document/index.html">Overview</a> +</div> +<div class="menuitem"> +<a href="../../components/document/quick-guide.html">HWPF Quick Guide</a> +</div> +<div class="menuitem"> +<a href="../../components/document/quick-guide-xwpf.html">XWPF Quick Guide</a> +</div> +<div class="menuitem"> +<a href="../../components/document/docoverview.html">HWPF Format</a> +</div> +<div class="menuitem"> +<a href="../../components/document/projectplan.html">HWPF Project plan</a> +</div> +</div> +<div class="menuitem"> +<a href="../../components/hsmf/index.html">Outlook (HSMF)</a> +</div> +<div class="menuitem"> +<a href="../../components/diagram/index.html">Visio (HDGF+XDGF)</a> +</div> +<div onclick="SwitchMenu('menu_1.1.8', '../../skin/')" id="menu_1.1.8Title" class="menutitle">Publisher (HPBF)</div> +<div id="menu_1.1.8" class="menuitemgroup"> +<div class="menuitem"> +<a href="../../components/hpbf/index.html">Overview</a> +</div> +<div class="menuitem"> +<a href="../../components/hpbf/file-format.html">File Format</a> +</div> +</div> +<div onclick="SwitchMenu('menu_selected_1.1.9', '../../skin/')" id="menu_selected_1.1.9Title" class="menutitle" style="background-image: url('../../skin/images/chapter_open.gif');">OLE2 Filesystem (POIFS)</div> +<div id="menu_selected_1.1.9" class="selectedmenuitemgroup" style="display: block;"> +<div class="menupage"> +<div class="menupagetitle">Overview</div> +</div> +<div class="menuitem"> +<a href="../../components/poifs/how-to.html">How To</a> +</div> +<div class="menuitem"> +<a href="../../components/poifs/embeded.html">Embedded Documents</a> +</div> +<div class="menuitem"> +<a href="../../components/poifs/fileformat.html">File System Documentation</a> +</div> +<div class="menuitem"> +<a href="../../components/poifs/usecases.html">Use Cases</a> +</div> +<div class="menuitem"> +<a href="../../components/poifs/design.html">Design</a> +</div> +</div> +<div onclick="SwitchMenu('menu_1.1.10', '../../skin/')" id="menu_1.1.10Title" class="menutitle">OLE2 Document Props (HPSF)</div> +<div id="menu_1.1.10" class="menuitemgroup"> +<div class="menuitem"> +<a href="../../components/hpsf/index.html">Overview</a> +</div> +<div class="menuitem"> +<a href="../../components/hpsf/how-to.html">How To</a> +</div> +<div class="menuitem"> +<a href="../../components/hpsf/thumbnails.html">Thumbnails</a> +</div> +<div class="menuitem"> +<a href="../../components/hpsf/internals.html">Internals</a> +</div> +<div class="menuitem"> +<a href="../../components/hpsf/todo.html">To Do</a> +</div> +</div> +<div class="menuitem"> +<a href="../../components/hmef/index.html">TNEF (HMEF) for winmail.dat</a> +</div> +<div class="menuitem"> +<a href="../../components/oxml4j/index.html">OpenXML4J (OOXML)</a> +</div> +<div class="menuitem"> +<a href="../../components/logging.html">Logging framework</a> +</div> +</div> +<div id="credit"> +<hr> +<a href="https://www.apache.org/events/current-event.html"><img border="0" title="Apache Event" alt="Apache Event - logo" src="http://www.apache.org/events/current-event-125x125.png" style="width: 125px;height: 125px;"></a> +</div> +<div id="roundbottom"> +<img style="display: none" class="corner" height="15" width="15" alt="" src="../../skin/images/rc-b-l-15-1body-2menu-3menu.png"></div> +<!--+ + |alternative credits + +--> +<div id="credit2"> +<a href="https://donate.apache.org/"><img border="0" title="Support Apache" alt="Support Apache - logo" src="../../images/support-asf.png" style="width: 125px;height: 125px;"></a> +</div> +</div> +<!--+ + |end Menu + +--> +<!--+ + |start content + +--> +<div id="content"> +<h1>Apache POI - POIFS - Java implementation of the OLE 2 Compound Document format</h1> +<h3>Overview</h3> +<div id="front-matter"></div> <a name="Overview"></a> -<div class="h3"> -<h3>Overview<a title="Permanent link" class="headerlink" href="#Overview">#</a> -</h3> -</div> - +<h2 class="boxed">Overview</h2> +<div class="section"> <p>POIFS is a pure Java implementation of the OLE 2 Compound Document format.</p> - <p>By definition, all APIs developed by the POI project are based somehow on the POIFS API.</p> - <p>A common confusion is on just what POIFS buys you or what OLE 2 Compound Document format is exactly. POIFS does not buy you DOC, or XLS, but is necessary to generate or read DOC or XLS @@ -154,7 +307,6 @@ if (VERSION > 3) { POIFS, most of them attempt to abstract you from it. There are some circumstances where this is not possible, but as a general rule this is true.</p> - <p>If you're an end user type just looking to generate XLS files, then you'd be looking for HSSF not POIFS; however, if you have legacy code that uses MFC property sets, POIFS is @@ -162,53 +314,40 @@ if (VERSION > 3) { use POIFS but ultimately if you use technologies that come from the POI project, you're using POIFS underneath. Perhaps we should have a branding campaign "POIFS Inside!". ;-)</p> - - - - -<div id="authors" align="right">by Andrew C. Oliver, Nicola Ken Barozzi</div> -</div> </div> + +<p align="right"> +<font size="-2">by Andrew C. Oliver, Nicola Ken Barozzi</font> +</p> +</div> +<!--+ + |end content + +--> +<div class="clearboth"> </div> </div> -</td> -<!--================= end Content ==================--> -</tr> -</tbody> -</table> -<!--================= end Main ==================--> -<!--================= start Footer ==================--> <div id="footer"> -<table summary="footer" cellspacing="0" cellpadding="4" width="100%" border="0"> -<tbody> -<tr> -<!--================= start Copyright ==================--> -<td colspan="2"> -<div align="center"> +<!--+ + |start bottomstrip + +--> +<div class="lastmodified"> +<script type="text/javascript"><!-- +document.write("Last Published: " + document.lastModified); +// --></script> +</div> <div class="copyright"> - Copyright © 2002-2018 The Apache Software Foundation. All rights reserved.<br> - Apache, Apache POI, and the Apache POI logo are registered trademarks or - trademarks of The Apache Software Foundation in the U.S. and/or other countries. - </div> -</div> -</td> -<!--================= end Copyright ==================--> -</tr> -<tr> -<td align="left"> -<!--================= start Host ==================--> -<!--================= end Host ==================--></td><td align="right"> -<!--================= start Credits ==================--> -<div align="right"> -<div class="credit"> -<a href="http://validator.w3.org/check/referer"><img width="88" height="31" alt="Valid HTML 4.01!" src="../skin/images/valid-html401.png" class="logoImage"></a><a href="http://jigsaw.w3.org/css-validator/"><img width="88" height="31" alt="Valid CSS!" src="../skin/images/vcss.png" class="logoImage"></a><a href="https://forrest.apache.org/"><img border="0" class="logoImage" alt="Built with Apache Forrest" src="../skin/images/built-with-forrest-button.png" width="88" height="31"></a> -</div> -</div> -<!--================= end Credits ==================--> -</td> -</tr> -</tbody> -</table> + Copyright © + 2001-2018 <a href="https://www.apache.org/">The Apache Software Foundation</a> +</div> +<div id="logos"> +<a href="http://validator.w3.org/check/referer"><img style="height: 31px; width: 88px;" title="Valid HTML 4.01!" alt="Valid HTML 4.01!" src="../../skin/images/valid-html401.png" class="logoImage"></a><a href="http://jigsaw.w3.org/css-validator/check/referer"><img style="height: 31px; width: 88px;" title="Valid CSS!" alt="Valid CSS!" src="../../skin/images/vcss.png" class="logoImage"></a> +</div> +<div id="feedback"> + Send feedback about the website to: + <a id="feedbackto" href="mailto:[email protected]?subject=Feedback%C2%A0components/poifs/index.html">[email protected]</a> +</div> +<!--+ + |end bottomstrip + +--> </div> -<!--================= end Footer ==================--> </body> </html> --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
