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 2016/09/29 22:07:56 UTC
svn commit: r1762842 [13/45] - in /poi/site/publish: ./ apidocs/
apidocs/org/apache/poi/ apidocs/org/apache/poi/class-use/
apidocs/org/apache/poi/ddf/class-use/ apidocs/org/apache/poi/hpsf/class-use/
apidocs/org/apache/poi/hpsf/wellknown/class-use/ api...
Modified: poi/site/publish/apidocs/org/apache/poi/openxml4j/opc/class-use/TargetMode.html
URL: http://svn.apache.org/viewvc/poi/site/publish/apidocs/org/apache/poi/openxml4j/opc/class-use/TargetMode.html?rev=1762842&r1=1762841&r2=1762842&view=diff
==============================================================================
--- poi/site/publish/apidocs/org/apache/poi/openxml4j/opc/class-use/TargetMode.html (original)
+++ poi/site/publish/apidocs/org/apache/poi/openxml4j/opc/class-use/TargetMode.html Thu Sep 29 22:07:51 2016
@@ -121,15 +121,15 @@ the order they are declared.</div>
<tbody>
<tr class="altColor">
<td class="colFirst"><code><a href="../../../../../../org/apache/poi/openxml4j/opc/PackageRelationship.html" title="class in org.apache.poi.openxml4j.opc">PackageRelationship</a></code></td>
-<td class="colLast"><span class="strong">PackagePart.</span><code><strong><a href="../../../../../../org/apache/poi/openxml4j/opc/PackagePart.html#addRelationship(org.apache.poi.openxml4j.opc.PackagePartName,%20org.apache.poi.openxml4j.opc.TargetMode,%20java.lang.String)">addRelationship</a></strong>(<a href="../../../../../../org/apache/poi/openxml4j/opc/PackagePartName.html" title="class in org.apache.poi.openxml4j.opc">PackagePartName</a> targetPartName,
+<td class="colLast"><span class="strong">OPCPackage.</span><code><strong><a href="../../../../../../org/apache/poi/openxml4j/opc/OPCPackage.html#addRelationship(org.apache.poi.openxml4j.opc.PackagePartName,%20org.apache.poi.openxml4j.opc.TargetMode,%20java.lang.String)">addRelationship</a></strong>(<a href="../../../../../../org/apache/poi/openxml4j/opc/PackagePartName.html" title="class in org.apache.poi.openxml4j.opc">PackagePartName</a> targetPartName,
<a href="../../../../../../org/apache/poi/openxml4j/opc/TargetMode.html" title="enum in org.apache.poi.openxml4j.opc">TargetMode</a> targetMode,
java.lang.String relationshipType)</code>
-<div class="block">Add a relationship to a part (except relationships part).</div>
+<div class="block">Add a package relationship.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code><a href="../../../../../../org/apache/poi/openxml4j/opc/PackageRelationship.html" title="class in org.apache.poi.openxml4j.opc">PackageRelationship</a></code></td>
-<td class="colLast"><span class="strong">RelationshipSource.</span><code><strong><a href="../../../../../../org/apache/poi/openxml4j/opc/RelationshipSource.html#addRelationship(org.apache.poi.openxml4j.opc.PackagePartName,%20org.apache.poi.openxml4j.opc.TargetMode,%20java.lang.String)">addRelationship</a></strong>(<a href="../../../../../../org/apache/poi/openxml4j/opc/PackagePartName.html" title="class in org.apache.poi.openxml4j.opc">PackagePartName</a> targetPartName,
+<td class="colLast"><span class="strong">PackagePart.</span><code><strong><a href="../../../../../../org/apache/poi/openxml4j/opc/PackagePart.html#addRelationship(org.apache.poi.openxml4j.opc.PackagePartName,%20org.apache.poi.openxml4j.opc.TargetMode,%20java.lang.String)">addRelationship</a></strong>(<a href="../../../../../../org/apache/poi/openxml4j/opc/PackagePartName.html" title="class in org.apache.poi.openxml4j.opc">PackagePartName</a> targetPartName,
<a href="../../../../../../org/apache/poi/openxml4j/opc/TargetMode.html" title="enum in org.apache.poi.openxml4j.opc">TargetMode</a> targetMode,
java.lang.String relationshipType)</code>
<div class="block">Add a relationship to a part (except relationships part).</div>
@@ -137,24 +137,24 @@ the order they are declared.</div>
</tr>
<tr class="altColor">
<td class="colFirst"><code><a href="../../../../../../org/apache/poi/openxml4j/opc/PackageRelationship.html" title="class in org.apache.poi.openxml4j.opc">PackageRelationship</a></code></td>
-<td class="colLast"><span class="strong">OPCPackage.</span><code><strong><a href="../../../../../../org/apache/poi/openxml4j/opc/OPCPackage.html#addRelationship(org.apache.poi.openxml4j.opc.PackagePartName,%20org.apache.poi.openxml4j.opc.TargetMode,%20java.lang.String)">addRelationship</a></strong>(<a href="../../../../../../org/apache/poi/openxml4j/opc/PackagePartName.html" title="class in org.apache.poi.openxml4j.opc">PackagePartName</a> targetPartName,
+<td class="colLast"><span class="strong">RelationshipSource.</span><code><strong><a href="../../../../../../org/apache/poi/openxml4j/opc/RelationshipSource.html#addRelationship(org.apache.poi.openxml4j.opc.PackagePartName,%20org.apache.poi.openxml4j.opc.TargetMode,%20java.lang.String)">addRelationship</a></strong>(<a href="../../../../../../org/apache/poi/openxml4j/opc/PackagePartName.html" title="class in org.apache.poi.openxml4j.opc">PackagePartName</a> targetPartName,
<a href="../../../../../../org/apache/poi/openxml4j/opc/TargetMode.html" title="enum in org.apache.poi.openxml4j.opc">TargetMode</a> targetMode,
java.lang.String relationshipType)</code>
-<div class="block">Add a package relationship.</div>
+<div class="block">Add a relationship to a part (except relationships part).</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code><a href="../../../../../../org/apache/poi/openxml4j/opc/PackageRelationship.html" title="class in org.apache.poi.openxml4j.opc">PackageRelationship</a></code></td>
-<td class="colLast"><span class="strong">PackagePart.</span><code><strong><a href="../../../../../../org/apache/poi/openxml4j/opc/PackagePart.html#addRelationship(org.apache.poi.openxml4j.opc.PackagePartName,%20org.apache.poi.openxml4j.opc.TargetMode,%20java.lang.String,%20java.lang.String)">addRelationship</a></strong>(<a href="../../../../../../org/apache/poi/openxml4j/opc/PackagePartName.html" title="class in org.apache.poi.openxml4j.opc">PackagePartName</a> targetPartName,
+<td class="colLast"><span class="strong">OPCPackage.</span><code><strong><a href="../../../../../../org/apache/poi/openxml4j/opc/OPCPackage.html#addRelationship(org.apache.poi.openxml4j.opc.PackagePartName,%20org.apache.poi.openxml4j.opc.TargetMode,%20java.lang.String,%20java.lang.String)">addRelationship</a></strong>(<a href="../../../../../../org/apache/poi/openxml4j/opc/PackagePartName.html" title="class in org.apache.poi.openxml4j.opc">PackagePartName</a> targetPartName,
<a href="../../../../../../org/apache/poi/openxml4j/opc/TargetMode.html" title="enum in org.apache.poi.openxml4j.opc">TargetMode</a> targetMode,
java.lang.String relationshipType,
- java.lang.String id)</code>
-<div class="block">Add a relationship to a part (except relationships part).</div>
+ java.lang.String relID)</code>
+<div class="block">Add a relationship to the package (except relationships part).</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code><a href="../../../../../../org/apache/poi/openxml4j/opc/PackageRelationship.html" title="class in org.apache.poi.openxml4j.opc">PackageRelationship</a></code></td>
-<td class="colLast"><span class="strong">RelationshipSource.</span><code><strong><a href="../../../../../../org/apache/poi/openxml4j/opc/RelationshipSource.html#addRelationship(org.apache.poi.openxml4j.opc.PackagePartName,%20org.apache.poi.openxml4j.opc.TargetMode,%20java.lang.String,%20java.lang.String)">addRelationship</a></strong>(<a href="../../../../../../org/apache/poi/openxml4j/opc/PackagePartName.html" title="class in org.apache.poi.openxml4j.opc">PackagePartName</a> targetPartName,
+<td class="colLast"><span class="strong">PackagePart.</span><code><strong><a href="../../../../../../org/apache/poi/openxml4j/opc/PackagePart.html#addRelationship(org.apache.poi.openxml4j.opc.PackagePartName,%20org.apache.poi.openxml4j.opc.TargetMode,%20java.lang.String,%20java.lang.String)">addRelationship</a></strong>(<a href="../../../../../../org/apache/poi/openxml4j/opc/PackagePartName.html" title="class in org.apache.poi.openxml4j.opc">PackagePartName</a> targetPartName,
<a href="../../../../../../org/apache/poi/openxml4j/opc/TargetMode.html" title="enum in org.apache.poi.openxml4j.opc">TargetMode</a> targetMode,
java.lang.String relationshipType,
java.lang.String id)</code>
@@ -163,11 +163,11 @@ the order they are declared.</div>
</tr>
<tr class="rowColor">
<td class="colFirst"><code><a href="../../../../../../org/apache/poi/openxml4j/opc/PackageRelationship.html" title="class in org.apache.poi.openxml4j.opc">PackageRelationship</a></code></td>
-<td class="colLast"><span class="strong">OPCPackage.</span><code><strong><a href="../../../../../../org/apache/poi/openxml4j/opc/OPCPackage.html#addRelationship(org.apache.poi.openxml4j.opc.PackagePartName,%20org.apache.poi.openxml4j.opc.TargetMode,%20java.lang.String,%20java.lang.String)">addRelationship</a></strong>(<a href="../../../../../../org/apache/poi/openxml4j/opc/PackagePartName.html" title="class in org.apache.poi.openxml4j.opc">PackagePartName</a> targetPartName,
+<td class="colLast"><span class="strong">RelationshipSource.</span><code><strong><a href="../../../../../../org/apache/poi/openxml4j/opc/RelationshipSource.html#addRelationship(org.apache.poi.openxml4j.opc.PackagePartName,%20org.apache.poi.openxml4j.opc.TargetMode,%20java.lang.String,%20java.lang.String)">addRelationship</a></strong>(<a href="../../../../../../org/apache/poi/openxml4j/opc/PackagePartName.html" title="class in org.apache.poi.openxml4j.opc">PackagePartName</a> targetPartName,
<a href="../../../../../../org/apache/poi/openxml4j/opc/TargetMode.html" title="enum in org.apache.poi.openxml4j.opc">TargetMode</a> targetMode,
java.lang.String relationshipType,
- java.lang.String relID)</code>
-<div class="block">Add a relationship to the package (except relationships part).</div>
+ java.lang.String id)</code>
+<div class="block">Add a relationship to a part (except relationships part).</div>
</td>
</tr>
<tr class="altColor">
@@ -180,20 +180,20 @@ the order they are declared.</div>
</tr>
<tr class="rowColor">
<td class="colFirst"><code><a href="../../../../../../org/apache/poi/openxml4j/opc/PackageRelationship.html" title="class in org.apache.poi.openxml4j.opc">PackageRelationship</a></code></td>
-<td class="colLast"><span class="strong">PackageRelationshipCollection.</span><code><strong><a href="../../../../../../org/apache/poi/openxml4j/opc/PackageRelationshipCollection.html#addRelationship(java.net.URI,%20org.apache.poi.openxml4j.opc.TargetMode,%20java.lang.String,%20java.lang.String)">addRelationship</a></strong>(java.net.URI targetUri,
+<td class="colLast"><span class="strong">PackagePart.</span><code><strong><a href="../../../../../../org/apache/poi/openxml4j/opc/PackagePart.html#addRelationship(java.net.URI,%20org.apache.poi.openxml4j.opc.TargetMode,%20java.lang.String,%20java.lang.String)">addRelationship</a></strong>(java.net.URI targetURI,
<a href="../../../../../../org/apache/poi/openxml4j/opc/TargetMode.html" title="enum in org.apache.poi.openxml4j.opc">TargetMode</a> targetMode,
java.lang.String relationshipType,
java.lang.String id)</code>
-<div class="block">Add a relationship to the collection.</div>
+<div class="block">Add a relationship to a part (except relationships part).</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code><a href="../../../../../../org/apache/poi/openxml4j/opc/PackageRelationship.html" title="class in org.apache.poi.openxml4j.opc">PackageRelationship</a></code></td>
-<td class="colLast"><span class="strong">PackagePart.</span><code><strong><a href="../../../../../../org/apache/poi/openxml4j/opc/PackagePart.html#addRelationship(java.net.URI,%20org.apache.poi.openxml4j.opc.TargetMode,%20java.lang.String,%20java.lang.String)">addRelationship</a></strong>(java.net.URI targetURI,
+<td class="colLast"><span class="strong">PackageRelationshipCollection.</span><code><strong><a href="../../../../../../org/apache/poi/openxml4j/opc/PackageRelationshipCollection.html#addRelationship(java.net.URI,%20org.apache.poi.openxml4j.opc.TargetMode,%20java.lang.String,%20java.lang.String)">addRelationship</a></strong>(java.net.URI targetUri,
<a href="../../../../../../org/apache/poi/openxml4j/opc/TargetMode.html" title="enum in org.apache.poi.openxml4j.opc">TargetMode</a> targetMode,
java.lang.String relationshipType,
java.lang.String id)</code>
-<div class="block">Add a relationship to a part (except relationships part).</div>
+<div class="block">Add a relationship to the collection.</div>
</td>
</tr>
</tbody>
Modified: poi/site/publish/apidocs/org/apache/poi/poifs/common/class-use/POIFSBigBlockSize.html
URL: http://svn.apache.org/viewvc/poi/site/publish/apidocs/org/apache/poi/poifs/common/class-use/POIFSBigBlockSize.html?rev=1762842&r1=1762841&r2=1762842&view=diff
==============================================================================
--- poi/site/publish/apidocs/org/apache/poi/poifs/common/class-use/POIFSBigBlockSize.html (original)
+++ poi/site/publish/apidocs/org/apache/poi/poifs/common/class-use/POIFSBigBlockSize.html Thu Sep 29 22:07:51 2016
@@ -132,11 +132,11 @@ Compound Document Format.</div>
<tbody>
<tr class="altColor">
<td class="colFirst"><code><a href="../../../../../../org/apache/poi/poifs/common/POIFSBigBlockSize.html" title="class in org.apache.poi.poifs.common">POIFSBigBlockSize</a></code></td>
-<td class="colLast"><span class="strong">NPOIFSFileSystem.</span><code><strong><a href="../../../../../../org/apache/poi/poifs/filesystem/NPOIFSFileSystem.html#getBigBlockSizeDetails()">getBigBlockSizeDetails</a></strong>()</code> </td>
+<td class="colLast"><span class="strong">OPOIFSFileSystem.</span><code><strong><a href="../../../../../../org/apache/poi/poifs/filesystem/OPOIFSFileSystem.html#getBigBlockSizeDetails()">getBigBlockSizeDetails</a></strong>()</code> </td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code><a href="../../../../../../org/apache/poi/poifs/common/POIFSBigBlockSize.html" title="class in org.apache.poi.poifs.common">POIFSBigBlockSize</a></code></td>
-<td class="colLast"><span class="strong">OPOIFSFileSystem.</span><code><strong><a href="../../../../../../org/apache/poi/poifs/filesystem/OPOIFSFileSystem.html#getBigBlockSizeDetails()">getBigBlockSizeDetails</a></strong>()</code> </td>
+<td class="colLast"><span class="strong">NPOIFSFileSystem.</span><code><strong><a href="../../../../../../org/apache/poi/poifs/filesystem/NPOIFSFileSystem.html#getBigBlockSizeDetails()">getBigBlockSizeDetails</a></strong>()</code> </td>
</tr>
</tbody>
</table>
@@ -244,20 +244,20 @@ Compound Document Format.</div>
</td>
</tr>
<tr class="rowColor">
-<td class="colFirst"><code>static <a href="../../../../../../org/apache/poi/poifs/storage/DocumentBlock.html" title="class in org.apache.poi.poifs.storage">DocumentBlock</a>[]</code></td>
-<td class="colLast"><span class="strong">DocumentBlock.</span><code><strong><a href="../../../../../../org/apache/poi/poifs/storage/DocumentBlock.html#convert(org.apache.poi.poifs.common.POIFSBigBlockSize,%20byte[],%20int)">convert</a></strong>(<a href="../../../../../../org/apache/poi/poifs/common/POIFSBigBlockSize.html" title="class in org.apache.poi.poifs.common">POIFSBigBlockSize</a> bigBlockSize,
+<td class="colFirst"><code>static <a href="../../../../../../org/apache/poi/poifs/storage/SmallDocumentBlock.html" title="class in org.apache.poi.poifs.storage">SmallDocumentBlock</a>[]</code></td>
+<td class="colLast"><span class="strong">SmallDocumentBlock.</span><code><strong><a href="../../../../../../org/apache/poi/poifs/storage/SmallDocumentBlock.html#convert(org.apache.poi.poifs.common.POIFSBigBlockSize,%20byte[],%20int)">convert</a></strong>(<a href="../../../../../../org/apache/poi/poifs/common/POIFSBigBlockSize.html" title="class in org.apache.poi.poifs.common">POIFSBigBlockSize</a> bigBlockSize,
byte[] array,
int size)</code>
-<div class="block">convert a single long array into an array of DocumentBlock
+<div class="block">convert a single long array into an array of SmallDocumentBlock
instances</div>
</td>
</tr>
<tr class="altColor">
-<td class="colFirst"><code>static <a href="../../../../../../org/apache/poi/poifs/storage/SmallDocumentBlock.html" title="class in org.apache.poi.poifs.storage">SmallDocumentBlock</a>[]</code></td>
-<td class="colLast"><span class="strong">SmallDocumentBlock.</span><code><strong><a href="../../../../../../org/apache/poi/poifs/storage/SmallDocumentBlock.html#convert(org.apache.poi.poifs.common.POIFSBigBlockSize,%20byte[],%20int)">convert</a></strong>(<a href="../../../../../../org/apache/poi/poifs/common/POIFSBigBlockSize.html" title="class in org.apache.poi.poifs.common">POIFSBigBlockSize</a> bigBlockSize,
+<td class="colFirst"><code>static <a href="../../../../../../org/apache/poi/poifs/storage/DocumentBlock.html" title="class in org.apache.poi.poifs.storage">DocumentBlock</a>[]</code></td>
+<td class="colLast"><span class="strong">DocumentBlock.</span><code><strong><a href="../../../../../../org/apache/poi/poifs/storage/DocumentBlock.html#convert(org.apache.poi.poifs.common.POIFSBigBlockSize,%20byte[],%20int)">convert</a></strong>(<a href="../../../../../../org/apache/poi/poifs/common/POIFSBigBlockSize.html" title="class in org.apache.poi.poifs.common">POIFSBigBlockSize</a> bigBlockSize,
byte[] array,
int size)</code>
-<div class="block">convert a single long array into an array of SmallDocumentBlock
+<div class="block">convert a single long array into an array of DocumentBlock
instances</div>
</td>
</tr>
Modified: poi/site/publish/apidocs/org/apache/poi/poifs/crypt/ChunkedCipherInputStream.html
URL: http://svn.apache.org/viewvc/poi/site/publish/apidocs/org/apache/poi/poifs/crypt/ChunkedCipherInputStream.html?rev=1762842&r1=1762841&r2=1762842&view=diff
==============================================================================
--- poi/site/publish/apidocs/org/apache/poi/poifs/crypt/ChunkedCipherInputStream.html (original)
+++ poi/site/publish/apidocs/org/apache/poi/poifs/crypt/ChunkedCipherInputStream.html Thu Sep 29 22:07:51 2016
@@ -149,10 +149,16 @@ extends <a href="../../../../../org/apac
<th class="colOne" scope="col">Constructor and Description</th>
</tr>
<tr class="altColor">
-<td class="colOne"><code><strong><a href="../../../../../org/apache/poi/poifs/crypt/ChunkedCipherInputStream.html#ChunkedCipherInputStream(org.apache.poi.util.LittleEndianInput,%20long,%20int)">ChunkedCipherInputStream</a></strong>(<a href="../../../../../org/apache/poi/util/LittleEndianInput.html" title="interface in org.apache.poi.util">LittleEndianInput</a> stream,
+<td class="colOne"><code><strong><a href="../../../../../org/apache/poi/poifs/crypt/ChunkedCipherInputStream.html#ChunkedCipherInputStream(java.io.InputStream,%20long,%20int)">ChunkedCipherInputStream</a></strong>(java.io.InputStream stream,
long size,
int chunkSize)</code> </td>
</tr>
+<tr class="rowColor">
+<td class="colOne"><code><strong><a href="../../../../../org/apache/poi/poifs/crypt/ChunkedCipherInputStream.html#ChunkedCipherInputStream(java.io.InputStream,%20long,%20int,%20int)">ChunkedCipherInputStream</a></strong>(java.io.InputStream stream,
+ long size,
+ int chunkSize,
+ int initialPos)</code> </td>
+</tr>
</table>
</li>
</ul>
@@ -173,11 +179,38 @@ extends <a href="../../../../../org/apac
<td class="colLast"><code><strong><a href="../../../../../org/apache/poi/poifs/crypt/ChunkedCipherInputStream.html#available()">available</a></strong>()</code> </td>
</tr>
<tr class="rowColor">
+<td class="colFirst"><code>protected byte[]</code></td>
+<td class="colLast"><code><strong><a href="../../../../../org/apache/poi/poifs/crypt/ChunkedCipherInputStream.html#getChunk()">getChunk</a></strong>()</code> </td>
+</tr>
+<tr class="altColor">
+<td class="colFirst"><code>protected int</code></td>
+<td class="colLast"><code><strong><a href="../../../../../org/apache/poi/poifs/crypt/ChunkedCipherInputStream.html#getChunkMask()">getChunkMask</a></strong>()</code> </td>
+</tr>
+<tr class="rowColor">
+<td class="colFirst"><code>protected byte[]</code></td>
+<td class="colLast"><code><strong><a href="../../../../../org/apache/poi/poifs/crypt/ChunkedCipherInputStream.html#getPlain()">getPlain</a></strong>()</code> </td>
+</tr>
+<tr class="altColor">
+<td class="colFirst"><code>long</code></td>
+<td class="colLast"><code><strong><a href="../../../../../org/apache/poi/poifs/crypt/ChunkedCipherInputStream.html#getPos()">getPos</a></strong>()</code> </td>
+</tr>
+<tr class="rowColor">
<td class="colFirst"><code>protected abstract javax.crypto.Cipher</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/poi/poifs/crypt/ChunkedCipherInputStream.html#initCipherForBlock(javax.crypto.Cipher,%20int)">initCipherForBlock</a></strong>(javax.crypto.Cipher existing,
int block)</code> </td>
</tr>
<tr class="altColor">
+<td class="colFirst"><code>javax.crypto.Cipher</code></td>
+<td class="colLast"><code><strong><a href="../../../../../org/apache/poi/poifs/crypt/ChunkedCipherInputStream.html#initCipherForBlock(int)">initCipherForBlock</a></strong>(int block)</code> </td>
+</tr>
+<tr class="rowColor">
+<td class="colFirst"><code>protected int</code></td>
+<td class="colLast"><code><strong><a href="../../../../../org/apache/poi/poifs/crypt/ChunkedCipherInputStream.html#invokeCipher(int,%20boolean)">invokeCipher</a></strong>(int totalBytes,
+ boolean doFinal)</code>
+<div class="block">Helper function for overriding the cipher invocation, i.e.</div>
+</td>
+</tr>
+<tr class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/poi/poifs/crypt/ChunkedCipherInputStream.html#mark(int)">mark</a></strong>(int readlimit)</code> </td>
</tr>
@@ -197,8 +230,23 @@ extends <a href="../../../../../org/apac
</tr>
<tr class="altColor">
<td class="colFirst"><code>void</code></td>
+<td class="colLast"><code><strong><a href="../../../../../org/apache/poi/poifs/crypt/ChunkedCipherInputStream.html#readPlain(byte[],%20int,%20int)">readPlain</a></strong>(byte[] b,
+ int off,
+ int len)</code>
+<div class="block">Used when BIFF header fields (sid, size) are being read.</div>
+</td>
+</tr>
+<tr class="rowColor">
+<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/poi/poifs/crypt/ChunkedCipherInputStream.html#reset()">reset</a></strong>()</code> </td>
</tr>
+<tr class="altColor">
+<td class="colFirst"><code>void</code></td>
+<td class="colLast"><code><strong><a href="../../../../../org/apache/poi/poifs/crypt/ChunkedCipherInputStream.html#setNextRecordSize(int)">setNextRecordSize</a></strong>(int recordSize)</code>
+<div class="block">Some ciphers (actually just XOR) are based on the record size,
+ which needs to be set before decryption</div>
+</td>
+</tr>
<tr class="rowColor">
<td class="colFirst"><code>long</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/poi/poifs/crypt/ChunkedCipherInputStream.html#skip(long)">skip</a></strong>(long n)</code> </td>
@@ -239,13 +287,13 @@ extends <a href="../../../../../org/apac
<!-- -->
</a>
<h3>Constructor Detail</h3>
-<a name="ChunkedCipherInputStream(org.apache.poi.util.LittleEndianInput, long, int)">
+<a name="ChunkedCipherInputStream(java.io.InputStream, long, int)">
<!-- -->
</a>
-<ul class="blockListLast">
+<ul class="blockList">
<li class="blockList">
<h4>ChunkedCipherInputStream</h4>
-<pre>public ChunkedCipherInputStream(<a href="../../../../../org/apache/poi/util/LittleEndianInput.html" title="interface in org.apache.poi.util">LittleEndianInput</a> stream,
+<pre>public ChunkedCipherInputStream(java.io.InputStream stream,
long size,
int chunkSize)
throws java.security.GeneralSecurityException</pre>
@@ -253,6 +301,21 @@ extends <a href="../../../../../org/apac
<dd><code>java.security.GeneralSecurityException</code></dd></dl>
</li>
</ul>
+<a name="ChunkedCipherInputStream(java.io.InputStream, long, int, int)">
+<!-- -->
+</a>
+<ul class="blockListLast">
+<li class="blockList">
+<h4>ChunkedCipherInputStream</h4>
+<pre>public ChunkedCipherInputStream(java.io.InputStream stream,
+ long size,
+ int chunkSize,
+ int initialPos)
+ throws java.security.GeneralSecurityException</pre>
+<dl><dt><span class="strong">Throws:</span></dt>
+<dd><code>java.security.GeneralSecurityException</code></dd></dl>
+</li>
+</ul>
</li>
</ul>
<!-- ============ METHOD DETAIL ========== -->
@@ -261,6 +324,20 @@ extends <a href="../../../../../org/apac
<!-- -->
</a>
<h3>Method Detail</h3>
+<a name="initCipherForBlock(int)">
+<!-- -->
+</a>
+<ul class="blockList">
+<li class="blockList">
+<h4>initCipherForBlock</h4>
+<pre>public final javax.crypto.Cipher initCipherForBlock(int block)
+ throws java.io.IOException,
+ java.security.GeneralSecurityException</pre>
+<dl><dt><span class="strong">Throws:</span></dt>
+<dd><code>java.io.IOException</code></dd>
+<dd><code>java.security.GeneralSecurityException</code></dd></dl>
+</li>
+</ul>
<a name="initCipherForBlock(javax.crypto.Cipher, int)">
<!-- -->
</a>
@@ -365,7 +442,7 @@ extends <a href="../../../../../org/apac
<a name="reset()">
<!-- -->
</a>
-<ul class="blockListLast">
+<ul class="blockList">
<li class="blockList">
<h4>reset</h4>
<pre>public void reset()
@@ -377,6 +454,95 @@ extends <a href="../../../../../org/apac
<dd><code>java.io.IOException</code></dd></dl>
</li>
</ul>
+<a name="getChunkMask()">
+<!-- -->
+</a>
+<ul class="blockList">
+<li class="blockList">
+<h4>getChunkMask</h4>
+<pre>protected int getChunkMask()</pre>
+</li>
+</ul>
+<a name="invokeCipher(int, boolean)">
+<!-- -->
+</a>
+<ul class="blockList">
+<li class="blockList">
+<h4>invokeCipher</h4>
+<pre>protected int invokeCipher(int totalBytes,
+ boolean doFinal)
+ throws java.security.GeneralSecurityException</pre>
+<div class="block">Helper function for overriding the cipher invocation, i.e. XOR doesn't use a cipher
+ and uses it's own implementation</div>
+<dl><dt><span class="strong">Returns:</span></dt><dd></dd>
+<dt><span class="strong">Throws:</span></dt>
+<dd><code>javax.crypto.BadPaddingException</code></dd>
+<dd><code>javax.crypto.IllegalBlockSizeException</code></dd>
+<dd><code>javax.crypto.ShortBufferException</code></dd>
+<dd><code>java.security.GeneralSecurityException</code></dd></dl>
+</li>
+</ul>
+<a name="readPlain(byte[], int, int)">
+<!-- -->
+</a>
+<ul class="blockList">
+<li class="blockList">
+<h4>readPlain</h4>
+<pre>public void readPlain(byte[] b,
+ int off,
+ int len)</pre>
+<div class="block">Used when BIFF header fields (sid, size) are being read. The internal
+ <code>Cipher</code> instance must step even when unencrypted bytes are read</div>
+<dl>
+<dt><strong>Specified by:</strong></dt>
+<dd><code><a href="../../../../../org/apache/poi/util/LittleEndianInput.html#readPlain(byte[],%20int,%20int)">readPlain</a></code> in interface <code><a href="../../../../../org/apache/poi/util/LittleEndianInput.html" title="interface in org.apache.poi.util">LittleEndianInput</a></code></dd>
+<dt><strong>Overrides:</strong></dt>
+<dd><code><a href="../../../../../org/apache/poi/util/LittleEndianInputStream.html#readPlain(byte[],%20int,%20int)">readPlain</a></code> in class <code><a href="../../../../../org/apache/poi/util/LittleEndianInputStream.html" title="class in org.apache.poi.util">LittleEndianInputStream</a></code></dd>
+<dt><span class="strong">Parameters:</span></dt><dd><code>b</code> - the byte array to receive the bytes</dd><dd><code>off</code> - the start offset into the byte array</dd><dd><code>len</code> - the amount of bytes to fill</dd></dl>
+</li>
+</ul>
+<a name="setNextRecordSize(int)">
+<!-- -->
+</a>
+<ul class="blockList">
+<li class="blockList">
+<h4>setNextRecordSize</h4>
+<pre>public void setNextRecordSize(int recordSize)</pre>
+<div class="block">Some ciphers (actually just XOR) are based on the record size,
+ which needs to be set before decryption</div>
+<dl><dt><span class="strong">Parameters:</span></dt><dd><code>recordSize</code> - the size of the next record</dd></dl>
+</li>
+</ul>
+<a name="getChunk()">
+<!-- -->
+</a>
+<ul class="blockList">
+<li class="blockList">
+<h4>getChunk</h4>
+<pre>protected byte[] getChunk()</pre>
+<dl><dt><span class="strong">Returns:</span></dt><dd>the chunk bytes</dd></dl>
+</li>
+</ul>
+<a name="getPlain()">
+<!-- -->
+</a>
+<ul class="blockList">
+<li class="blockList">
+<h4>getPlain</h4>
+<pre>protected byte[] getPlain()</pre>
+<dl><dt><span class="strong">Returns:</span></dt><dd>the plain bytes</dd></dl>
+</li>
+</ul>
+<a name="getPos()">
+<!-- -->
+</a>
+<ul class="blockListLast">
+<li class="blockList">
+<h4>getPos</h4>
+<pre>public long getPos()</pre>
+<dl><dt><span class="strong">Returns:</span></dt><dd>the absolute position in the stream</dd></dl>
+</li>
+</ul>
</li>
</ul>
</li>
Modified: poi/site/publish/apidocs/org/apache/poi/poifs/crypt/ChunkedCipherOutputStream.html
URL: http://svn.apache.org/viewvc/poi/site/publish/apidocs/org/apache/poi/poifs/crypt/ChunkedCipherOutputStream.html?rev=1762842&r1=1762841&r2=1762842&view=diff
==============================================================================
--- poi/site/publish/apidocs/org/apache/poi/poifs/crypt/ChunkedCipherOutputStream.html (original)
+++ poi/site/publish/apidocs/org/apache/poi/poifs/crypt/ChunkedCipherOutputStream.html Thu Sep 29 22:07:51 2016
@@ -60,13 +60,13 @@
<ul class="subNavList">
<li>Summary: </li>
<li>Nested | </li>
-<li><a href="#field_summary">Field</a> | </li>
+<li><a href="#fields_inherited_from_class_java.io.FilterOutputStream">Field</a> | </li>
<li><a href="#constructor_summary">Constr</a> | </li>
<li><a href="#method_summary">Method</a></li>
</ul>
<ul class="subNavList">
<li>Detail: </li>
-<li><a href="#field_detail">Field</a> | </li>
+<li>Field | </li>
<li><a href="#constructor_detail">Constr</a> | </li>
<li><a href="#method_detail">Method</a></li>
</ul>
@@ -108,7 +108,7 @@
</dl>
<dl>
<dt>Direct Known Subclasses:</dt>
-<dd><a href="../../../../../org/apache/poi/poifs/crypt/binaryrc4/BinaryRC4Encryptor.BinaryRC4CipherOutputStream.html" title="class in org.apache.poi.poifs.crypt.binaryrc4">BinaryRC4Encryptor.BinaryRC4CipherOutputStream</a></dd>
+<dd><a href="../../../../../org/apache/poi/poifs/crypt/binaryrc4/BinaryRC4Encryptor.BinaryRC4CipherOutputStream.html" title="class in org.apache.poi.poifs.crypt.binaryrc4">BinaryRC4Encryptor.BinaryRC4CipherOutputStream</a>, <a href="../../../../../org/apache/poi/poifs/crypt/cryptoapi/CryptoAPIEncryptor.CryptoAPICipherOutputStream.html" title="class in org.apache.poi.poifs.crypt.cryptoapi">CryptoAPIEncryptor.CryptoAPICipherOutputStream</a></dd>
</dl>
<hr>
<br>
@@ -127,25 +127,6 @@ extends java.io.FilterOutputStream</pre>
<!-- -->
</a>
<h3>Field Summary</h3>
-<table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Field Summary table, listing fields, and an explanation">
-<caption><span>Fields</span><span class="tabEnd"> </span></caption>
-<tr>
-<th class="colFirst" scope="col">Modifier and Type</th>
-<th class="colLast" scope="col">Field and Description</th>
-</tr>
-<tr class="altColor">
-<td class="colFirst"><code>protected int</code></td>
-<td class="colLast"><code><strong><a href="../../../../../org/apache/poi/poifs/crypt/ChunkedCipherOutputStream.html#chunkBits">chunkBits</a></strong></code> </td>
-</tr>
-<tr class="rowColor">
-<td class="colFirst"><code>protected int</code></td>
-<td class="colLast"><code><strong><a href="../../../../../org/apache/poi/poifs/crypt/ChunkedCipherOutputStream.html#chunkMask">chunkMask</a></strong></code> </td>
-</tr>
-<tr class="altColor">
-<td class="colFirst"><code>protected int</code></td>
-<td class="colLast"><code><strong><a href="../../../../../org/apache/poi/poifs/crypt/ChunkedCipherOutputStream.html#chunkSize">chunkSize</a></strong></code> </td>
-</tr>
-</table>
<ul class="blockList">
<li class="blockList"><a name="fields_inherited_from_class_java.io.FilterOutputStream">
<!-- -->
@@ -170,6 +151,10 @@ extends java.io.FilterOutputStream</pre>
<td class="colOne"><code><strong><a href="../../../../../org/apache/poi/poifs/crypt/ChunkedCipherOutputStream.html#ChunkedCipherOutputStream(org.apache.poi.poifs.filesystem.DirectoryNode,%20int)">ChunkedCipherOutputStream</a></strong>(<a href="../../../../../org/apache/poi/poifs/filesystem/DirectoryNode.html" title="class in org.apache.poi.poifs.filesystem">DirectoryNode</a> dir,
int chunkSize)</code> </td>
</tr>
+<tr class="rowColor">
+<td class="colOne"><code><strong><a href="../../../../../org/apache/poi/poifs/crypt/ChunkedCipherOutputStream.html#ChunkedCipherOutputStream(java.io.OutputStream,%20int)">ChunkedCipherOutputStream</a></strong>(java.io.OutputStream stream,
+ int chunkSize)</code> </td>
+</tr>
</table>
</li>
</ul>
@@ -200,11 +185,51 @@ extends java.io.FilterOutputStream</pre>
java.io.File tmpFile)</code> </td>
</tr>
<tr class="rowColor">
+<td class="colFirst"><code>protected byte[]</code></td>
+<td class="colLast"><code><strong><a href="../../../../../org/apache/poi/poifs/crypt/ChunkedCipherOutputStream.html#getChunk()">getChunk</a></strong>()</code> </td>
+</tr>
+<tr class="altColor">
+<td class="colFirst"><code>protected int</code></td>
+<td class="colLast"><code><strong><a href="../../../../../org/apache/poi/poifs/crypt/ChunkedCipherOutputStream.html#getChunkMask()">getChunkMask</a></strong>()</code> </td>
+</tr>
+<tr class="rowColor">
+<td class="colFirst"><code>protected java.util.BitSet</code></td>
+<td class="colLast"><code><strong><a href="../../../../../org/apache/poi/poifs/crypt/ChunkedCipherOutputStream.html#getPlainByteFlags()">getPlainByteFlags</a></strong>()</code> </td>
+</tr>
+<tr class="altColor">
+<td class="colFirst"><code>protected long</code></td>
+<td class="colLast"><code><strong><a href="../../../../../org/apache/poi/poifs/crypt/ChunkedCipherOutputStream.html#getPos()">getPos</a></strong>()</code> </td>
+</tr>
+<tr class="rowColor">
+<td class="colFirst"><code>protected long</code></td>
+<td class="colLast"><code><strong><a href="../../../../../org/apache/poi/poifs/crypt/ChunkedCipherOutputStream.html#getTotalPos()">getTotalPos</a></strong>()</code> </td>
+</tr>
+<tr class="altColor">
<td class="colFirst"><code>protected abstract javax.crypto.Cipher</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/poi/poifs/crypt/ChunkedCipherOutputStream.html#initCipherForBlock(javax.crypto.Cipher,%20int,%20boolean)">initCipherForBlock</a></strong>(javax.crypto.Cipher existing,
int block,
boolean lastChunk)</code> </td>
</tr>
+<tr class="rowColor">
+<td class="colFirst"><code>javax.crypto.Cipher</code></td>
+<td class="colLast"><code><strong><a href="../../../../../org/apache/poi/poifs/crypt/ChunkedCipherOutputStream.html#initCipherForBlock(int,%20boolean)">initCipherForBlock</a></strong>(int block,
+ boolean lastChunk)</code> </td>
+</tr>
+<tr class="altColor">
+<td class="colFirst"><code>protected int</code></td>
+<td class="colLast"><code><strong><a href="../../../../../org/apache/poi/poifs/crypt/ChunkedCipherOutputStream.html#invokeCipher(int,%20boolean)">invokeCipher</a></strong>(int posInChunk,
+ boolean doFinal)</code>
+<div class="block">Helper function for overriding the cipher invocation, i.e.</div>
+</td>
+</tr>
+<tr class="rowColor">
+<td class="colFirst"><code>void</code></td>
+<td class="colLast"><code><strong><a href="../../../../../org/apache/poi/poifs/crypt/ChunkedCipherOutputStream.html#setNextRecordSize(int,%20boolean)">setNextRecordSize</a></strong>(int recordSize,
+ boolean isPlain)</code>
+<div class="block">Some ciphers (actually just XOR) are based on the record size,
+ which needs to be set before encryption</div>
+</td>
+</tr>
<tr class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/poi/poifs/crypt/ChunkedCipherOutputStream.html#write(byte[])">write</a></strong>(byte[] b)</code> </td>
@@ -216,12 +241,25 @@ extends java.io.FilterOutputStream</pre>
int len)</code> </td>
</tr>
<tr class="altColor">
+<td class="colFirst"><code>protected void</code></td>
+<td class="colLast"><code><strong><a href="../../../../../org/apache/poi/poifs/crypt/ChunkedCipherOutputStream.html#write(byte[],%20int,%20int,%20boolean)">write</a></strong>(byte[] b,
+ int off,
+ int len,
+ boolean writePlain)</code> </td>
+</tr>
+<tr class="rowColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/poi/poifs/crypt/ChunkedCipherOutputStream.html#write(int)">write</a></strong>(int b)</code> </td>
</tr>
-<tr class="rowColor">
+<tr class="altColor">
<td class="colFirst"><code>protected void</code></td>
-<td class="colLast"><code><strong><a href="../../../../../org/apache/poi/poifs/crypt/ChunkedCipherOutputStream.html#writeChunk()">writeChunk</a></strong>()</code> </td>
+<td class="colLast"><code><strong><a href="../../../../../org/apache/poi/poifs/crypt/ChunkedCipherOutputStream.html#writeChunk(boolean)">writeChunk</a></strong>(boolean continued)</code> </td>
+</tr>
+<tr class="rowColor">
+<td class="colFirst"><code>void</code></td>
+<td class="colLast"><code><strong><a href="../../../../../org/apache/poi/poifs/crypt/ChunkedCipherOutputStream.html#writePlain(byte[],%20int,%20int)">writePlain</a></strong>(byte[] b,
+ int off,
+ int len)</code> </td>
</tr>
</table>
<ul class="blockList">
@@ -246,54 +284,34 @@ extends java.io.FilterOutputStream</pre>
<div class="details">
<ul class="blockList">
<li class="blockList">
-<!-- ============ FIELD DETAIL =========== -->
+<!-- ========= CONSTRUCTOR DETAIL ======== -->
<ul class="blockList">
-<li class="blockList"><a name="field_detail">
-<!-- -->
-</a>
-<h3>Field Detail</h3>
-<a name="chunkSize">
+<li class="blockList"><a name="constructor_detail">
<!-- -->
</a>
-<ul class="blockList">
-<li class="blockList">
-<h4>chunkSize</h4>
-<pre>protected final int chunkSize</pre>
-</li>
-</ul>
-<a name="chunkMask">
+<h3>Constructor Detail</h3>
+<a name="ChunkedCipherOutputStream(org.apache.poi.poifs.filesystem.DirectoryNode, int)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
-<h4>chunkMask</h4>
-<pre>protected final int chunkMask</pre>
-</li>
-</ul>
-<a name="chunkBits">
-<!-- -->
-</a>
-<ul class="blockListLast">
-<li class="blockList">
-<h4>chunkBits</h4>
-<pre>protected final int chunkBits</pre>
-</li>
-</ul>
+<h4>ChunkedCipherOutputStream</h4>
+<pre>public ChunkedCipherOutputStream(<a href="../../../../../org/apache/poi/poifs/filesystem/DirectoryNode.html" title="class in org.apache.poi.poifs.filesystem">DirectoryNode</a> dir,
+ int chunkSize)
+ throws java.io.IOException,
+ java.security.GeneralSecurityException</pre>
+<dl><dt><span class="strong">Throws:</span></dt>
+<dd><code>java.io.IOException</code></dd>
+<dd><code>java.security.GeneralSecurityException</code></dd></dl>
</li>
</ul>
-<!-- ========= CONSTRUCTOR DETAIL ======== -->
-<ul class="blockList">
-<li class="blockList"><a name="constructor_detail">
-<!-- -->
-</a>
-<h3>Constructor Detail</h3>
-<a name="ChunkedCipherOutputStream(org.apache.poi.poifs.filesystem.DirectoryNode, int)">
+<a name="ChunkedCipherOutputStream(java.io.OutputStream, int)">
<!-- -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>ChunkedCipherOutputStream</h4>
-<pre>public ChunkedCipherOutputStream(<a href="../../../../../org/apache/poi/poifs/filesystem/DirectoryNode.html" title="class in org.apache.poi.poifs.filesystem">DirectoryNode</a> dir,
+<pre>public ChunkedCipherOutputStream(java.io.OutputStream stream,
int chunkSize)
throws java.io.IOException,
java.security.GeneralSecurityException</pre>
@@ -310,6 +328,21 @@ extends java.io.FilterOutputStream</pre>
<!-- -->
</a>
<h3>Method Detail</h3>
+<a name="initCipherForBlock(int, boolean)">
+<!-- -->
+</a>
+<ul class="blockList">
+<li class="blockList">
+<h4>initCipherForBlock</h4>
+<pre>public final javax.crypto.Cipher initCipherForBlock(int block,
+ boolean lastChunk)
+ throws java.io.IOException,
+ java.security.GeneralSecurityException</pre>
+<dl><dt><span class="strong">Throws:</span></dt>
+<dd><code>java.io.IOException</code></dd>
+<dd><code>java.security.GeneralSecurityException</code></dd></dl>
+</li>
+</ul>
<a name="initCipherForBlock(javax.crypto.Cipher, int, boolean)">
<!-- -->
</a>
@@ -319,8 +352,10 @@ extends java.io.FilterOutputStream</pre>
<pre>protected abstract javax.crypto.Cipher initCipherForBlock(javax.crypto.Cipher existing,
int block,
boolean lastChunk)
- throws java.security.GeneralSecurityException</pre>
+ throws java.io.IOException,
+ java.security.GeneralSecurityException</pre>
<dl><dt><span class="strong">Throws:</span></dt>
+<dd><code>java.io.IOException</code></dd>
<dd><code>java.security.GeneralSecurityException</code></dd></dl>
</li>
</ul>
@@ -401,24 +436,79 @@ extends java.io.FilterOutputStream</pre>
<dd><code>java.io.IOException</code></dd></dl>
</li>
</ul>
-<a name="writeChunk()">
+<a name="writePlain(byte[], int, int)">
+<!-- -->
+</a>
+<ul class="blockList">
+<li class="blockList">
+<h4>writePlain</h4>
+<pre>public void writePlain(byte[] b,
+ int off,
+ int len)
+ throws java.io.IOException</pre>
+<dl><dt><span class="strong">Throws:</span></dt>
+<dd><code>java.io.IOException</code></dd></dl>
+</li>
+</ul>
+<a name="write(byte[], int, int, boolean)">
+<!-- -->
+</a>
+<ul class="blockList">
+<li class="blockList">
+<h4>write</h4>
+<pre>protected void write(byte[] b,
+ int off,
+ int len,
+ boolean writePlain)
+ throws java.io.IOException</pre>
+<dl><dt><span class="strong">Throws:</span></dt>
+<dd><code>java.io.IOException</code></dd></dl>
+</li>
+</ul>
+<a name="getChunkMask()">
+<!-- -->
+</a>
+<ul class="blockList">
+<li class="blockList">
+<h4>getChunkMask</h4>
+<pre>protected int getChunkMask()</pre>
+</li>
+</ul>
+<a name="writeChunk(boolean)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>writeChunk</h4>
-<pre>protected void writeChunk()
- throws java.io.IOException,
- java.security.GeneralSecurityException</pre>
+<pre>protected void writeChunk(boolean continued)
+ throws java.io.IOException</pre>
<dl><dt><span class="strong">Throws:</span></dt>
-<dd><code>java.io.IOException</code></dd>
+<dd><code>java.io.IOException</code></dd></dl>
+</li>
+</ul>
+<a name="invokeCipher(int, boolean)">
+<!-- -->
+</a>
+<ul class="blockList">
+<li class="blockList">
+<h4>invokeCipher</h4>
+<pre>protected int invokeCipher(int posInChunk,
+ boolean doFinal)
+ throws java.security.GeneralSecurityException</pre>
+<div class="block">Helper function for overriding the cipher invocation, i.e. XOR doesn't use a cipher
+ and uses it's own implementation</div>
+<dl><dt><span class="strong">Returns:</span></dt><dd></dd>
+<dt><span class="strong">Throws:</span></dt>
+<dd><code>javax.crypto.BadPaddingException</code></dd>
+<dd><code>javax.crypto.IllegalBlockSizeException</code></dd>
+<dd><code>javax.crypto.ShortBufferException</code></dd>
<dd><code>java.security.GeneralSecurityException</code></dd></dl>
</li>
</ul>
<a name="close()">
<!-- -->
</a>
-<ul class="blockListLast">
+<ul class="blockList">
<li class="blockList">
<h4>close</h4>
<pre>public void close()
@@ -434,6 +524,55 @@ extends java.io.FilterOutputStream</pre>
<dd><code>java.io.IOException</code></dd></dl>
</li>
</ul>
+<a name="getChunk()">
+<!-- -->
+</a>
+<ul class="blockList">
+<li class="blockList">
+<h4>getChunk</h4>
+<pre>protected byte[] getChunk()</pre>
+</li>
+</ul>
+<a name="getPlainByteFlags()">
+<!-- -->
+</a>
+<ul class="blockList">
+<li class="blockList">
+<h4>getPlainByteFlags</h4>
+<pre>protected java.util.BitSet getPlainByteFlags()</pre>
+</li>
+</ul>
+<a name="getPos()">
+<!-- -->
+</a>
+<ul class="blockList">
+<li class="blockList">
+<h4>getPos</h4>
+<pre>protected long getPos()</pre>
+</li>
+</ul>
+<a name="getTotalPos()">
+<!-- -->
+</a>
+<ul class="blockList">
+<li class="blockList">
+<h4>getTotalPos</h4>
+<pre>protected long getTotalPos()</pre>
+</li>
+</ul>
+<a name="setNextRecordSize(int, boolean)">
+<!-- -->
+</a>
+<ul class="blockListLast">
+<li class="blockList">
+<h4>setNextRecordSize</h4>
+<pre>public void setNextRecordSize(int recordSize,
+ boolean isPlain)</pre>
+<div class="block">Some ciphers (actually just XOR) are based on the record size,
+ which needs to be set before encryption</div>
+<dl><dt><span class="strong">Parameters:</span></dt><dd><code>recordSize</code> - the size of the next record</dd><dd><code>isPlain</code> - <code>true</code> if the record is unencrypted</dd></dl>
+</li>
+</ul>
</li>
</ul>
</li>
@@ -486,13 +625,13 @@ extends java.io.FilterOutputStream</pre>
<ul class="subNavList">
<li>Summary: </li>
<li>Nested | </li>
-<li><a href="#field_summary">Field</a> | </li>
+<li><a href="#fields_inherited_from_class_java.io.FilterOutputStream">Field</a> | </li>
<li><a href="#constructor_summary">Constr</a> | </li>
<li><a href="#method_summary">Method</a></li>
</ul>
<ul class="subNavList">
<li>Detail: </li>
-<li><a href="#field_detail">Field</a> | </li>
+<li>Field | </li>
<li><a href="#constructor_detail">Constr</a> | </li>
<li><a href="#method_detail">Method</a></li>
</ul>
Modified: poi/site/publish/apidocs/org/apache/poi/poifs/crypt/Decryptor.html
URL: http://svn.apache.org/viewvc/poi/site/publish/apidocs/org/apache/poi/poifs/crypt/Decryptor.html?rev=1762842&r1=1762841&r2=1762842&view=diff
==============================================================================
--- poi/site/publish/apidocs/org/apache/poi/poifs/crypt/Decryptor.html (original)
+++ poi/site/publish/apidocs/org/apache/poi/poifs/crypt/Decryptor.html Thu Sep 29 22:07:51 2016
@@ -93,13 +93,18 @@
<ul class="blockList">
<li class="blockList">
<dl>
+<dt>All Implemented Interfaces:</dt>
+<dd>java.lang.Cloneable</dd>
+</dl>
+<dl>
<dt>Direct Known Subclasses:</dt>
-<dd><a href="../../../../../org/apache/poi/poifs/crypt/agile/AgileDecryptor.html" title="class in org.apache.poi.poifs.crypt.agile">AgileDecryptor</a>, <a href="../../../../../org/apache/poi/poifs/crypt/binaryrc4/BinaryRC4Decryptor.html" title="class in org.apache.poi.poifs.crypt.binaryrc4">BinaryRC4Decryptor</a>, <a href="../../../../../org/apache/poi/poifs/crypt/cryptoapi/CryptoAPIDecryptor.html" title="class in org.apache.poi.poifs.crypt.cryptoapi">CryptoAPIDecryptor</a>, <a href="../../../../../org/apache/poi/poifs/crypt/standard/StandardDecryptor.html" title="class in org.apache.poi.poifs.crypt.standard">StandardDecryptor</a></dd>
+<dd><a href="../../../../../org/apache/poi/poifs/crypt/agile/AgileDecryptor.html" title="class in org.apache.poi.poifs.crypt.agile">AgileDecryptor</a>, <a href="../../../../../org/apache/poi/poifs/crypt/binaryrc4/BinaryRC4Decryptor.html" title="class in org.apache.poi.poifs.crypt.binaryrc4">BinaryRC4Decryptor</a>, <a href="../../../../../org/apache/poi/poifs/crypt/cryptoapi/CryptoAPIDecryptor.html" title="class in org.apache.poi.poifs.crypt.cryptoapi">CryptoAPIDecryptor</a>, <a href="../../../../../org/apache/poi/poifs/crypt/standard/StandardDecryptor.html" title="class in org.apache.poi.poifs.crypt.standard">StandardDecryptor</a>, <a href="../../../../../org/apache/poi/poifs/crypt/xor/XORDecryptor.html" title="class in org.apache.poi.poifs.crypt.xor">XORDecryptor</a></dd>
</dl>
<hr>
<br>
<pre>public abstract class <span class="strong">Decryptor</span>
-extends java.lang.Object</pre>
+extends java.lang.Object
+implements java.lang.Cloneable</pre>
</li>
</ul>
</div>
@@ -119,17 +124,17 @@ extends java.lang.Object</pre>
<th class="colLast" scope="col">Field and Description</th>
</tr>
<tr class="altColor">
-<td class="colFirst"><code>protected <a href="../../../../../org/apache/poi/poifs/crypt/EncryptionInfoBuilder.html" title="interface in org.apache.poi.poifs.crypt">EncryptionInfoBuilder</a></code></td>
-<td class="colLast"><code><strong><a href="../../../../../org/apache/poi/poifs/crypt/Decryptor.html#builder">builder</a></strong></code> </td>
-</tr>
-<tr class="rowColor">
<td class="colFirst"><code>static java.lang.String</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/poi/poifs/crypt/Decryptor.html#DEFAULT_PASSWORD">DEFAULT_PASSWORD</a></strong></code> </td>
</tr>
-<tr class="altColor">
+<tr class="rowColor">
<td class="colFirst"><code>static java.lang.String</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/poi/poifs/crypt/Decryptor.html#DEFAULT_POIFS_ENTRY">DEFAULT_POIFS_ENTRY</a></strong></code> </td>
</tr>
+<tr class="altColor">
+<td class="colFirst"><code>protected <a href="../../../../../org/apache/poi/poifs/crypt/EncryptionInfo.html" title="class in org.apache.poi.poifs.crypt">EncryptionInfo</a></code></td>
+<td class="colLast"><code><strong><a href="../../../../../org/apache/poi/poifs/crypt/Decryptor.html#encryptionInfo">encryptionInfo</a></strong></code> </td>
+</tr>
</table>
</li>
</ul>
@@ -147,7 +152,7 @@ extends java.lang.Object</pre>
</tr>
<tr class="altColor">
<td class="colFirst"><code>protected </code></td>
-<td class="colLast"><code><strong><a href="../../../../../org/apache/poi/poifs/crypt/Decryptor.html#Decryptor(org.apache.poi.poifs.crypt.EncryptionInfoBuilder)">Decryptor</a></strong>(<a href="../../../../../org/apache/poi/poifs/crypt/EncryptionInfoBuilder.html" title="interface in org.apache.poi.poifs.crypt">EncryptionInfoBuilder</a> builder)</code> </td>
+<td class="colLast"><code><strong><a href="../../../../../org/apache/poi/poifs/crypt/Decryptor.html#Decryptor()">Decryptor</a></strong>()</code> </td>
</tr>
</table>
</li>
@@ -165,15 +170,27 @@ extends java.lang.Object</pre>
<th class="colLast" scope="col">Method and Description</th>
</tr>
<tr class="altColor">
+<td class="colFirst"><code><a href="../../../../../org/apache/poi/poifs/crypt/Decryptor.html" title="class in org.apache.poi.poifs.crypt">Decryptor</a></code></td>
+<td class="colLast"><code><strong><a href="../../../../../org/apache/poi/poifs/crypt/Decryptor.html#clone()">clone</a></strong>()</code> </td>
+</tr>
+<tr class="rowColor">
<td class="colFirst"><code>protected int</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/poi/poifs/crypt/Decryptor.html#getBlockSizeInBytes()">getBlockSizeInBytes</a></strong>()</code> </td>
</tr>
-<tr class="rowColor">
+<tr class="altColor">
<td class="colFirst"><code>abstract java.io.InputStream</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/poi/poifs/crypt/Decryptor.html#getDataStream(org.apache.poi.poifs.filesystem.DirectoryNode)">getDataStream</a></strong>(<a href="../../../../../org/apache/poi/poifs/filesystem/DirectoryNode.html" title="class in org.apache.poi.poifs.filesystem">DirectoryNode</a> dir)</code>
<div class="block">Return a stream with decrypted data.</div>
</td>
</tr>
+<tr class="rowColor">
+<td class="colFirst"><code>java.io.InputStream</code></td>
+<td class="colLast"><code><strong><a href="../../../../../org/apache/poi/poifs/crypt/Decryptor.html#getDataStream(java.io.InputStream,%20int,%20int)">getDataStream</a></strong>(java.io.InputStream stream,
+ int size,
+ int initialPos)</code>
+<div class="block">Wraps a stream for decryption</div>
+</td>
+</tr>
<tr class="altColor">
<td class="colFirst"><code>java.io.InputStream</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/poi/poifs/crypt/Decryptor.html#getDataStream(org.apache.poi.poifs.filesystem.NPOIFSFileSystem)">getDataStream</a></strong>(<a href="../../../../../org/apache/poi/poifs/filesystem/NPOIFSFileSystem.html" title="class in org.apache.poi.poifs.filesystem">NPOIFSFileSystem</a> fs)</code> </td>
@@ -187,36 +204,57 @@ extends java.lang.Object</pre>
<td class="colLast"><code><strong><a href="../../../../../org/apache/poi/poifs/crypt/Decryptor.html#getDataStream(org.apache.poi.poifs.filesystem.POIFSFileSystem)">getDataStream</a></strong>(<a href="../../../../../org/apache/poi/poifs/filesystem/POIFSFileSystem.html" title="class in org.apache.poi.poifs.filesystem">POIFSFileSystem</a> fs)</code> </td>
</tr>
<tr class="rowColor">
+<td class="colFirst"><code><a href="../../../../../org/apache/poi/poifs/crypt/EncryptionInfo.html" title="class in org.apache.poi.poifs.crypt">EncryptionInfo</a></code></td>
+<td class="colLast"><code><strong><a href="../../../../../org/apache/poi/poifs/crypt/Decryptor.html#getEncryptionInfo()">getEncryptionInfo</a></strong>()</code> </td>
+</tr>
+<tr class="altColor">
<td class="colFirst"><code>static <a href="../../../../../org/apache/poi/poifs/crypt/Decryptor.html" title="class in org.apache.poi.poifs.crypt">Decryptor</a></code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/poi/poifs/crypt/Decryptor.html#getInstance(org.apache.poi.poifs.crypt.EncryptionInfo)">getInstance</a></strong>(<a href="../../../../../org/apache/poi/poifs/crypt/EncryptionInfo.html" title="class in org.apache.poi.poifs.crypt">EncryptionInfo</a> info)</code> </td>
</tr>
-<tr class="altColor">
+<tr class="rowColor">
<td class="colFirst"><code>byte[]</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/poi/poifs/crypt/Decryptor.html#getIntegrityHmacKey()">getIntegrityHmacKey</a></strong>()</code> </td>
</tr>
-<tr class="rowColor">
+<tr class="altColor">
<td class="colFirst"><code>byte[]</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/poi/poifs/crypt/Decryptor.html#getIntegrityHmacValue()">getIntegrityHmacValue</a></strong>()</code> </td>
</tr>
-<tr class="altColor">
+<tr class="rowColor">
<td class="colFirst"><code>protected int</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/poi/poifs/crypt/Decryptor.html#getKeySizeInBytes()">getKeySizeInBytes</a></strong>()</code> </td>
</tr>
-<tr class="rowColor">
+<tr class="altColor">
<td class="colFirst"><code>abstract long</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/poi/poifs/crypt/Decryptor.html#getLength()">getLength</a></strong>()</code>
<div class="block">Returns the length of the encrypted data that can be safely read with
<a href="../../../../../org/apache/poi/poifs/crypt/Decryptor.html#getDataStream(org.apache.poi.poifs.filesystem.DirectoryNode)"><code>getDataStream(org.apache.poi.poifs.filesystem.DirectoryNode)</code></a>.</div>
</td>
</tr>
-<tr class="altColor">
+<tr class="rowColor">
<td class="colFirst"><code>javax.crypto.SecretKey</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/poi/poifs/crypt/Decryptor.html#getSecretKey()">getSecretKey</a></strong>()</code> </td>
</tr>
-<tr class="rowColor">
+<tr class="altColor">
<td class="colFirst"><code>byte[]</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/poi/poifs/crypt/Decryptor.html#getVerifier()">getVerifier</a></strong>()</code> </td>
</tr>
+<tr class="rowColor">
+<td class="colFirst"><code>javax.crypto.Cipher</code></td>
+<td class="colLast"><code><strong><a href="../../../../../org/apache/poi/poifs/crypt/Decryptor.html#initCipherForBlock(javax.crypto.Cipher,%20int)">initCipherForBlock</a></strong>(javax.crypto.Cipher cipher,
+ int block)</code>
+<div class="block">Initializes a cipher object for a given block index for encryption</div>
+</td>
+</tr>
+<tr class="altColor">
+<td class="colFirst"><code>void</code></td>
+<td class="colLast"><code><strong><a href="../../../../../org/apache/poi/poifs/crypt/Decryptor.html#setChunkSize(int)">setChunkSize</a></strong>(int chunkSize)</code>
+<div class="block">Sets the chunk size of the data stream.</div>
+</td>
+</tr>
+<tr class="rowColor">
+<td class="colFirst"><code>void</code></td>
+<td class="colLast"><code><strong><a href="../../../../../org/apache/poi/poifs/crypt/Decryptor.html#setEncryptionInfo(org.apache.poi.poifs.crypt.EncryptionInfo)">setEncryptionInfo</a></strong>(<a href="../../../../../org/apache/poi/poifs/crypt/EncryptionInfo.html" title="class in org.apache.poi.poifs.crypt">EncryptionInfo</a> encryptionInfo)</code> </td>
+</tr>
<tr class="altColor">
<td class="colFirst"><code>protected void</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/poi/poifs/crypt/Decryptor.html#setIntegrityHmacKey(byte[])">setIntegrityHmacKey</a></strong>(byte[] integrityHmacKey)</code> </td>
@@ -243,7 +281,7 @@ extends java.lang.Object</pre>
<!-- -->
</a>
<h3>Methods inherited from class java.lang.Object</h3>
-<code>clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</code></li>
+<code>equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</code></li>
</ul>
</li>
</ul>
@@ -279,13 +317,13 @@ extends java.lang.Object</pre>
<dl><dt><span class="strong">See Also:</span></dt><dd><a href="../../../../../constant-values.html#org.apache.poi.poifs.crypt.Decryptor.DEFAULT_POIFS_ENTRY">Constant Field Values</a></dd></dl>
</li>
</ul>
-<a name="builder">
+<a name="encryptionInfo">
<!-- -->
</a>
<ul class="blockListLast">
<li class="blockList">
-<h4>builder</h4>
-<pre>protected final <a href="../../../../../org/apache/poi/poifs/crypt/EncryptionInfoBuilder.html" title="interface in org.apache.poi.poifs.crypt">EncryptionInfoBuilder</a> builder</pre>
+<h4>encryptionInfo</h4>
+<pre>protected <a href="../../../../../org/apache/poi/poifs/crypt/EncryptionInfo.html" title="class in org.apache.poi.poifs.crypt">EncryptionInfo</a> encryptionInfo</pre>
</li>
</ul>
</li>
@@ -296,13 +334,13 @@ extends java.lang.Object</pre>
<!-- -->
</a>
<h3>Constructor Detail</h3>
-<a name="Decryptor(org.apache.poi.poifs.crypt.EncryptionInfoBuilder)">
+<a name="Decryptor()">
<!-- -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>Decryptor</h4>
-<pre>protected Decryptor(<a href="../../../../../org/apache/poi/poifs/crypt/EncryptionInfoBuilder.html" title="interface in org.apache.poi.poifs.crypt">EncryptionInfoBuilder</a> builder)</pre>
+<pre>protected Decryptor()</pre>
</li>
</ul>
</li>
@@ -335,6 +373,57 @@ extends java.lang.Object</pre>
<dd><code>java.security.GeneralSecurityException</code></dd></dl>
</li>
</ul>
+<a name="getDataStream(java.io.InputStream, int, int)">
+<!-- -->
+</a>
+<ul class="blockList">
+<li class="blockList">
+<h4>getDataStream</h4>
+<pre>public java.io.InputStream getDataStream(java.io.InputStream stream,
+ int size,
+ int initialPos)
+ throws java.io.IOException,
+ java.security.GeneralSecurityException</pre>
+<div class="block">Wraps a stream for decryption<p>
+
+ As we are handling streams and don't know the total length beforehand,
+ it's the callers duty to care for the length of the entries.</div>
+<dl><dt><span class="strong">Parameters:</span></dt><dd><code>stream</code> - the stream to be wrapped</dd><dd><code>initialPos</code> - initial/current byte position within the stream</dd>
+<dt><span class="strong">Returns:</span></dt><dd>decrypted stream</dd>
+<dt><span class="strong">Throws:</span></dt>
+<dd><code>java.io.IOException</code></dd>
+<dd><code>java.security.GeneralSecurityException</code></dd></dl>
+</li>
+</ul>
+<a name="setChunkSize(int)">
+<!-- -->
+</a>
+<ul class="blockList">
+<li class="blockList">
+<h4>setChunkSize</h4>
+<pre>public void setChunkSize(int chunkSize)</pre>
+<div class="block">Sets the chunk size of the data stream.
+ Needs to be set before the data stream is requested.
+ When not set, the implementation uses method specific default values</div>
+<dl><dt><span class="strong">Parameters:</span></dt><dd><code>chunkSize</code> - the chunk size, i.e. the block size with the same encryption key</dd></dl>
+</li>
+</ul>
+<a name="initCipherForBlock(javax.crypto.Cipher, int)">
+<!-- -->
+</a>
+<ul class="blockList">
+<li class="blockList">
+<h4>initCipherForBlock</h4>
+<pre>public javax.crypto.Cipher initCipherForBlock(javax.crypto.Cipher cipher,
+ int block)
+ throws java.security.GeneralSecurityException</pre>
+<div class="block">Initializes a cipher object for a given block index for encryption</div>
+<dl><dt><span class="strong">Parameters:</span></dt><dd><code>cipher</code> - may be null, otherwise the given instance is reset to the new block index</dd><dd><code>block</code> - the block index, e.g. the persist/slide id (hslf)</dd>
+<dt><span class="strong">Returns:</span></dt><dd>a new cipher object, if cipher was null, otherwise the reinitialized cipher</dd>
+<dt><span class="strong">Throws:</span></dt>
+<dd><code>java.security.GeneralSecurityException</code></dd></dl>
+</li>
+</ul>
<a name="verifyPassword(java.lang.String)">
<!-- -->
</a>
@@ -504,12 +593,45 @@ extends java.lang.Object</pre>
<a name="getKeySizeInBytes()">
<!-- -->
</a>
-<ul class="blockListLast">
+<ul class="blockList">
<li class="blockList">
<h4>getKeySizeInBytes</h4>
<pre>protected int getKeySizeInBytes()</pre>
</li>
</ul>
+<a name="getEncryptionInfo()">
+<!-- -->
+</a>
+<ul class="blockList">
+<li class="blockList">
+<h4>getEncryptionInfo</h4>
+<pre>public <a href="../../../../../org/apache/poi/poifs/crypt/EncryptionInfo.html" title="class in org.apache.poi.poifs.crypt">EncryptionInfo</a> getEncryptionInfo()</pre>
+</li>
+</ul>
+<a name="setEncryptionInfo(org.apache.poi.poifs.crypt.EncryptionInfo)">
+<!-- -->
+</a>
+<ul class="blockList">
+<li class="blockList">
+<h4>setEncryptionInfo</h4>
+<pre>public void setEncryptionInfo(<a href="../../../../../org/apache/poi/poifs/crypt/EncryptionInfo.html" title="class in org.apache.poi.poifs.crypt">EncryptionInfo</a> encryptionInfo)</pre>
+</li>
+</ul>
+<a name="clone()">
+<!-- -->
+</a>
+<ul class="blockListLast">
+<li class="blockList">
+<h4>clone</h4>
+<pre>public <a href="../../../../../org/apache/poi/poifs/crypt/Decryptor.html" title="class in org.apache.poi.poifs.crypt">Decryptor</a> clone()
+ throws java.lang.CloneNotSupportedException</pre>
+<dl>
+<dt><strong>Overrides:</strong></dt>
+<dd><code>clone</code> in class <code>java.lang.Object</code></dd>
+<dt><span class="strong">Throws:</span></dt>
+<dd><code>java.lang.CloneNotSupportedException</code></dd></dl>
+</li>
+</ul>
</li>
</ul>
</li>
Modified: poi/site/publish/apidocs/org/apache/poi/poifs/crypt/EncryptionHeader.html
URL: http://svn.apache.org/viewvc/poi/site/publish/apidocs/org/apache/poi/poifs/crypt/EncryptionHeader.html?rev=1762842&r1=1762841&r2=1762842&view=diff
==============================================================================
--- poi/site/publish/apidocs/org/apache/poi/poifs/crypt/EncryptionHeader.html (original)
+++ poi/site/publish/apidocs/org/apache/poi/poifs/crypt/EncryptionHeader.html Thu Sep 29 22:07:51 2016
@@ -93,13 +93,18 @@
<ul class="blockList">
<li class="blockList">
<dl>
+<dt>All Implemented Interfaces:</dt>
+<dd>java.lang.Cloneable</dd>
+</dl>
+<dl>
<dt>Direct Known Subclasses:</dt>
-<dd><a href="../../../../../org/apache/poi/poifs/crypt/agile/AgileEncryptionHeader.html" title="class in org.apache.poi.poifs.crypt.agile">AgileEncryptionHeader</a>, <a href="../../../../../org/apache/poi/poifs/crypt/binaryrc4/BinaryRC4EncryptionHeader.html" title="class in org.apache.poi.poifs.crypt.binaryrc4">BinaryRC4EncryptionHeader</a>, <a href="../../../../../org/apache/poi/poifs/crypt/standard/StandardEncryptionHeader.html" title="class in org.apache.poi.poifs.crypt.standard">StandardEncryptionHeader</a></dd>
+<dd><a href="../../../../../org/apache/poi/poifs/crypt/agile/AgileEncryptionHeader.html" title="class in org.apache.poi.poifs.crypt.agile">AgileEncryptionHeader</a>, <a href="../../../../../org/apache/poi/poifs/crypt/binaryrc4/BinaryRC4EncryptionHeader.html" title="class in org.apache.poi.poifs.crypt.binaryrc4">BinaryRC4EncryptionHeader</a>, <a href="../../../../../org/apache/poi/poifs/crypt/standard/StandardEncryptionHeader.html" title="class in org.apache.poi.poifs.crypt.standard">StandardEncryptionHeader</a>, <a href="../../../../../org/apache/poi/poifs/crypt/xor/XOREncryptionHeader.html" title="class in org.apache.poi.poifs.crypt.xor">XOREncryptionHeader</a></dd>
</dl>
<hr>
<br>
<pre>public abstract class <span class="strong">EncryptionHeader</span>
-extends java.lang.Object</pre>
+extends java.lang.Object
+implements java.lang.Cloneable</pre>
<div class="block">Reads and processes OOXML Encryption Headers
The constants are largely based on ZIP constants.</div>
</li>
@@ -211,82 +216,86 @@ extends java.lang.Object</pre>
<th class="colLast" scope="col">Method and Description</th>
</tr>
<tr class="altColor">
+<td class="colFirst"><code><a href="../../../../../org/apache/poi/poifs/crypt/EncryptionHeader.html" title="class in org.apache.poi.poifs.crypt">EncryptionHeader</a></code></td>
+<td class="colLast"><code><strong><a href="../../../../../org/apache/poi/poifs/crypt/EncryptionHeader.html#clone()">clone</a></strong>()</code> </td>
+</tr>
+<tr class="rowColor">
<td class="colFirst"><code>int</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/poi/poifs/crypt/EncryptionHeader.html#getBlockSize()">getBlockSize</a></strong>()</code> </td>
</tr>
-<tr class="rowColor">
+<tr class="altColor">
<td class="colFirst"><code><a href="../../../../../org/apache/poi/poifs/crypt/ChainingMode.html" title="enum in org.apache.poi.poifs.crypt">ChainingMode</a></code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/poi/poifs/crypt/EncryptionHeader.html#getChainingMode()">getChainingMode</a></strong>()</code> </td>
</tr>
-<tr class="altColor">
+<tr class="rowColor">
<td class="colFirst"><code><a href="../../../../../org/apache/poi/poifs/crypt/CipherAlgorithm.html" title="enum in org.apache.poi.poifs.crypt">CipherAlgorithm</a></code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/poi/poifs/crypt/EncryptionHeader.html#getCipherAlgorithm()">getCipherAlgorithm</a></strong>()</code> </td>
</tr>
-<tr class="rowColor">
+<tr class="altColor">
<td class="colFirst"><code><a href="../../../../../org/apache/poi/poifs/crypt/CipherProvider.html" title="enum in org.apache.poi.poifs.crypt">CipherProvider</a></code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/poi/poifs/crypt/EncryptionHeader.html#getCipherProvider()">getCipherProvider</a></strong>()</code> </td>
</tr>
-<tr class="altColor">
+<tr class="rowColor">
<td class="colFirst"><code>java.lang.String</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/poi/poifs/crypt/EncryptionHeader.html#getCspName()">getCspName</a></strong>()</code> </td>
</tr>
-<tr class="rowColor">
+<tr class="altColor">
<td class="colFirst"><code>int</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/poi/poifs/crypt/EncryptionHeader.html#getFlags()">getFlags</a></strong>()</code> </td>
</tr>
-<tr class="altColor">
+<tr class="rowColor">
<td class="colFirst"><code><a href="../../../../../org/apache/poi/poifs/crypt/HashAlgorithm.html" title="enum in org.apache.poi.poifs.crypt">HashAlgorithm</a></code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/poi/poifs/crypt/EncryptionHeader.html#getHashAlgorithmEx()">getHashAlgorithmEx</a></strong>()</code> </td>
</tr>
-<tr class="rowColor">
+<tr class="altColor">
<td class="colFirst"><code>byte[]</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/poi/poifs/crypt/EncryptionHeader.html#getKeySalt()">getKeySalt</a></strong>()</code> </td>
</tr>
-<tr class="altColor">
+<tr class="rowColor">
<td class="colFirst"><code>int</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/poi/poifs/crypt/EncryptionHeader.html#getKeySize()">getKeySize</a></strong>()</code> </td>
</tr>
-<tr class="rowColor">
+<tr class="altColor">
<td class="colFirst"><code>int</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/poi/poifs/crypt/EncryptionHeader.html#getSizeExtra()">getSizeExtra</a></strong>()</code> </td>
</tr>
-<tr class="altColor">
+<tr class="rowColor">
<td class="colFirst"><code>protected void</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/poi/poifs/crypt/EncryptionHeader.html#setBlockSize(int)">setBlockSize</a></strong>(int blockSize)</code> </td>
</tr>
-<tr class="rowColor">
+<tr class="altColor">
<td class="colFirst"><code>protected void</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/poi/poifs/crypt/EncryptionHeader.html#setChainingMode(org.apache.poi.poifs.crypt.ChainingMode)">setChainingMode</a></strong>(<a href="../../../../../org/apache/poi/poifs/crypt/ChainingMode.html" title="enum in org.apache.poi.poifs.crypt">ChainingMode</a> chainingMode)</code> </td>
</tr>
-<tr class="altColor">
+<tr class="rowColor">
<td class="colFirst"><code>protected void</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/poi/poifs/crypt/EncryptionHeader.html#setCipherAlgorithm(org.apache.poi.poifs.crypt.CipherAlgorithm)">setCipherAlgorithm</a></strong>(<a href="../../../../../org/apache/poi/poifs/crypt/CipherAlgorithm.html" title="enum in org.apache.poi.poifs.crypt">CipherAlgorithm</a> cipherAlgorithm)</code> </td>
</tr>
-<tr class="rowColor">
+<tr class="altColor">
<td class="colFirst"><code>protected void</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/poi/poifs/crypt/EncryptionHeader.html#setCipherProvider(org.apache.poi.poifs.crypt.CipherProvider)">setCipherProvider</a></strong>(<a href="../../../../../org/apache/poi/poifs/crypt/CipherProvider.html" title="enum in org.apache.poi.poifs.crypt">CipherProvider</a> providerType)</code> </td>
</tr>
-<tr class="altColor">
+<tr class="rowColor">
<td class="colFirst"><code>protected void</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/poi/poifs/crypt/EncryptionHeader.html#setCspName(java.lang.String)">setCspName</a></strong>(java.lang.String cspName)</code> </td>
</tr>
-<tr class="rowColor">
+<tr class="altColor">
<td class="colFirst"><code>protected void</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/poi/poifs/crypt/EncryptionHeader.html#setFlags(int)">setFlags</a></strong>(int flags)</code> </td>
</tr>
-<tr class="altColor">
+<tr class="rowColor">
<td class="colFirst"><code>protected void</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/poi/poifs/crypt/EncryptionHeader.html#setHashAlgorithm(org.apache.poi.poifs.crypt.HashAlgorithm)">setHashAlgorithm</a></strong>(<a href="../../../../../org/apache/poi/poifs/crypt/HashAlgorithm.html" title="enum in org.apache.poi.poifs.crypt">HashAlgorithm</a> hashAlgorithm)</code> </td>
</tr>
-<tr class="rowColor">
+<tr class="altColor">
<td class="colFirst"><code>protected void</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/poi/poifs/crypt/EncryptionHeader.html#setKeySalt(byte[])">setKeySalt</a></strong>(byte[] salt)</code> </td>
</tr>
-<tr class="altColor">
+<tr class="rowColor">
<td class="colFirst"><code>protected void</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/poi/poifs/crypt/EncryptionHeader.html#setKeySize(int)">setKeySize</a></strong>(int keyBits)</code> </td>
</tr>
-<tr class="rowColor">
+<tr class="altColor">
<td class="colFirst"><code>protected void</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/poi/poifs/crypt/EncryptionHeader.html#setSizeExtra(int)">setSizeExtra</a></strong>(int sizeExtra)</code> </td>
</tr>
@@ -296,7 +305,7 @@ extends java.lang.Object</pre>
<!-- -->
</a>
<h3>Methods inherited from class java.lang.Object</h3>
-<code>clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</code></li>
+<code>equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</code></li>
</ul>
</li>
</ul>
@@ -637,12 +646,27 @@ extends java.lang.Object</pre>
<a name="setCspName(java.lang.String)">
<!-- -->
</a>
-<ul class="blockListLast">
+<ul class="blockList">
<li class="blockList">
<h4>setCspName</h4>
<pre>protected void setCspName(java.lang.String cspName)</pre>
</li>
</ul>
+<a name="clone()">
+<!-- -->
+</a>
+<ul class="blockListLast">
+<li class="blockList">
+<h4>clone</h4>
+<pre>public <a href="../../../../../org/apache/poi/poifs/crypt/EncryptionHeader.html" title="class in org.apache.poi.poifs.crypt">EncryptionHeader</a> clone()
+ throws java.lang.CloneNotSupportedException</pre>
+<dl>
+<dt><strong>Overrides:</strong></dt>
+<dd><code>clone</code> in class <code>java.lang.Object</code></dd>
+<dt><span class="strong">Throws:</span></dt>
+<dd><code>java.lang.CloneNotSupportedException</code></dd></dl>
+</li>
+</ul>
</li>
</ul>
</li>
Modified: poi/site/publish/apidocs/org/apache/poi/poifs/crypt/EncryptionInfo.html
URL: http://svn.apache.org/viewvc/poi/site/publish/apidocs/org/apache/poi/poifs/crypt/EncryptionInfo.html?rev=1762842&r1=1762841&r2=1762842&view=diff
==============================================================================
--- poi/site/publish/apidocs/org/apache/poi/poifs/crypt/EncryptionInfo.html (original)
+++ poi/site/publish/apidocs/org/apache/poi/poifs/crypt/EncryptionInfo.html Thu Sep 29 22:07:51 2016
@@ -92,10 +92,15 @@
<div class="description">
<ul class="blockList">
<li class="blockList">
+<dl>
+<dt>All Implemented Interfaces:</dt>
+<dd>java.lang.Cloneable</dd>
+</dl>
<hr>
<br>
<pre>public class <span class="strong">EncryptionInfo</span>
-extends java.lang.Object</pre>
+extends java.lang.Object
+implements java.lang.Cloneable</pre>
</li>
</ul>
</div>
@@ -176,8 +181,8 @@ extends java.lang.Object</pre>
</td>
</tr>
<tr class="rowColor">
-<td class="colOne"><code><strong><a href="../../../../../org/apache/poi/poifs/crypt/EncryptionInfo.html#EncryptionInfo(org.apache.poi.util.LittleEndianInput,%20boolean)">EncryptionInfo</a></strong>(<a href="../../../../../org/apache/poi/util/LittleEndianInput.html" title="interface in org.apache.poi.util">LittleEndianInput</a> dis,
- boolean isCryptoAPI)</code> </td>
+<td class="colOne"><code><strong><a href="../../../../../org/apache/poi/poifs/crypt/EncryptionInfo.html#EncryptionInfo(org.apache.poi.util.LittleEndianInput,%20org.apache.poi.poifs.crypt.EncryptionMode)">EncryptionInfo</a></strong>(<a href="../../../../../org/apache/poi/util/LittleEndianInput.html" title="interface in org.apache.poi.util">LittleEndianInput</a> dis,
+ <a href="../../../../../org/apache/poi/poifs/crypt/EncryptionMode.html" title="enum in org.apache.poi.poifs.crypt">EncryptionMode</a> preferredEncryptionMode)</code> </td>
</tr>
<tr class="altColor">
<td class="colOne"><code><strong><a href="../../../../../org/apache/poi/poifs/crypt/EncryptionInfo.html#EncryptionInfo(org.apache.poi.poifs.filesystem.NPOIFSFileSystem)">EncryptionInfo</a></strong>(<a href="../../../../../org/apache/poi/poifs/filesystem/NPOIFSFileSystem.html" title="class in org.apache.poi.poifs.filesystem">NPOIFSFileSystem</a> fs)</code>
@@ -210,17 +215,25 @@ extends java.lang.Object</pre>
<th class="colLast" scope="col">Method and Description</th>
</tr>
<tr class="altColor">
+<td class="colFirst"><code><a href="../../../../../org/apache/poi/poifs/crypt/EncryptionInfo.html" title="class in org.apache.poi.poifs.crypt">EncryptionInfo</a></code></td>
+<td class="colLast"><code><strong><a href="../../../../../org/apache/poi/poifs/crypt/EncryptionInfo.html#clone()">clone</a></strong>()</code> </td>
+</tr>
+<tr class="rowColor">
<td class="colFirst"><code>protected static <a href="../../../../../org/apache/poi/poifs/crypt/EncryptionInfoBuilder.html" title="interface in org.apache.poi.poifs.crypt">EncryptionInfoBuilder</a></code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/poi/poifs/crypt/EncryptionInfo.html#getBuilder(org.apache.poi.poifs.crypt.EncryptionMode)">getBuilder</a></strong>(<a href="../../../../../org/apache/poi/poifs/crypt/EncryptionMode.html" title="enum in org.apache.poi.poifs.crypt">EncryptionMode</a> encryptionMode)</code> </td>
</tr>
-<tr class="rowColor">
+<tr class="altColor">
<td class="colFirst"><code><a href="../../../../../org/apache/poi/poifs/crypt/Decryptor.html" title="class in org.apache.poi.poifs.crypt">Decryptor</a></code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/poi/poifs/crypt/EncryptionInfo.html#getDecryptor()">getDecryptor</a></strong>()</code> </td>
</tr>
-<tr class="altColor">
+<tr class="rowColor">
<td class="colFirst"><code>int</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/poi/poifs/crypt/EncryptionInfo.html#getEncryptionFlags()">getEncryptionFlags</a></strong>()</code> </td>
</tr>
+<tr class="altColor">
+<td class="colFirst"><code><a href="../../../../../org/apache/poi/poifs/crypt/EncryptionMode.html" title="enum in org.apache.poi.poifs.crypt">EncryptionMode</a></code></td>
+<td class="colLast"><code><strong><a href="../../../../../org/apache/poi/poifs/crypt/EncryptionInfo.html#getEncryptionMode()">getEncryptionMode</a></strong>()</code> </td>
+</tr>
<tr class="rowColor">
<td class="colFirst"><code><a href="../../../../../org/apache/poi/poifs/crypt/Encryptor.html" title="class in org.apache.poi.poifs.crypt">Encryptor</a></code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/poi/poifs/crypt/EncryptionInfo.html#getEncryptor()">getEncryptor</a></strong>()</code> </td>
@@ -241,13 +254,29 @@ extends java.lang.Object</pre>
<td class="colFirst"><code>int</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/poi/poifs/crypt/EncryptionInfo.html#getVersionMinor()">getVersionMinor</a></strong>()</code> </td>
</tr>
+<tr class="altColor">
+<td class="colFirst"><code>void</code></td>
+<td class="colLast"><code><strong><a href="../../../../../org/apache/poi/poifs/crypt/EncryptionInfo.html#setDecryptor(org.apache.poi.poifs.crypt.Decryptor)">setDecryptor</a></strong>(<a href="../../../../../org/apache/poi/poifs/crypt/Decryptor.html" title="class in org.apache.poi.poifs.crypt">Decryptor</a> decryptor)</code> </td>
+</tr>
+<tr class="rowColor">
+<td class="colFirst"><code>void</code></td>
+<td class="colLast"><code><strong><a href="../../../../../org/apache/poi/poifs/crypt/EncryptionInfo.html#setEncryptor(org.apache.poi.poifs.crypt.Encryptor)">setEncryptor</a></strong>(<a href="../../../../../org/apache/poi/poifs/crypt/Encryptor.html" title="class in org.apache.poi.poifs.crypt">Encryptor</a> encryptor)</code> </td>
+</tr>
+<tr class="altColor">
+<td class="colFirst"><code>void</code></td>
+<td class="colLast"><code><strong><a href="../../../../../org/apache/poi/poifs/crypt/EncryptionInfo.html#setHeader(org.apache.poi.poifs.crypt.EncryptionHeader)">setHeader</a></strong>(<a href="../../../../../org/apache/poi/poifs/crypt/EncryptionHeader.html" title="class in org.apache.poi.poifs.crypt">EncryptionHeader</a> header)</code> </td>
+</tr>
+<tr class="rowColor">
+<td class="colFirst"><code>void</code></td>
+<td class="colLast"><code><strong><a href="../../../../../org/apache/poi/poifs/crypt/EncryptionInfo.html#setVerifier(org.apache.poi.poifs.crypt.EncryptionVerifier)">setVerifier</a></strong>(<a href="../../../../../org/apache/poi/poifs/crypt/EncryptionVerifier.html" title="class in org.apache.poi.poifs.crypt">EncryptionVerifier</a> verifier)</code> </td>
+</tr>
</table>
<ul class="blockList">
<li class="blockList"><a name="methods_inherited_from_class_java.lang.Object">
<!-- -->
</a>
<h3>Methods inherited from class java.lang.Object</h3>
-<code>clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</code></li>
+<code>equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</code></li>
</ul>
</li>
</ul>
@@ -367,14 +396,14 @@ extends java.lang.Object</pre>
<dd><code>java.io.IOException</code></dd></dl>
</li>
</ul>
-<a name="EncryptionInfo(org.apache.poi.util.LittleEndianInput, boolean)">
+<a name="EncryptionInfo(org.apache.poi.util.LittleEndianInput, org.apache.poi.poifs.crypt.EncryptionMode)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>EncryptionInfo</h4>
<pre>public EncryptionInfo(<a href="../../../../../org/apache/poi/util/LittleEndianInput.html" title="interface in org.apache.poi.util">LittleEndianInput</a> dis,
- boolean isCryptoAPI)
+ <a href="../../../../../org/apache/poi/poifs/crypt/EncryptionMode.html" title="enum in org.apache.poi.poifs.crypt">EncryptionMode</a> preferredEncryptionMode)
throws java.io.IOException</pre>
<dl><dt><span class="strong">Throws:</span></dt>
<dd><code>java.io.IOException</code></dd></dl>
@@ -493,12 +522,72 @@ extends java.lang.Object</pre>
<a name="getEncryptor()">
<!-- -->
</a>
-<ul class="blockListLast">
+<ul class="blockList">
<li class="blockList">
<h4>getEncryptor</h4>
<pre>public <a href="../../../../../org/apache/poi/poifs/crypt/Encryptor.html" title="class in org.apache.poi.poifs.crypt">Encryptor</a> getEncryptor()</pre>
</li>
</ul>
+<a name="setHeader(org.apache.poi.poifs.crypt.EncryptionHeader)">
+<!-- -->
+</a>
+<ul class="blockList">
+<li class="blockList">
+<h4>setHeader</h4>
+<pre>public void setHeader(<a href="../../../../../org/apache/poi/poifs/crypt/EncryptionHeader.html" title="class in org.apache.poi.poifs.crypt">EncryptionHeader</a> header)</pre>
+</li>
+</ul>
+<a name="setVerifier(org.apache.poi.poifs.crypt.EncryptionVerifier)">
+<!-- -->
+</a>
+<ul class="blockList">
+<li class="blockList">
+<h4>setVerifier</h4>
+<pre>public void setVerifier(<a href="../../../../../org/apache/poi/poifs/crypt/EncryptionVerifier.html" title="class in org.apache.poi.poifs.crypt">EncryptionVerifier</a> verifier)</pre>
+</li>
+</ul>
+<a name="setDecryptor(org.apache.poi.poifs.crypt.Decryptor)">
+<!-- -->
+</a>
+<ul class="blockList">
+<li class="blockList">
+<h4>setDecryptor</h4>
+<pre>public void setDecryptor(<a href="../../../../../org/apache/poi/poifs/crypt/Decryptor.html" title="class in org.apache.poi.poifs.crypt">Decryptor</a> decryptor)</pre>
+</li>
+</ul>
+<a name="setEncryptor(org.apache.poi.poifs.crypt.Encryptor)">
+<!-- -->
+</a>
+<ul class="blockList">
+<li class="blockList">
+<h4>setEncryptor</h4>
+<pre>public void setEncryptor(<a href="../../../../../org/apache/poi/poifs/crypt/Encryptor.html" title="class in org.apache.poi.poifs.crypt">Encryptor</a> encryptor)</pre>
+</li>
+</ul>
+<a name="getEncryptionMode()">
+<!-- -->
+</a>
+<ul class="blockList">
+<li class="blockList">
+<h4>getEncryptionMode</h4>
+<pre>public <a href="../../../../../org/apache/poi/poifs/crypt/EncryptionMode.html" title="enum in org.apache.poi.poifs.crypt">EncryptionMode</a> getEncryptionMode()</pre>
+</li>
+</ul>
+<a name="clone()">
+<!-- -->
+</a>
+<ul class="blockListLast">
+<li class="blockList">
+<h4>clone</h4>
+<pre>public <a href="../../../../../org/apache/poi/poifs/crypt/EncryptionInfo.html" title="class in org.apache.poi.poifs.crypt">EncryptionInfo</a> clone()
+ throws java.lang.CloneNotSupportedException</pre>
+<dl>
+<dt><strong>Overrides:</strong></dt>
+<dd><code>clone</code> in class <code>java.lang.Object</code></dd>
+<dt><span class="strong">Throws:</span></dt>
+<dd><code>java.lang.CloneNotSupportedException</code></dd></dl>
+</li>
+</ul>
</li>
</ul>
</li>
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@poi.apache.org
For additional commands, e-mail: commits-help@poi.apache.org