You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by bo...@apache.org on 2014/08/31 21:27:54 UTC

svn commit: r920865 [40/45] - in /websites/production/commons/content/proper/commons-compress: ./ apidocs/ apidocs/org/apache/commons/compress/archivers/ apidocs/org/apache/commons/compress/archivers/ar/ apidocs/org/apache/commons/compress/archivers/ar...

Added: websites/production/commons/content/proper/commons-compress/xref-test/org/apache/commons/compress/compressors/xz/XZCompressorInputStreamTest.html
==============================================================================
--- websites/production/commons/content/proper/commons-compress/xref-test/org/apache/commons/compress/compressors/xz/XZCompressorInputStreamTest.html (added)
+++ websites/production/commons/content/proper/commons-compress/xref-test/org/apache/commons/compress/compressors/xz/XZCompressorInputStreamTest.html Sun Aug 31 19:27:46 2014
@@ -0,0 +1,49 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
+<head><meta http-equiv="content-type" content="text/html; charset=iso-8859-1" />
+<title>XZCompressorInputStreamTest xref</title>
+<link type="text/css" rel="stylesheet" href="../../../../../../stylesheet.css" />
+</head>
+<body>
+<div id="overview"><a href="../../../../../../../testapidocs/org/apache/commons/compress/compressors/xz/XZCompressorInputStreamTest.html">View Javadoc</a></div><pre>
+<a class="jxr_linenumber" name="L1" href="#L1">1</a>   <em class="jxr_comment">/*</em>
+<a class="jxr_linenumber" name="L2" href="#L2">2</a>   <em class="jxr_comment"> * Licensed to the Apache Software Foundation (ASF) under one</em>
+<a class="jxr_linenumber" name="L3" href="#L3">3</a>   <em class="jxr_comment"> * or more contributor license agreements.  See the NOTICE file</em>
+<a class="jxr_linenumber" name="L4" href="#L4">4</a>   <em class="jxr_comment"> * distributed with this work for additional information</em>
+<a class="jxr_linenumber" name="L5" href="#L5">5</a>   <em class="jxr_comment"> * regarding copyright ownership.  The ASF licenses this file</em>
+<a class="jxr_linenumber" name="L6" href="#L6">6</a>   <em class="jxr_comment"> * to you under the Apache License, Version 2.0 (the</em>
+<a class="jxr_linenumber" name="L7" href="#L7">7</a>   <em class="jxr_comment"> * "License"); you may not use this file except in compliance</em>
+<a class="jxr_linenumber" name="L8" href="#L8">8</a>   <em class="jxr_comment"> * with the License.  You may obtain a copy of the License at</em>
+<a class="jxr_linenumber" name="L9" href="#L9">9</a>   <em class="jxr_comment"> *</em>
+<a class="jxr_linenumber" name="L10" href="#L10">10</a>  <em class="jxr_comment"> * <a href="http://www.apache.org/licenses/LICENSE-2." target="alexandria_uri">http://www.apache.org/licenses/LICENSE-2.</a>0</em>
+<a class="jxr_linenumber" name="L11" href="#L11">11</a>  <em class="jxr_comment"> *</em>
+<a class="jxr_linenumber" name="L12" href="#L12">12</a>  <em class="jxr_comment"> * Unless required by applicable law or agreed to in writing,</em>
+<a class="jxr_linenumber" name="L13" href="#L13">13</a>  <em class="jxr_comment"> * software distributed under the License is distributed on an</em>
+<a class="jxr_linenumber" name="L14" href="#L14">14</a>  <em class="jxr_comment"> * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY</em>
+<a class="jxr_linenumber" name="L15" href="#L15">15</a>  <em class="jxr_comment"> * KIND, either express or implied.  See the License for the</em>
+<a class="jxr_linenumber" name="L16" href="#L16">16</a>  <em class="jxr_comment"> * specific language governing permissions and limitations</em>
+<a class="jxr_linenumber" name="L17" href="#L17">17</a>  <em class="jxr_comment"> * under the License.</em>
+<a class="jxr_linenumber" name="L18" href="#L18">18</a>  <em class="jxr_comment"> */</em>
+<a class="jxr_linenumber" name="L19" href="#L19">19</a>  <strong class="jxr_keyword">package</strong> org.apache.commons.compress.compressors.xz;
+<a class="jxr_linenumber" name="L20" href="#L20">20</a>  
+<a class="jxr_linenumber" name="L21" href="#L21">21</a>  <strong class="jxr_keyword">import</strong> org.junit.Assert;
+<a class="jxr_linenumber" name="L22" href="#L22">22</a>  <strong class="jxr_keyword">import</strong> org.junit.Test;
+<a class="jxr_linenumber" name="L23" href="#L23">23</a>  
+<a class="jxr_linenumber" name="L24" href="#L24">24</a>  <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">class</strong> <a href="../../../../../../org/apache/commons/compress/compressors/xz/XZCompressorInputStreamTest.html">XZCompressorInputStreamTest</a> {
+<a class="jxr_linenumber" name="L25" href="#L25">25</a>      @Test
+<a class="jxr_linenumber" name="L26" href="#L26">26</a>      <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> redundantTestOfAlmostDeprecatedMatchesMethod() {
+<a class="jxr_linenumber" name="L27" href="#L27">27</a>          byte[] data = {
+<a class="jxr_linenumber" name="L28" href="#L28">28</a>              (byte) 0xFD, '7', 'z', 'X', 'Z', '\0'
+<a class="jxr_linenumber" name="L29" href="#L29">29</a>          };
+<a class="jxr_linenumber" name="L30" href="#L30">30</a>          Assert.assertFalse(XZCompressorInputStream.matches(data, 5));
+<a class="jxr_linenumber" name="L31" href="#L31">31</a>          Assert.assertTrue(XZCompressorInputStream.matches(data, 6));
+<a class="jxr_linenumber" name="L32" href="#L32">32</a>          Assert.assertTrue(XZCompressorInputStream.matches(data, 7));
+<a class="jxr_linenumber" name="L33" href="#L33">33</a>          data[5] = '0';
+<a class="jxr_linenumber" name="L34" href="#L34">34</a>          Assert.assertFalse(XZCompressorInputStream.matches(data, 6));
+<a class="jxr_linenumber" name="L35" href="#L35">35</a>      }
+<a class="jxr_linenumber" name="L36" href="#L36">36</a>  }
+</pre>
+<hr/>
+<div id="footer">Copyright &#169; 2014 <a href="http://www.apache.org/">The Apache Software Foundation</a>. All rights reserved.</div>
+</body>
+</html>
\ No newline at end of file

Propchange: websites/production/commons/content/proper/commons-compress/xref-test/org/apache/commons/compress/compressors/xz/XZCompressorInputStreamTest.html
------------------------------------------------------------------------------
    svn:eol-style = native

Added: websites/production/commons/content/proper/commons-compress/xref-test/org/apache/commons/compress/compressors/xz/XZUtilsTestCase.html
==============================================================================
--- websites/production/commons/content/proper/commons-compress/xref-test/org/apache/commons/compress/compressors/xz/XZUtilsTestCase.html (added)
+++ websites/production/commons/content/proper/commons-compress/xref-test/org/apache/commons/compress/compressors/xz/XZUtilsTestCase.html Sun Aug 31 19:27:46 2014
@@ -0,0 +1,116 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
+<head><meta http-equiv="content-type" content="text/html; charset=iso-8859-1" />
+<title>XZUtilsTestCase xref</title>
+<link type="text/css" rel="stylesheet" href="../../../../../../stylesheet.css" />
+</head>
+<body>
+<div id="overview"><a href="../../../../../../../testapidocs/org/apache/commons/compress/compressors/xz/XZUtilsTestCase.html">View Javadoc</a></div><pre>
+<a class="jxr_linenumber" name="L1" href="#L1">1</a>   <em class="jxr_comment">/*</em>
+<a class="jxr_linenumber" name="L2" href="#L2">2</a>   <em class="jxr_comment"> * Licensed to the Apache Software Foundation (ASF) under one</em>
+<a class="jxr_linenumber" name="L3" href="#L3">3</a>   <em class="jxr_comment"> * or more contributor license agreements.  See the NOTICE file</em>
+<a class="jxr_linenumber" name="L4" href="#L4">4</a>   <em class="jxr_comment"> * distributed with this work for additional information</em>
+<a class="jxr_linenumber" name="L5" href="#L5">5</a>   <em class="jxr_comment"> * regarding copyright ownership.  The ASF licenses this file</em>
+<a class="jxr_linenumber" name="L6" href="#L6">6</a>   <em class="jxr_comment"> * to you under the Apache License, Version 2.0 (the</em>
+<a class="jxr_linenumber" name="L7" href="#L7">7</a>   <em class="jxr_comment"> * "License"); you may not use this file except in compliance</em>
+<a class="jxr_linenumber" name="L8" href="#L8">8</a>   <em class="jxr_comment"> * with the License.  You may obtain a copy of the License at</em>
+<a class="jxr_linenumber" name="L9" href="#L9">9</a>   <em class="jxr_comment"> *</em>
+<a class="jxr_linenumber" name="L10" href="#L10">10</a>  <em class="jxr_comment"> * <a href="http://www.apache.org/licenses/LICENSE-2." target="alexandria_uri">http://www.apache.org/licenses/LICENSE-2.</a>0</em>
+<a class="jxr_linenumber" name="L11" href="#L11">11</a>  <em class="jxr_comment"> *</em>
+<a class="jxr_linenumber" name="L12" href="#L12">12</a>  <em class="jxr_comment"> * Unless required by applicable law or agreed to in writing,</em>
+<a class="jxr_linenumber" name="L13" href="#L13">13</a>  <em class="jxr_comment"> * software distributed under the License is distributed on an</em>
+<a class="jxr_linenumber" name="L14" href="#L14">14</a>  <em class="jxr_comment"> * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY</em>
+<a class="jxr_linenumber" name="L15" href="#L15">15</a>  <em class="jxr_comment"> * KIND, either express or implied.  See the License for the</em>
+<a class="jxr_linenumber" name="L16" href="#L16">16</a>  <em class="jxr_comment"> * specific language governing permissions and limitations</em>
+<a class="jxr_linenumber" name="L17" href="#L17">17</a>  <em class="jxr_comment"> * under the License.</em>
+<a class="jxr_linenumber" name="L18" href="#L18">18</a>  <em class="jxr_comment"> */</em>
+<a class="jxr_linenumber" name="L19" href="#L19">19</a>  <strong class="jxr_keyword">package</strong> org.apache.commons.compress.compressors.xz;
+<a class="jxr_linenumber" name="L20" href="#L20">20</a>  
+<a class="jxr_linenumber" name="L21" href="#L21">21</a>  <strong class="jxr_keyword">import</strong> junit.framework.TestCase;
+<a class="jxr_linenumber" name="L22" href="#L22">22</a>  
+<a class="jxr_linenumber" name="L23" href="#L23">23</a>  <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">class</strong> <a href="../../../../../../org/apache/commons/compress/compressors/xz/XZUtilsTestCase.html">XZUtilsTestCase</a> <strong class="jxr_keyword">extends</strong> TestCase {
+<a class="jxr_linenumber" name="L24" href="#L24">24</a>  
+<a class="jxr_linenumber" name="L25" href="#L25">25</a>      <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> testIsCompressedFilename() {
+<a class="jxr_linenumber" name="L26" href="#L26">26</a>          assertFalse(XZUtils.isCompressedFilename(<span class="jxr_string">""</span>));
+<a class="jxr_linenumber" name="L27" href="#L27">27</a>          assertFalse(XZUtils.isCompressedFilename(<span class="jxr_string">".xz"</span>));
+<a class="jxr_linenumber" name="L28" href="#L28">28</a>  
+<a class="jxr_linenumber" name="L29" href="#L29">29</a>          assertTrue(XZUtils.isCompressedFilename(<span class="jxr_string">"x.txz"</span>));
+<a class="jxr_linenumber" name="L30" href="#L30">30</a>          assertTrue(XZUtils.isCompressedFilename(<span class="jxr_string">"x.xz"</span>));
+<a class="jxr_linenumber" name="L31" href="#L31">31</a>          assertTrue(XZUtils.isCompressedFilename(<span class="jxr_string">"x-xz"</span>));
+<a class="jxr_linenumber" name="L32" href="#L32">32</a>  
+<a class="jxr_linenumber" name="L33" href="#L33">33</a>          assertFalse(XZUtils.isCompressedFilename(<span class="jxr_string">"xxgz"</span>));
+<a class="jxr_linenumber" name="L34" href="#L34">34</a>          assertFalse(XZUtils.isCompressedFilename(<span class="jxr_string">"xzz"</span>));
+<a class="jxr_linenumber" name="L35" href="#L35">35</a>          assertFalse(XZUtils.isCompressedFilename(<span class="jxr_string">"xaz"</span>));
+<a class="jxr_linenumber" name="L36" href="#L36">36</a>  
+<a class="jxr_linenumber" name="L37" href="#L37">37</a>          assertFalse(XZUtils.isCompressedFilename(<span class="jxr_string">"x.txz "</span>));
+<a class="jxr_linenumber" name="L38" href="#L38">38</a>          assertFalse(XZUtils.isCompressedFilename(<span class="jxr_string">"x.txz\n"</span>));
+<a class="jxr_linenumber" name="L39" href="#L39">39</a>          assertFalse(XZUtils.isCompressedFilename(<span class="jxr_string">"x.txz.y"</span>));
+<a class="jxr_linenumber" name="L40" href="#L40">40</a>      }
+<a class="jxr_linenumber" name="L41" href="#L41">41</a>  
+<a class="jxr_linenumber" name="L42" href="#L42">42</a>      <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> testGetUncompressedFilename() {
+<a class="jxr_linenumber" name="L43" href="#L43">43</a>          assertEquals(<span class="jxr_string">""</span>, XZUtils.getUncompressedFilename(<span class="jxr_string">""</span>));
+<a class="jxr_linenumber" name="L44" href="#L44">44</a>          assertEquals(<span class="jxr_string">".xz"</span>, XZUtils.getUncompressedFilename(<span class="jxr_string">".xz"</span>));
+<a class="jxr_linenumber" name="L45" href="#L45">45</a>  
+<a class="jxr_linenumber" name="L46" href="#L46">46</a>          assertEquals(<span class="jxr_string">"x.tar"</span>, XZUtils.getUncompressedFilename(<span class="jxr_string">"x.txz"</span>));
+<a class="jxr_linenumber" name="L47" href="#L47">47</a>          assertEquals(<span class="jxr_string">"x"</span>, XZUtils.getUncompressedFilename(<span class="jxr_string">"x.xz"</span>));
+<a class="jxr_linenumber" name="L48" href="#L48">48</a>          assertEquals(<span class="jxr_string">"x"</span>, XZUtils.getUncompressedFilename(<span class="jxr_string">"x-xz"</span>));
+<a class="jxr_linenumber" name="L49" href="#L49">49</a>  
+<a class="jxr_linenumber" name="L50" href="#L50">50</a>          assertEquals(<span class="jxr_string">"x.txz "</span>, XZUtils.getUncompressedFilename(<span class="jxr_string">"x.txz "</span>));
+<a class="jxr_linenumber" name="L51" href="#L51">51</a>          assertEquals(<span class="jxr_string">"x.txz\n"</span>, XZUtils.getUncompressedFilename(<span class="jxr_string">"x.txz\n"</span>));
+<a class="jxr_linenumber" name="L52" href="#L52">52</a>          assertEquals(<span class="jxr_string">"x.txz.y"</span>, XZUtils.getUncompressedFilename(<span class="jxr_string">"x.txz.y"</span>));
+<a class="jxr_linenumber" name="L53" href="#L53">53</a>      }
+<a class="jxr_linenumber" name="L54" href="#L54">54</a>  
+<a class="jxr_linenumber" name="L55" href="#L55">55</a>      <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> testGetCompressedFilename() {
+<a class="jxr_linenumber" name="L56" href="#L56">56</a>          assertEquals(<span class="jxr_string">".xz"</span>, XZUtils.getCompressedFilename(<span class="jxr_string">""</span>));
+<a class="jxr_linenumber" name="L57" href="#L57">57</a>          assertEquals(<span class="jxr_string">"x.xz"</span>, XZUtils.getCompressedFilename(<span class="jxr_string">"x"</span>));
+<a class="jxr_linenumber" name="L58" href="#L58">58</a>  
+<a class="jxr_linenumber" name="L59" href="#L59">59</a>          assertEquals(<span class="jxr_string">"x.txz"</span>, XZUtils.getCompressedFilename(<span class="jxr_string">"x.tar"</span>));
+<a class="jxr_linenumber" name="L60" href="#L60">60</a>  
+<a class="jxr_linenumber" name="L61" href="#L61">61</a>          assertEquals(<span class="jxr_string">"x.wmf .xz"</span>, XZUtils.getCompressedFilename(<span class="jxr_string">"x.wmf "</span>));
+<a class="jxr_linenumber" name="L62" href="#L62">62</a>          assertEquals(<span class="jxr_string">"x.wmf\n.xz"</span>, XZUtils.getCompressedFilename(<span class="jxr_string">"x.wmf\n"</span>));
+<a class="jxr_linenumber" name="L63" href="#L63">63</a>          assertEquals(<span class="jxr_string">"x.wmf.y.xz"</span>, XZUtils.getCompressedFilename(<span class="jxr_string">"x.wmf.y"</span>));
+<a class="jxr_linenumber" name="L64" href="#L64">64</a>      }
+<a class="jxr_linenumber" name="L65" href="#L65">65</a>  
+<a class="jxr_linenumber" name="L66" href="#L66">66</a>      <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> testMatches() {
+<a class="jxr_linenumber" name="L67" href="#L67">67</a>          byte[] data = {
+<a class="jxr_linenumber" name="L68" href="#L68">68</a>              (byte) 0xFD, '7', 'z', 'X', 'Z', '\0'
+<a class="jxr_linenumber" name="L69" href="#L69">69</a>          };
+<a class="jxr_linenumber" name="L70" href="#L70">70</a>          assertFalse(XZUtils.matches(data, 5));
+<a class="jxr_linenumber" name="L71" href="#L71">71</a>          assertTrue(XZUtils.matches(data, 6));
+<a class="jxr_linenumber" name="L72" href="#L72">72</a>          assertTrue(XZUtils.matches(data, 7));
+<a class="jxr_linenumber" name="L73" href="#L73">73</a>          data[5] = '0';
+<a class="jxr_linenumber" name="L74" href="#L74">74</a>          assertFalse(XZUtils.matches(data, 6));
+<a class="jxr_linenumber" name="L75" href="#L75">75</a>      }
+<a class="jxr_linenumber" name="L76" href="#L76">76</a>  
+<a class="jxr_linenumber" name="L77" href="#L77">77</a>      <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> testCachingIsEnabledByDefaultAndXZIsPresent() {
+<a class="jxr_linenumber" name="L78" href="#L78">78</a>          assertEquals(XZUtils.CachedAvailability.CACHED_AVAILABLE, XZUtils.getCachedXZAvailability());
+<a class="jxr_linenumber" name="L79" href="#L79">79</a>          assertTrue(XZUtils.isXZCompressionAvailable());
+<a class="jxr_linenumber" name="L80" href="#L80">80</a>      }
+<a class="jxr_linenumber" name="L81" href="#L81">81</a>  
+<a class="jxr_linenumber" name="L82" href="#L82">82</a>      <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> testCanTurnOffCaching() {
+<a class="jxr_linenumber" name="L83" href="#L83">83</a>          <strong class="jxr_keyword">try</strong> {
+<a class="jxr_linenumber" name="L84" href="#L84">84</a>              XZUtils.setCacheXZAvailablity(false);
+<a class="jxr_linenumber" name="L85" href="#L85">85</a>              assertEquals(XZUtils.CachedAvailability.DONT_CACHE, XZUtils.getCachedXZAvailability());
+<a class="jxr_linenumber" name="L86" href="#L86">86</a>              assertTrue(XZUtils.isXZCompressionAvailable());
+<a class="jxr_linenumber" name="L87" href="#L87">87</a>          } <strong class="jxr_keyword">finally</strong> {
+<a class="jxr_linenumber" name="L88" href="#L88">88</a>              XZUtils.setCacheXZAvailablity(<strong class="jxr_keyword">true</strong>);
+<a class="jxr_linenumber" name="L89" href="#L89">89</a>          }
+<a class="jxr_linenumber" name="L90" href="#L90">90</a>      }
+<a class="jxr_linenumber" name="L91" href="#L91">91</a>  
+<a class="jxr_linenumber" name="L92" href="#L92">92</a>      <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> testTurningOnCachingReEvaluatesAvailability() {
+<a class="jxr_linenumber" name="L93" href="#L93">93</a>          <strong class="jxr_keyword">try</strong> {
+<a class="jxr_linenumber" name="L94" href="#L94">94</a>              XZUtils.setCacheXZAvailablity(false);
+<a class="jxr_linenumber" name="L95" href="#L95">95</a>              assertEquals(XZUtils.CachedAvailability.DONT_CACHE, XZUtils.getCachedXZAvailability());
+<a class="jxr_linenumber" name="L96" href="#L96">96</a>              XZUtils.setCacheXZAvailablity(<strong class="jxr_keyword">true</strong>);
+<a class="jxr_linenumber" name="L97" href="#L97">97</a>              assertEquals(XZUtils.CachedAvailability.CACHED_AVAILABLE, XZUtils.getCachedXZAvailability());
+<a class="jxr_linenumber" name="L98" href="#L98">98</a>          } <strong class="jxr_keyword">finally</strong> {
+<a class="jxr_linenumber" name="L99" href="#L99">99</a>              XZUtils.setCacheXZAvailablity(<strong class="jxr_keyword">true</strong>);
+<a class="jxr_linenumber" name="L100" href="#L100">100</a>         }
+<a class="jxr_linenumber" name="L101" href="#L101">101</a>     }
+<a class="jxr_linenumber" name="L102" href="#L102">102</a> 
+<a class="jxr_linenumber" name="L103" href="#L103">103</a> }
+</pre>
+<hr/>
+<div id="footer">Copyright &#169; 2014 <a href="http://www.apache.org/">The Apache Software Foundation</a>. All rights reserved.</div>
+</body>
+</html>
\ No newline at end of file

Propchange: websites/production/commons/content/proper/commons-compress/xref-test/org/apache/commons/compress/compressors/xz/XZUtilsTestCase.html
------------------------------------------------------------------------------
    svn:eol-style = native

Added: websites/production/commons/content/proper/commons-compress/xref-test/org/apache/commons/compress/compressors/xz/package-frame.html
==============================================================================
--- websites/production/commons/content/proper/commons-compress/xref-test/org/apache/commons/compress/compressors/xz/package-frame.html (added)
+++ websites/production/commons/content/proper/commons-compress/xref-test/org/apache/commons/compress/compressors/xz/package-frame.html Sun Aug 31 19:27:46 2014
@@ -0,0 +1,27 @@
+
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xml:lang="en" lang="en">
+	<head>
+		<meta http-equiv="content-type" content="text/html; charset=iso-8859-1" />
+		<title>Apache Commons Compress 1.9-SNAPSHOT Reference Package org.apache.commons.compress.compressors.xz</title>
+		<link rel="stylesheet" type="text/css" href="../../../../../../stylesheet.css" title="style" />
+	</head>
+	<body>
+
+		<h3>
+        	<a href="package-summary.html" target="classFrame">org.apache.commons.compress.compressors.xz</a>
+      	</h3>
+
+      	<h3>Classes</h3>
+
+      	<ul>
+      		          	<li>
+            	<a href="XZCompressorInputStreamTest.html" target="classFrame">XZCompressorInputStreamTest</a>
+          	</li>
+          	          	<li>
+            	<a href="XZUtilsTestCase.html" target="classFrame">XZUtilsTestCase</a>
+          	</li>
+          	      	</ul>
+
+	</body>
+</html>
\ No newline at end of file

Propchange: websites/production/commons/content/proper/commons-compress/xref-test/org/apache/commons/compress/compressors/xz/package-frame.html
------------------------------------------------------------------------------
    svn:eol-style = native

Added: websites/production/commons/content/proper/commons-compress/xref-test/org/apache/commons/compress/compressors/xz/package-summary.html
==============================================================================
--- websites/production/commons/content/proper/commons-compress/xref-test/org/apache/commons/compress/compressors/xz/package-summary.html (added)
+++ websites/production/commons/content/proper/commons-compress/xref-test/org/apache/commons/compress/compressors/xz/package-summary.html Sun Aug 31 19:27:46 2014
@@ -0,0 +1,74 @@
+
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xml:lang="en" lang="en">
+	<head>
+		<meta http-equiv="content-type" content="text/html; charset=iso-8859-1" />
+		<title>Apache Commons Compress 1.9-SNAPSHOT Reference Package org.apache.commons.compress.compressors.xz</title>
+		<link rel="stylesheet" type="text/css" href="../../../../../../stylesheet.css" title="style" />
+	</head>
+	<body>
+		      	<div class="overview">
+        	<ul>
+          		<li>
+            		<a href="../../../../../../overview-summary.html">Overview</a>
+          		</li>
+          		<li class="selected">Package</li>
+        	</ul>
+      	</div>
+      	<div class="framenoframe">
+        	<ul>
+          		<li>
+            		<a href="../../../../../../index.html" target="_top">FRAMES</a>
+          		</li>
+          		<li>
+            		<a href="package-summary.html" target="_top">NO FRAMES</a>
+          		</li>
+        	</ul>
+      	</div>
+		
+		      	<h2>Package org.apache.commons.compress.compressors.xz</h2>
+
+		<table class="summary">
+        	<thead>
+          		<tr>
+            		<th>Class Summary</th>
+          		</tr>
+        	</thead>
+        	<tbody>
+        		            	<tr>
+              		<td>
+                		<a href="XZCompressorInputStreamTest.html" target="classFrame">XZCompressorInputStreamTest</a>
+              		</td>
+            	</tr>
+				            	<tr>
+              		<td>
+                		<a href="XZUtilsTestCase.html" target="classFrame">XZUtilsTestCase</a>
+              		</td>
+            	</tr>
+				        	</tbody>
+      	</table>
+		
+		      	<div class="overview">
+        	<ul>
+          		<li>
+            		<a href="../../../../../../overview-summary.html">Overview</a>
+          		</li>
+          		<li class="selected">Package</li>
+        	</ul>
+      	</div>
+      	<div class="framenoframe">
+        	<ul>
+          		<li>
+            		<a href="../../../../../../index.html" target="_top">FRAMES</a>
+          		</li>
+          		<li>
+            		<a href="package-summary.html" target="_top">NO FRAMES</a>
+          		</li>
+        	</ul>
+      	</div>
+				<hr />
+		<div id="footer">
+			Copyright &#169; 2014 <a href="http://www.apache.org/">The Apache Software Foundation</a>. All rights reserved.
+		</div>
+	</body>
+</html>
\ No newline at end of file

Propchange: websites/production/commons/content/proper/commons-compress/xref-test/org/apache/commons/compress/compressors/xz/package-summary.html
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: websites/production/commons/content/proper/commons-compress/xref-test/overview-frame.html
==============================================================================
--- websites/production/commons/content/proper/commons-compress/xref-test/overview-frame.html (original)
+++ websites/production/commons/content/proper/commons-compress/xref-test/overview-frame.html Sun Aug 31 19:27:46 2014
@@ -58,12 +58,18 @@
 				<a href="org/apache/commons/compress/compressors/bzip2/package-frame.html" target="packageFrame">org.apache.commons.compress.compressors.bzip2</a>
 			</li>
 						<li>
+				<a href="org/apache/commons/compress/compressors/deflate/package-frame.html" target="packageFrame">org.apache.commons.compress.compressors.deflate</a>
+			</li>
+						<li>
 				<a href="org/apache/commons/compress/compressors/pack200/package-frame.html" target="packageFrame">org.apache.commons.compress.compressors.pack200</a>
 			</li>
 						<li>
 				<a href="org/apache/commons/compress/compressors/snappy/package-frame.html" target="packageFrame">org.apache.commons.compress.compressors.snappy</a>
 			</li>
 						<li>
+				<a href="org/apache/commons/compress/compressors/xz/package-frame.html" target="packageFrame">org.apache.commons.compress.compressors.xz</a>
+			</li>
+						<li>
 				<a href="org/apache/commons/compress/utils/package-frame.html" target="packageFrame">org.apache.commons.compress.utils</a>
 			</li>
 					</ul>

Modified: websites/production/commons/content/proper/commons-compress/xref-test/overview-summary.html
==============================================================================
--- websites/production/commons/content/proper/commons-compress/xref-test/overview-summary.html (original)
+++ websites/production/commons/content/proper/commons-compress/xref-test/overview-summary.html Sun Aug 31 19:27:46 2014
@@ -105,6 +105,11 @@
             	</tr>
 	          	            	<tr>
               		<td>
+                		<a href="org/apache/commons/compress/compressors/deflate/package-summary.html">org.apache.commons.compress.compressors.deflate</a>
+              		</td>
+            	</tr>
+	          	            	<tr>
+              		<td>
                 		<a href="org/apache/commons/compress/compressors/pack200/package-summary.html">org.apache.commons.compress.compressors.pack200</a>
               		</td>
             	</tr>
@@ -115,6 +120,11 @@
             	</tr>
 	          	            	<tr>
               		<td>
+                		<a href="org/apache/commons/compress/compressors/xz/package-summary.html">org.apache.commons.compress.compressors.xz</a>
+              		</td>
+            	</tr>
+	          	            	<tr>
+              		<td>
                 		<a href="org/apache/commons/compress/utils/package-summary.html">org.apache.commons.compress.utils</a>
               		</td>
             	</tr>

Modified: websites/production/commons/content/proper/commons-compress/xref/allclasses-frame.html
==============================================================================
--- websites/production/commons/content/proper/commons-compress/xref/allclasses-frame.html (original)
+++ websites/production/commons/content/proper/commons-compress/xref/allclasses-frame.html Sun Aug 31 19:27:46 2014
@@ -99,6 +99,9 @@
 				<a href="org/apache/commons/compress/archivers/sevenz/BoundedRandomAccessFileInputStream.html" target="classFrame">BoundedRandomAccessFileInputStream</a>
 			</li>
 						<li>
+				<a href="org/apache/commons/compress/archivers/sevenz/CLI.html" target="classFrame">CLI</a>
+			</li>
+						<li>
 				<a href="org/apache/commons/compress/archivers/dump/DumpArchiveConstants.html" target="classFrame">COMPRESSION_TYPE</a>
 			</li>
 						<li>
@@ -108,6 +111,9 @@
 				<a href="org/apache/commons/compress/utils/CRC32VerifyingInputStream.html" target="classFrame">CRC32VerifyingInputStream</a>
 			</li>
 						<li>
+				<a href="org/apache/commons/compress/compressors/xz/XZUtils.html" target="classFrame">CachedAvailability</a>
+			</li>
+						<li>
 				<a href="org/apache/commons/compress/changes/Change.html" target="classFrame">Change</a>
 			</li>
 						<li>
@@ -315,6 +321,9 @@
 				<a href="org/apache/commons/compress/archivers/arj/LocalFileHeader.html" target="classFrame">Methods</a>
 			</li>
 						<li>
+				<a href="org/apache/commons/compress/archivers/sevenz/CLI.html" target="classFrame">Mode</a>
+			</li>
+						<li>
 				<a href="org/apache/commons/compress/archivers/sevenz/NID.html" target="classFrame">NID</a>
 			</li>
 						<li>

Modified: websites/production/commons/content/proper/commons-compress/xref/org/apache/commons/compress/archivers/sevenz/AES256SHA256Decoder.html
==============================================================================
--- websites/production/commons/content/proper/commons-compress/xref/org/apache/commons/compress/archivers/sevenz/AES256SHA256Decoder.html (original)
+++ websites/production/commons/content/proper/commons-compress/xref/org/apache/commons/compress/archivers/sevenz/AES256SHA256Decoder.html Sun Aug 31 19:27:46 2014
@@ -38,99 +38,100 @@
 <a class="jxr_linenumber" name="L30" href="#L30">30</a>  
 <a class="jxr_linenumber" name="L31" href="#L31">31</a>  <strong class="jxr_keyword">class</strong> <a href="../../../../../../org/apache/commons/compress/archivers/sevenz/AES256SHA256Decoder.html">AES256SHA256Decoder</a> <strong class="jxr_keyword">extends</strong> <a href="../../../../../../org/apache/commons/compress/archivers/sevenz/CoderBase.html">CoderBase</a> {
 <a class="jxr_linenumber" name="L32" href="#L32">32</a>      @Override
-<a class="jxr_linenumber" name="L33" href="#L33">33</a>      InputStream decode(<strong class="jxr_keyword">final</strong> InputStream in, <strong class="jxr_keyword">final</strong> <a href="../../../../../../org/apache/commons/compress/archivers/sevenz/Coder.html">Coder</a> coder, <strong class="jxr_keyword">final</strong> byte[] passwordBytes) <strong class="jxr_keyword">throws</strong> IOException {
-<a class="jxr_linenumber" name="L34" href="#L34">34</a>          <strong class="jxr_keyword">return</strong> <strong class="jxr_keyword">new</strong> InputStream() {
-<a class="jxr_linenumber" name="L35" href="#L35">35</a>              <strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">boolean</strong> isInitialized = false;
-<a class="jxr_linenumber" name="L36" href="#L36">36</a>              <strong class="jxr_keyword">private</strong> CipherInputStream cipherInputStream = <strong class="jxr_keyword">null</strong>;
-<a class="jxr_linenumber" name="L37" href="#L37">37</a>                  
-<a class="jxr_linenumber" name="L38" href="#L38">38</a>              <strong class="jxr_keyword">private</strong> CipherInputStream init() <strong class="jxr_keyword">throws</strong> IOException {
-<a class="jxr_linenumber" name="L39" href="#L39">39</a>                  <strong class="jxr_keyword">if</strong> (isInitialized) {
-<a class="jxr_linenumber" name="L40" href="#L40">40</a>                      <strong class="jxr_keyword">return</strong> cipherInputStream;
-<a class="jxr_linenumber" name="L41" href="#L41">41</a>                  }
-<a class="jxr_linenumber" name="L42" href="#L42">42</a>                  <strong class="jxr_keyword">final</strong> <strong class="jxr_keyword">int</strong> byte0 = 0xff &amp; coder.properties[0];
-<a class="jxr_linenumber" name="L43" href="#L43">43</a>                  <strong class="jxr_keyword">final</strong> <strong class="jxr_keyword">int</strong> numCyclesPower = byte0 &amp; 0x3f;
-<a class="jxr_linenumber" name="L44" href="#L44">44</a>                  <strong class="jxr_keyword">final</strong> <strong class="jxr_keyword">int</strong> byte1 = 0xff &amp; coder.properties[1];
-<a class="jxr_linenumber" name="L45" href="#L45">45</a>                  <strong class="jxr_keyword">final</strong> <strong class="jxr_keyword">int</strong> ivSize = ((byte0 &gt;&gt; 6) &amp; 1) + (byte1 &amp; 0x0f);
-<a class="jxr_linenumber" name="L46" href="#L46">46</a>                  <strong class="jxr_keyword">final</strong> <strong class="jxr_keyword">int</strong> saltSize = ((byte0 &gt;&gt; 7) &amp; 1) + (byte1 &gt;&gt; 4);
-<a class="jxr_linenumber" name="L47" href="#L47">47</a>                  <strong class="jxr_keyword">if</strong> (2 + saltSize + ivSize &gt; coder.properties.length) {
-<a class="jxr_linenumber" name="L48" href="#L48">48</a>                      <strong class="jxr_keyword">throw</strong> <strong class="jxr_keyword">new</strong> IOException(<span class="jxr_string">"Salt size + IV size too long"</span>);
-<a class="jxr_linenumber" name="L49" href="#L49">49</a>                  }
-<a class="jxr_linenumber" name="L50" href="#L50">50</a>                  <strong class="jxr_keyword">final</strong> byte[] salt = <strong class="jxr_keyword">new</strong> byte[saltSize];
-<a class="jxr_linenumber" name="L51" href="#L51">51</a>                  System.arraycopy(coder.properties, 2, salt, 0, saltSize);
-<a class="jxr_linenumber" name="L52" href="#L52">52</a>                  <strong class="jxr_keyword">final</strong> byte[] iv = <strong class="jxr_keyword">new</strong> byte[16];
-<a class="jxr_linenumber" name="L53" href="#L53">53</a>                  System.arraycopy(coder.properties, 2 + saltSize, iv, 0, ivSize);
-<a class="jxr_linenumber" name="L54" href="#L54">54</a>  
-<a class="jxr_linenumber" name="L55" href="#L55">55</a>                  <strong class="jxr_keyword">if</strong> (passwordBytes == <strong class="jxr_keyword">null</strong>) {
-<a class="jxr_linenumber" name="L56" href="#L56">56</a>                      <strong class="jxr_keyword">throw</strong> <strong class="jxr_keyword">new</strong> IOException(<span class="jxr_string">"Cannot read encrypted files without a password"</span>);
-<a class="jxr_linenumber" name="L57" href="#L57">57</a>                  }
-<a class="jxr_linenumber" name="L58" href="#L58">58</a>                  <strong class="jxr_keyword">final</strong> byte[] aesKeyBytes;
-<a class="jxr_linenumber" name="L59" href="#L59">59</a>                  <strong class="jxr_keyword">if</strong> (numCyclesPower == 0x3f) {
-<a class="jxr_linenumber" name="L60" href="#L60">60</a>                      aesKeyBytes = <strong class="jxr_keyword">new</strong> byte[32];
-<a class="jxr_linenumber" name="L61" href="#L61">61</a>                      System.arraycopy(salt, 0, aesKeyBytes, 0, saltSize);
-<a class="jxr_linenumber" name="L62" href="#L62">62</a>                      System.arraycopy(passwordBytes, 0, aesKeyBytes, saltSize,
-<a class="jxr_linenumber" name="L63" href="#L63">63</a>                                       Math.min(passwordBytes.length, aesKeyBytes.length - saltSize));
-<a class="jxr_linenumber" name="L64" href="#L64">64</a>                  } <strong class="jxr_keyword">else</strong> {
-<a class="jxr_linenumber" name="L65" href="#L65">65</a>                      <strong class="jxr_keyword">final</strong> MessageDigest digest;
-<a class="jxr_linenumber" name="L66" href="#L66">66</a>                      <strong class="jxr_keyword">try</strong> {
-<a class="jxr_linenumber" name="L67" href="#L67">67</a>                          digest = MessageDigest.getInstance(<span class="jxr_string">"SHA-256"</span>);
-<a class="jxr_linenumber" name="L68" href="#L68">68</a>                      } <strong class="jxr_keyword">catch</strong> (NoSuchAlgorithmException noSuchAlgorithmException) {
-<a class="jxr_linenumber" name="L69" href="#L69">69</a>                          IOException ioe = <strong class="jxr_keyword">new</strong> IOException(<span class="jxr_string">"SHA-256 is unsupported by your Java implementation"</span>);
-<a class="jxr_linenumber" name="L70" href="#L70">70</a>                          ioe.initCause(noSuchAlgorithmException);
-<a class="jxr_linenumber" name="L71" href="#L71">71</a>                          <strong class="jxr_keyword">throw</strong> ioe;
-<a class="jxr_linenumber" name="L72" href="#L72">72</a>                          <em class="jxr_comment">// TODO: simplify when Compress requires Java 1.6                </em>
-<a class="jxr_linenumber" name="L73" href="#L73">73</a>  <em class="jxr_comment">//                      throw new IOException("SHA-256 is unsupported by your Java implementation",</em>
-<a class="jxr_linenumber" name="L74" href="#L74">74</a>  <em class="jxr_comment">//                              noSuchAlgorithmException);</em>
-<a class="jxr_linenumber" name="L75" href="#L75">75</a>                      }
-<a class="jxr_linenumber" name="L76" href="#L76">76</a>                      <strong class="jxr_keyword">final</strong> byte[] extra = <strong class="jxr_keyword">new</strong> byte[8];
-<a class="jxr_linenumber" name="L77" href="#L77">77</a>                      <strong class="jxr_keyword">for</strong> (<strong class="jxr_keyword">long</strong> j = 0; j &lt; (1L &lt;&lt; numCyclesPower); j++) {
-<a class="jxr_linenumber" name="L78" href="#L78">78</a>                          digest.update(salt);
-<a class="jxr_linenumber" name="L79" href="#L79">79</a>                          digest.update(passwordBytes);
-<a class="jxr_linenumber" name="L80" href="#L80">80</a>                          digest.update(extra);
-<a class="jxr_linenumber" name="L81" href="#L81">81</a>                          <strong class="jxr_keyword">for</strong> (<strong class="jxr_keyword">int</strong> k = 0; k &lt; extra.length; k++) {
-<a class="jxr_linenumber" name="L82" href="#L82">82</a>                              ++extra[k];
-<a class="jxr_linenumber" name="L83" href="#L83">83</a>                              <strong class="jxr_keyword">if</strong> (extra[k] != 0) {
-<a class="jxr_linenumber" name="L84" href="#L84">84</a>                                  <strong class="jxr_keyword">break</strong>;
-<a class="jxr_linenumber" name="L85" href="#L85">85</a>                              }
-<a class="jxr_linenumber" name="L86" href="#L86">86</a>                          }
-<a class="jxr_linenumber" name="L87" href="#L87">87</a>                      }
-<a class="jxr_linenumber" name="L88" href="#L88">88</a>                      aesKeyBytes = digest.digest();
-<a class="jxr_linenumber" name="L89" href="#L89">89</a>                  }
-<a class="jxr_linenumber" name="L90" href="#L90">90</a>  
-<a class="jxr_linenumber" name="L91" href="#L91">91</a>                  <strong class="jxr_keyword">final</strong> SecretKey aesKey = <strong class="jxr_keyword">new</strong> SecretKeySpec(aesKeyBytes, <span class="jxr_string">"AES"</span>);
-<a class="jxr_linenumber" name="L92" href="#L92">92</a>                  <strong class="jxr_keyword">try</strong> {
-<a class="jxr_linenumber" name="L93" href="#L93">93</a>                      <strong class="jxr_keyword">final</strong> Cipher cipher = Cipher.getInstance(<span class="jxr_string">"AES/CBC/NoPadding"</span>);
-<a class="jxr_linenumber" name="L94" href="#L94">94</a>                      cipher.init(Cipher.DECRYPT_MODE, aesKey, <strong class="jxr_keyword">new</strong> IvParameterSpec(iv));
-<a class="jxr_linenumber" name="L95" href="#L95">95</a>                      cipherInputStream = <strong class="jxr_keyword">new</strong> CipherInputStream(in, cipher);
-<a class="jxr_linenumber" name="L96" href="#L96">96</a>                      isInitialized = <strong class="jxr_keyword">true</strong>;
-<a class="jxr_linenumber" name="L97" href="#L97">97</a>                      <strong class="jxr_keyword">return</strong> cipherInputStream;
-<a class="jxr_linenumber" name="L98" href="#L98">98</a>                  } <strong class="jxr_keyword">catch</strong> (GeneralSecurityException generalSecurityException) {
-<a class="jxr_linenumber" name="L99" href="#L99">99</a>                      IOException ioe = <strong class="jxr_keyword">new</strong> IOException(<span class="jxr_string">"Decryption error "</span> +
-<a class="jxr_linenumber" name="L100" href="#L100">100</a>                                                       <span class="jxr_string">"(do you have the JCE Unlimited Strength Jurisdiction Policy Files installed?)"</span>);
-<a class="jxr_linenumber" name="L101" href="#L101">101</a>                     ioe.initCause(generalSecurityException);
-<a class="jxr_linenumber" name="L102" href="#L102">102</a>                     <strong class="jxr_keyword">throw</strong> ioe;
-<a class="jxr_linenumber" name="L103" href="#L103">103</a>                     <em class="jxr_comment">// TODO: simplify when Compress requires Java 1.6                </em>
-<a class="jxr_linenumber" name="L104" href="#L104">104</a> <em class="jxr_comment">//                  throw new IOException("Decryption error " +</em>
-<a class="jxr_linenumber" name="L105" href="#L105">105</a> <em class="jxr_comment">//                          "(do you have the JCE Unlimited Strength Jurisdiction Policy Files installed?)",</em>
-<a class="jxr_linenumber" name="L106" href="#L106">106</a> <em class="jxr_comment">//                          generalSecurityException);</em>
-<a class="jxr_linenumber" name="L107" href="#L107">107</a>                     }
-<a class="jxr_linenumber" name="L108" href="#L108">108</a>             }
-<a class="jxr_linenumber" name="L109" href="#L109">109</a>                 
-<a class="jxr_linenumber" name="L110" href="#L110">110</a>             @Override
-<a class="jxr_linenumber" name="L111" href="#L111">111</a>             <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">int</strong> read() <strong class="jxr_keyword">throws</strong> IOException {
-<a class="jxr_linenumber" name="L112" href="#L112">112</a>                 <strong class="jxr_keyword">return</strong> init().read();
-<a class="jxr_linenumber" name="L113" href="#L113">113</a>             }
-<a class="jxr_linenumber" name="L114" href="#L114">114</a>                 
-<a class="jxr_linenumber" name="L115" href="#L115">115</a>             @Override
-<a class="jxr_linenumber" name="L116" href="#L116">116</a>             <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">int</strong> read(byte[] b, <strong class="jxr_keyword">int</strong> off, <strong class="jxr_keyword">int</strong> len) <strong class="jxr_keyword">throws</strong> IOException {
-<a class="jxr_linenumber" name="L117" href="#L117">117</a>                 <strong class="jxr_keyword">return</strong> init().read(b, off, len);
-<a class="jxr_linenumber" name="L118" href="#L118">118</a>             }
-<a class="jxr_linenumber" name="L119" href="#L119">119</a>                 
-<a class="jxr_linenumber" name="L120" href="#L120">120</a>             @Override
-<a class="jxr_linenumber" name="L121" href="#L121">121</a>             <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> close() {
-<a class="jxr_linenumber" name="L122" href="#L122">122</a>             }
-<a class="jxr_linenumber" name="L123" href="#L123">123</a>         };
-<a class="jxr_linenumber" name="L124" href="#L124">124</a>     }
-<a class="jxr_linenumber" name="L125" href="#L125">125</a> }
+<a class="jxr_linenumber" name="L33" href="#L33">33</a>      InputStream decode(<strong class="jxr_keyword">final</strong> InputStream in, <strong class="jxr_keyword">long</strong> uncompressedLength,
+<a class="jxr_linenumber" name="L34" href="#L34">34</a>              <strong class="jxr_keyword">final</strong> <a href="../../../../../../org/apache/commons/compress/archivers/sevenz/Coder.html">Coder</a> coder, <strong class="jxr_keyword">final</strong> byte[] passwordBytes) <strong class="jxr_keyword">throws</strong> IOException {
+<a class="jxr_linenumber" name="L35" href="#L35">35</a>          <strong class="jxr_keyword">return</strong> <strong class="jxr_keyword">new</strong> InputStream() {
+<a class="jxr_linenumber" name="L36" href="#L36">36</a>              <strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">boolean</strong> isInitialized = false;
+<a class="jxr_linenumber" name="L37" href="#L37">37</a>              <strong class="jxr_keyword">private</strong> CipherInputStream cipherInputStream = <strong class="jxr_keyword">null</strong>;
+<a class="jxr_linenumber" name="L38" href="#L38">38</a>                  
+<a class="jxr_linenumber" name="L39" href="#L39">39</a>              <strong class="jxr_keyword">private</strong> CipherInputStream init() <strong class="jxr_keyword">throws</strong> IOException {
+<a class="jxr_linenumber" name="L40" href="#L40">40</a>                  <strong class="jxr_keyword">if</strong> (isInitialized) {
+<a class="jxr_linenumber" name="L41" href="#L41">41</a>                      <strong class="jxr_keyword">return</strong> cipherInputStream;
+<a class="jxr_linenumber" name="L42" href="#L42">42</a>                  }
+<a class="jxr_linenumber" name="L43" href="#L43">43</a>                  <strong class="jxr_keyword">final</strong> <strong class="jxr_keyword">int</strong> byte0 = 0xff &amp; coder.properties[0];
+<a class="jxr_linenumber" name="L44" href="#L44">44</a>                  <strong class="jxr_keyword">final</strong> <strong class="jxr_keyword">int</strong> numCyclesPower = byte0 &amp; 0x3f;
+<a class="jxr_linenumber" name="L45" href="#L45">45</a>                  <strong class="jxr_keyword">final</strong> <strong class="jxr_keyword">int</strong> byte1 = 0xff &amp; coder.properties[1];
+<a class="jxr_linenumber" name="L46" href="#L46">46</a>                  <strong class="jxr_keyword">final</strong> <strong class="jxr_keyword">int</strong> ivSize = ((byte0 &gt;&gt; 6) &amp; 1) + (byte1 &amp; 0x0f);
+<a class="jxr_linenumber" name="L47" href="#L47">47</a>                  <strong class="jxr_keyword">final</strong> <strong class="jxr_keyword">int</strong> saltSize = ((byte0 &gt;&gt; 7) &amp; 1) + (byte1 &gt;&gt; 4);
+<a class="jxr_linenumber" name="L48" href="#L48">48</a>                  <strong class="jxr_keyword">if</strong> (2 + saltSize + ivSize &gt; coder.properties.length) {
+<a class="jxr_linenumber" name="L49" href="#L49">49</a>                      <strong class="jxr_keyword">throw</strong> <strong class="jxr_keyword">new</strong> IOException(<span class="jxr_string">"Salt size + IV size too long"</span>);
+<a class="jxr_linenumber" name="L50" href="#L50">50</a>                  }
+<a class="jxr_linenumber" name="L51" href="#L51">51</a>                  <strong class="jxr_keyword">final</strong> byte[] salt = <strong class="jxr_keyword">new</strong> byte[saltSize];
+<a class="jxr_linenumber" name="L52" href="#L52">52</a>                  System.arraycopy(coder.properties, 2, salt, 0, saltSize);
+<a class="jxr_linenumber" name="L53" href="#L53">53</a>                  <strong class="jxr_keyword">final</strong> byte[] iv = <strong class="jxr_keyword">new</strong> byte[16];
+<a class="jxr_linenumber" name="L54" href="#L54">54</a>                  System.arraycopy(coder.properties, 2 + saltSize, iv, 0, ivSize);
+<a class="jxr_linenumber" name="L55" href="#L55">55</a>  
+<a class="jxr_linenumber" name="L56" href="#L56">56</a>                  <strong class="jxr_keyword">if</strong> (passwordBytes == <strong class="jxr_keyword">null</strong>) {
+<a class="jxr_linenumber" name="L57" href="#L57">57</a>                      <strong class="jxr_keyword">throw</strong> <strong class="jxr_keyword">new</strong> IOException(<span class="jxr_string">"Cannot read encrypted files without a password"</span>);
+<a class="jxr_linenumber" name="L58" href="#L58">58</a>                  }
+<a class="jxr_linenumber" name="L59" href="#L59">59</a>                  <strong class="jxr_keyword">final</strong> byte[] aesKeyBytes;
+<a class="jxr_linenumber" name="L60" href="#L60">60</a>                  <strong class="jxr_keyword">if</strong> (numCyclesPower == 0x3f) {
+<a class="jxr_linenumber" name="L61" href="#L61">61</a>                      aesKeyBytes = <strong class="jxr_keyword">new</strong> byte[32];
+<a class="jxr_linenumber" name="L62" href="#L62">62</a>                      System.arraycopy(salt, 0, aesKeyBytes, 0, saltSize);
+<a class="jxr_linenumber" name="L63" href="#L63">63</a>                      System.arraycopy(passwordBytes, 0, aesKeyBytes, saltSize,
+<a class="jxr_linenumber" name="L64" href="#L64">64</a>                                       Math.min(passwordBytes.length, aesKeyBytes.length - saltSize));
+<a class="jxr_linenumber" name="L65" href="#L65">65</a>                  } <strong class="jxr_keyword">else</strong> {
+<a class="jxr_linenumber" name="L66" href="#L66">66</a>                      <strong class="jxr_keyword">final</strong> MessageDigest digest;
+<a class="jxr_linenumber" name="L67" href="#L67">67</a>                      <strong class="jxr_keyword">try</strong> {
+<a class="jxr_linenumber" name="L68" href="#L68">68</a>                          digest = MessageDigest.getInstance(<span class="jxr_string">"SHA-256"</span>);
+<a class="jxr_linenumber" name="L69" href="#L69">69</a>                      } <strong class="jxr_keyword">catch</strong> (NoSuchAlgorithmException noSuchAlgorithmException) {
+<a class="jxr_linenumber" name="L70" href="#L70">70</a>                          IOException ioe = <strong class="jxr_keyword">new</strong> IOException(<span class="jxr_string">"SHA-256 is unsupported by your Java implementation"</span>);
+<a class="jxr_linenumber" name="L71" href="#L71">71</a>                          ioe.initCause(noSuchAlgorithmException);
+<a class="jxr_linenumber" name="L72" href="#L72">72</a>                          <strong class="jxr_keyword">throw</strong> ioe;
+<a class="jxr_linenumber" name="L73" href="#L73">73</a>                          <em class="jxr_comment">// TODO: simplify when Compress requires Java 1.6                </em>
+<a class="jxr_linenumber" name="L74" href="#L74">74</a>  <em class="jxr_comment">//                      throw new IOException("SHA-256 is unsupported by your Java implementation",</em>
+<a class="jxr_linenumber" name="L75" href="#L75">75</a>  <em class="jxr_comment">//                              noSuchAlgorithmException);</em>
+<a class="jxr_linenumber" name="L76" href="#L76">76</a>                      }
+<a class="jxr_linenumber" name="L77" href="#L77">77</a>                      <strong class="jxr_keyword">final</strong> byte[] extra = <strong class="jxr_keyword">new</strong> byte[8];
+<a class="jxr_linenumber" name="L78" href="#L78">78</a>                      <strong class="jxr_keyword">for</strong> (<strong class="jxr_keyword">long</strong> j = 0; j &lt; (1L &lt;&lt; numCyclesPower); j++) {
+<a class="jxr_linenumber" name="L79" href="#L79">79</a>                          digest.update(salt);
+<a class="jxr_linenumber" name="L80" href="#L80">80</a>                          digest.update(passwordBytes);
+<a class="jxr_linenumber" name="L81" href="#L81">81</a>                          digest.update(extra);
+<a class="jxr_linenumber" name="L82" href="#L82">82</a>                          <strong class="jxr_keyword">for</strong> (<strong class="jxr_keyword">int</strong> k = 0; k &lt; extra.length; k++) {
+<a class="jxr_linenumber" name="L83" href="#L83">83</a>                              ++extra[k];
+<a class="jxr_linenumber" name="L84" href="#L84">84</a>                              <strong class="jxr_keyword">if</strong> (extra[k] != 0) {
+<a class="jxr_linenumber" name="L85" href="#L85">85</a>                                  <strong class="jxr_keyword">break</strong>;
+<a class="jxr_linenumber" name="L86" href="#L86">86</a>                              }
+<a class="jxr_linenumber" name="L87" href="#L87">87</a>                          }
+<a class="jxr_linenumber" name="L88" href="#L88">88</a>                      }
+<a class="jxr_linenumber" name="L89" href="#L89">89</a>                      aesKeyBytes = digest.digest();
+<a class="jxr_linenumber" name="L90" href="#L90">90</a>                  }
+<a class="jxr_linenumber" name="L91" href="#L91">91</a>  
+<a class="jxr_linenumber" name="L92" href="#L92">92</a>                  <strong class="jxr_keyword">final</strong> SecretKey aesKey = <strong class="jxr_keyword">new</strong> SecretKeySpec(aesKeyBytes, <span class="jxr_string">"AES"</span>);
+<a class="jxr_linenumber" name="L93" href="#L93">93</a>                  <strong class="jxr_keyword">try</strong> {
+<a class="jxr_linenumber" name="L94" href="#L94">94</a>                      <strong class="jxr_keyword">final</strong> Cipher cipher = Cipher.getInstance(<span class="jxr_string">"AES/CBC/NoPadding"</span>);
+<a class="jxr_linenumber" name="L95" href="#L95">95</a>                      cipher.init(Cipher.DECRYPT_MODE, aesKey, <strong class="jxr_keyword">new</strong> IvParameterSpec(iv));
+<a class="jxr_linenumber" name="L96" href="#L96">96</a>                      cipherInputStream = <strong class="jxr_keyword">new</strong> CipherInputStream(in, cipher);
+<a class="jxr_linenumber" name="L97" href="#L97">97</a>                      isInitialized = <strong class="jxr_keyword">true</strong>;
+<a class="jxr_linenumber" name="L98" href="#L98">98</a>                      <strong class="jxr_keyword">return</strong> cipherInputStream;
+<a class="jxr_linenumber" name="L99" href="#L99">99</a>                  } <strong class="jxr_keyword">catch</strong> (GeneralSecurityException generalSecurityException) {
+<a class="jxr_linenumber" name="L100" href="#L100">100</a>                     IOException ioe = <strong class="jxr_keyword">new</strong> IOException(<span class="jxr_string">"Decryption error "</span> +
+<a class="jxr_linenumber" name="L101" href="#L101">101</a>                                                       <span class="jxr_string">"(do you have the JCE Unlimited Strength Jurisdiction Policy Files installed?)"</span>);
+<a class="jxr_linenumber" name="L102" href="#L102">102</a>                     ioe.initCause(generalSecurityException);
+<a class="jxr_linenumber" name="L103" href="#L103">103</a>                     <strong class="jxr_keyword">throw</strong> ioe;
+<a class="jxr_linenumber" name="L104" href="#L104">104</a>                     <em class="jxr_comment">// TODO: simplify when Compress requires Java 1.6                </em>
+<a class="jxr_linenumber" name="L105" href="#L105">105</a> <em class="jxr_comment">//                  throw new IOException("Decryption error " +</em>
+<a class="jxr_linenumber" name="L106" href="#L106">106</a> <em class="jxr_comment">//                          "(do you have the JCE Unlimited Strength Jurisdiction Policy Files installed?)",</em>
+<a class="jxr_linenumber" name="L107" href="#L107">107</a> <em class="jxr_comment">//                          generalSecurityException);</em>
+<a class="jxr_linenumber" name="L108" href="#L108">108</a>                     }
+<a class="jxr_linenumber" name="L109" href="#L109">109</a>             }
+<a class="jxr_linenumber" name="L110" href="#L110">110</a>                 
+<a class="jxr_linenumber" name="L111" href="#L111">111</a>             @Override
+<a class="jxr_linenumber" name="L112" href="#L112">112</a>             <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">int</strong> read() <strong class="jxr_keyword">throws</strong> IOException {
+<a class="jxr_linenumber" name="L113" href="#L113">113</a>                 <strong class="jxr_keyword">return</strong> init().read();
+<a class="jxr_linenumber" name="L114" href="#L114">114</a>             }
+<a class="jxr_linenumber" name="L115" href="#L115">115</a>                 
+<a class="jxr_linenumber" name="L116" href="#L116">116</a>             @Override
+<a class="jxr_linenumber" name="L117" href="#L117">117</a>             <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">int</strong> read(byte[] b, <strong class="jxr_keyword">int</strong> off, <strong class="jxr_keyword">int</strong> len) <strong class="jxr_keyword">throws</strong> IOException {
+<a class="jxr_linenumber" name="L118" href="#L118">118</a>                 <strong class="jxr_keyword">return</strong> init().read(b, off, len);
+<a class="jxr_linenumber" name="L119" href="#L119">119</a>             }
+<a class="jxr_linenumber" name="L120" href="#L120">120</a>                 
+<a class="jxr_linenumber" name="L121" href="#L121">121</a>             @Override
+<a class="jxr_linenumber" name="L122" href="#L122">122</a>             <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> close() {
+<a class="jxr_linenumber" name="L123" href="#L123">123</a>             }
+<a class="jxr_linenumber" name="L124" href="#L124">124</a>         };
+<a class="jxr_linenumber" name="L125" href="#L125">125</a>     }
+<a class="jxr_linenumber" name="L126" href="#L126">126</a> }
 </pre>
 <hr/>
 <div id="footer">Copyright &#169; 2014 <a href="http://www.apache.org/">The Apache Software Foundation</a>. All rights reserved.</div>

Modified: websites/production/commons/content/proper/commons-compress/xref/org/apache/commons/compress/archivers/sevenz/Archive.html
==============================================================================
--- websites/production/commons/content/proper/commons-compress/xref/org/apache/commons/compress/archivers/sevenz/Archive.html (original)
+++ websites/production/commons/content/proper/commons-compress/xref/org/apache/commons/compress/archivers/sevenz/Archive.html Sun Aug 31 19:27:46 2014
@@ -44,7 +44,23 @@
 <a class="jxr_linenumber" name="L36" href="#L36">36</a>      <a href="../../../../../../org/apache/commons/compress/archivers/sevenz/SevenZArchiveEntry.html">SevenZArchiveEntry</a>[] files;
 <a class="jxr_linenumber" name="L37" href="#L37">37</a>      <em class="jxr_comment">/// Mapping between folders, files and streams.</em>
 <a class="jxr_linenumber" name="L38" href="#L38">38</a>      <a href="../../../../../../org/apache/commons/compress/archivers/sevenz/StreamMap.html">StreamMap</a> streamMap;
-<a class="jxr_linenumber" name="L39" href="#L39">39</a>  }
+<a class="jxr_linenumber" name="L39" href="#L39">39</a>  
+<a class="jxr_linenumber" name="L40" href="#L40">40</a>      @Override
+<a class="jxr_linenumber" name="L41" href="#L41">41</a>      <strong class="jxr_keyword">public</strong> String toString() {
+<a class="jxr_linenumber" name="L42" href="#L42">42</a>          <strong class="jxr_keyword">return</strong> <span class="jxr_string">"Archive with packed streams starting at offset "</span> + packPos
+<a class="jxr_linenumber" name="L43" href="#L43">43</a>              + <span class="jxr_string">", "</span> + lengthOf(packSizes) + <span class="jxr_string">" pack sizes, "</span> + lengthOf(packCrcs)
+<a class="jxr_linenumber" name="L44" href="#L44">44</a>              + <span class="jxr_string">" CRCs, "</span> + lengthOf(folders) + <span class="jxr_string">" folders, "</span> + lengthOf(files)
+<a class="jxr_linenumber" name="L45" href="#L45">45</a>              + <span class="jxr_string">" files and "</span> + streamMap;
+<a class="jxr_linenumber" name="L46" href="#L46">46</a>      }
+<a class="jxr_linenumber" name="L47" href="#L47">47</a>  
+<a class="jxr_linenumber" name="L48" href="#L48">48</a>      <strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">static</strong> String lengthOf(<strong class="jxr_keyword">long</strong>[] a) {
+<a class="jxr_linenumber" name="L49" href="#L49">49</a>          <strong class="jxr_keyword">return</strong> a == <strong class="jxr_keyword">null</strong> ? <span class="jxr_string">"(null)"</span> : String.valueOf(a.length); 
+<a class="jxr_linenumber" name="L50" href="#L50">50</a>      }
+<a class="jxr_linenumber" name="L51" href="#L51">51</a>  
+<a class="jxr_linenumber" name="L52" href="#L52">52</a>      <strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">static</strong> String lengthOf(Object[] a) {
+<a class="jxr_linenumber" name="L53" href="#L53">53</a>          <strong class="jxr_keyword">return</strong> a == <strong class="jxr_keyword">null</strong> ? <span class="jxr_string">"(null)"</span> : String.valueOf(a.length); 
+<a class="jxr_linenumber" name="L54" href="#L54">54</a>      }
+<a class="jxr_linenumber" name="L55" href="#L55">55</a>  }
 </pre>
 <hr/>
 <div id="footer">Copyright &#169; 2014 <a href="http://www.apache.org/">The Apache Software Foundation</a>. All rights reserved.</div>

Modified: websites/production/commons/content/proper/commons-compress/xref/org/apache/commons/compress/archivers/sevenz/BindPair.html
==============================================================================
--- websites/production/commons/content/proper/commons-compress/xref/org/apache/commons/compress/archivers/sevenz/BindPair.html (original)
+++ websites/production/commons/content/proper/commons-compress/xref/org/apache/commons/compress/archivers/sevenz/BindPair.html Sun Aug 31 19:27:46 2014
@@ -28,7 +28,12 @@
 <a class="jxr_linenumber" name="L20" href="#L20">20</a>  <strong class="jxr_keyword">class</strong> <a href="../../../../../../org/apache/commons/compress/archivers/sevenz/BindPair.html">BindPair</a> {
 <a class="jxr_linenumber" name="L21" href="#L21">21</a>      <strong class="jxr_keyword">long</strong> inIndex;
 <a class="jxr_linenumber" name="L22" href="#L22">22</a>      <strong class="jxr_keyword">long</strong> outIndex;
-<a class="jxr_linenumber" name="L23" href="#L23">23</a>  }
+<a class="jxr_linenumber" name="L23" href="#L23">23</a>  
+<a class="jxr_linenumber" name="L24" href="#L24">24</a>      @Override
+<a class="jxr_linenumber" name="L25" href="#L25">25</a>      <strong class="jxr_keyword">public</strong> String toString() {
+<a class="jxr_linenumber" name="L26" href="#L26">26</a>          <strong class="jxr_keyword">return</strong> <span class="jxr_string">"BindPair binding input "</span> + inIndex + <span class="jxr_string">" to output "</span> + outIndex;
+<a class="jxr_linenumber" name="L27" href="#L27">27</a>      }
+<a class="jxr_linenumber" name="L28" href="#L28">28</a>  }
 </pre>
 <hr/>
 <div id="footer">Copyright &#169; 2014 <a href="http://www.apache.org/">The Apache Software Foundation</a>. All rights reserved.</div>

Added: websites/production/commons/content/proper/commons-compress/xref/org/apache/commons/compress/archivers/sevenz/CLI.html
==============================================================================
--- websites/production/commons/content/proper/commons-compress/xref/org/apache/commons/compress/archivers/sevenz/CLI.html (added)
+++ websites/production/commons/content/proper/commons-compress/xref/org/apache/commons/compress/archivers/sevenz/CLI.html Sun Aug 31 19:27:46 2014
@@ -0,0 +1,163 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
+<head><meta http-equiv="content-type" content="text/html; charset=iso-8859-1" />
+<title>CLI xref</title>
+<link type="text/css" rel="stylesheet" href="../../../../../../stylesheet.css" />
+</head>
+<body>
+<div id="overview"><a href="../../../../../../../apidocs/org/apache/commons/compress/archivers/sevenz/CLI.html">View Javadoc</a></div><pre>
+<a class="jxr_linenumber" name="L1" href="#L1">1</a>   <em class="jxr_comment">/*</em>
+<a class="jxr_linenumber" name="L2" href="#L2">2</a>   <em class="jxr_comment"> *  Licensed to the Apache Software Foundation (ASF) under one or more</em>
+<a class="jxr_linenumber" name="L3" href="#L3">3</a>   <em class="jxr_comment"> *  contributor license agreements.  See the NOTICE file distributed with</em>
+<a class="jxr_linenumber" name="L4" href="#L4">4</a>   <em class="jxr_comment"> *  this work for additional information regarding copyright ownership.</em>
+<a class="jxr_linenumber" name="L5" href="#L5">5</a>   <em class="jxr_comment"> *  The ASF licenses this file to You under the Apache License, Version 2.0</em>
+<a class="jxr_linenumber" name="L6" href="#L6">6</a>   <em class="jxr_comment"> *  (the "License"); you may not use this file except in compliance with</em>
+<a class="jxr_linenumber" name="L7" href="#L7">7</a>   <em class="jxr_comment"> *  the License.  You may obtain a copy of the License at</em>
+<a class="jxr_linenumber" name="L8" href="#L8">8</a>   <em class="jxr_comment"> *</em>
+<a class="jxr_linenumber" name="L9" href="#L9">9</a>   <em class="jxr_comment"> *      <a href="http://www.apache.org/licenses/LICENSE-2." target="alexandria_uri">http://www.apache.org/licenses/LICENSE-2.</a>0</em>
+<a class="jxr_linenumber" name="L10" href="#L10">10</a>  <em class="jxr_comment"> *</em>
+<a class="jxr_linenumber" name="L11" href="#L11">11</a>  <em class="jxr_comment"> *  Unless required by applicable law or agreed to in writing, software</em>
+<a class="jxr_linenumber" name="L12" href="#L12">12</a>  <em class="jxr_comment"> *  distributed under the License is distributed on an "AS IS" BASIS,</em>
+<a class="jxr_linenumber" name="L13" href="#L13">13</a>  <em class="jxr_comment"> *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.</em>
+<a class="jxr_linenumber" name="L14" href="#L14">14</a>  <em class="jxr_comment"> *  See the License for the specific language governing permissions and</em>
+<a class="jxr_linenumber" name="L15" href="#L15">15</a>  <em class="jxr_comment"> *  limitations under the License.</em>
+<a class="jxr_linenumber" name="L16" href="#L16">16</a>  <em class="jxr_comment"> *</em>
+<a class="jxr_linenumber" name="L17" href="#L17">17</a>  <em class="jxr_comment"> */</em>
+<a class="jxr_linenumber" name="L18" href="#L18">18</a>  <strong class="jxr_keyword">package</strong> org.apache.commons.compress.archivers.sevenz;
+<a class="jxr_linenumber" name="L19" href="#L19">19</a>  
+<a class="jxr_linenumber" name="L20" href="#L20">20</a>  <strong class="jxr_keyword">import</strong> java.io.File;
+<a class="jxr_linenumber" name="L21" href="#L21">21</a>  <strong class="jxr_keyword">import</strong> java.io.FileOutputStream;
+<a class="jxr_linenumber" name="L22" href="#L22">22</a>  <strong class="jxr_keyword">import</strong> java.io.IOException;
+<a class="jxr_linenumber" name="L23" href="#L23">23</a>  
+<a class="jxr_linenumber" name="L24" href="#L24">24</a>  <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">class</strong> <a href="../../../../../../org/apache/commons/compress/archivers/sevenz/CLI.html">CLI</a> {
+<a class="jxr_linenumber" name="L25" href="#L25">25</a>  
+<a class="jxr_linenumber" name="L26" href="#L26">26</a>      <strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">static</strong> <strong class="jxr_keyword">final</strong> byte[] BUF = <strong class="jxr_keyword">new</strong> byte[8192];
+<a class="jxr_linenumber" name="L27" href="#L27">27</a>  
+<a class="jxr_linenumber" name="L28" href="#L28">28</a>      <strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">static</strong> enum <a href="../../../../../../org/apache/commons/compress/archivers/sevenz/CLI.html">Mode</a> {
+<a class="jxr_linenumber" name="L29" href="#L29">29</a>          LIST(<span class="jxr_string">"Analysing"</span>) {
+<a class="jxr_linenumber" name="L30" href="#L30">30</a>              <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> takeAction(<a href="../../../../../../org/apache/commons/compress/archivers/sevenz/SevenZFile.html">SevenZFile</a> archive, <a href="../../../../../../org/apache/commons/compress/archivers/sevenz/SevenZArchiveEntry.html">SevenZArchiveEntry</a> entry) {
+<a class="jxr_linenumber" name="L31" href="#L31">31</a>                  System.out.print(entry.getName());
+<a class="jxr_linenumber" name="L32" href="#L32">32</a>                  <strong class="jxr_keyword">if</strong> (entry.isDirectory()) {
+<a class="jxr_linenumber" name="L33" href="#L33">33</a>                      System.out.print(<span class="jxr_string">" dir"</span>);
+<a class="jxr_linenumber" name="L34" href="#L34">34</a>                  } <strong class="jxr_keyword">else</strong> {
+<a class="jxr_linenumber" name="L35" href="#L35">35</a>                      System.out.print(<span class="jxr_string">" "</span> + entry.getCompressedSize()
+<a class="jxr_linenumber" name="L36" href="#L36">36</a>                                       + <span class="jxr_string">"/"</span> + entry.getSize());
+<a class="jxr_linenumber" name="L37" href="#L37">37</a>                  }
+<a class="jxr_linenumber" name="L38" href="#L38">38</a>                  <strong class="jxr_keyword">if</strong> (entry.getHasLastModifiedDate()) {
+<a class="jxr_linenumber" name="L39" href="#L39">39</a>                      System.out.print(<span class="jxr_string">" "</span> + entry.getLastModifiedDate());
+<a class="jxr_linenumber" name="L40" href="#L40">40</a>                  } <strong class="jxr_keyword">else</strong> {
+<a class="jxr_linenumber" name="L41" href="#L41">41</a>                      System.out.print(<span class="jxr_string">" no last modified date"</span>);
+<a class="jxr_linenumber" name="L42" href="#L42">42</a>                  }
+<a class="jxr_linenumber" name="L43" href="#L43">43</a>                  <strong class="jxr_keyword">if</strong> (!entry.isDirectory()) {
+<a class="jxr_linenumber" name="L44" href="#L44">44</a>                      System.out.println(<span class="jxr_string">" "</span> + getContentMethods(entry));
+<a class="jxr_linenumber" name="L45" href="#L45">45</a>                  } <strong class="jxr_keyword">else</strong> {
+<a class="jxr_linenumber" name="L46" href="#L46">46</a>                      System.out.println(<span class="jxr_string">""</span>);
+<a class="jxr_linenumber" name="L47" href="#L47">47</a>                  }
+<a class="jxr_linenumber" name="L48" href="#L48">48</a>              }
+<a class="jxr_linenumber" name="L49" href="#L49">49</a>  
+<a class="jxr_linenumber" name="L50" href="#L50">50</a>              <strong class="jxr_keyword">private</strong> String getContentMethods(<a href="../../../../../../org/apache/commons/compress/archivers/sevenz/SevenZArchiveEntry.html">SevenZArchiveEntry</a> entry) {
+<a class="jxr_linenumber" name="L51" href="#L51">51</a>                  StringBuilder sb = <strong class="jxr_keyword">new</strong> StringBuilder();
+<a class="jxr_linenumber" name="L52" href="#L52">52</a>                  <strong class="jxr_keyword">boolean</strong> first = <strong class="jxr_keyword">true</strong>;
+<a class="jxr_linenumber" name="L53" href="#L53">53</a>                  <strong class="jxr_keyword">for</strong> (SevenZMethodConfiguration m : entry.getContentMethods()) {
+<a class="jxr_linenumber" name="L54" href="#L54">54</a>                      <strong class="jxr_keyword">if</strong> (!first) {
+<a class="jxr_linenumber" name="L55" href="#L55">55</a>                          sb.append(<span class="jxr_string">", "</span>);
+<a class="jxr_linenumber" name="L56" href="#L56">56</a>                      }
+<a class="jxr_linenumber" name="L57" href="#L57">57</a>                      first = false;
+<a class="jxr_linenumber" name="L58" href="#L58">58</a>                      sb.append(m.getMethod());
+<a class="jxr_linenumber" name="L59" href="#L59">59</a>                      <strong class="jxr_keyword">if</strong> (m.getOptions() != <strong class="jxr_keyword">null</strong>) {
+<a class="jxr_linenumber" name="L60" href="#L60">60</a>                          sb.append(<span class="jxr_string">"("</span> + m.getOptions() + <span class="jxr_string">")"</span>);
+<a class="jxr_linenumber" name="L61" href="#L61">61</a>                      }
+<a class="jxr_linenumber" name="L62" href="#L62">62</a>                  }
+<a class="jxr_linenumber" name="L63" href="#L63">63</a>                  <strong class="jxr_keyword">return</strong> sb.toString();
+<a class="jxr_linenumber" name="L64" href="#L64">64</a>              }
+<a class="jxr_linenumber" name="L65" href="#L65">65</a>          },
+<a class="jxr_linenumber" name="L66" href="#L66">66</a>          EXTRACT(<span class="jxr_string">"Extracting"</span>) {
+<a class="jxr_linenumber" name="L67" href="#L67">67</a>              <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> takeAction(<a href="../../../../../../org/apache/commons/compress/archivers/sevenz/SevenZFile.html">SevenZFile</a> archive, <a href="../../../../../../org/apache/commons/compress/archivers/sevenz/SevenZArchiveEntry.html">SevenZArchiveEntry</a> entry) 
+<a class="jxr_linenumber" name="L68" href="#L68">68</a>                  <strong class="jxr_keyword">throws</strong> IOException {
+<a class="jxr_linenumber" name="L69" href="#L69">69</a>                  File outFile = <strong class="jxr_keyword">new</strong> File(entry.getName());
+<a class="jxr_linenumber" name="L70" href="#L70">70</a>                  <strong class="jxr_keyword">if</strong> (entry.isDirectory()) {
+<a class="jxr_linenumber" name="L71" href="#L71">71</a>                      <strong class="jxr_keyword">if</strong> (!outFile.isDirectory() &amp;&amp; !outFile.mkdirs()) {
+<a class="jxr_linenumber" name="L72" href="#L72">72</a>                          <strong class="jxr_keyword">throw</strong> <strong class="jxr_keyword">new</strong> IOException(<span class="jxr_string">"Cannot create directory "</span> + outFile);
+<a class="jxr_linenumber" name="L73" href="#L73">73</a>                      }
+<a class="jxr_linenumber" name="L74" href="#L74">74</a>                      System.out.println(<span class="jxr_string">"created directory "</span> + outFile);
+<a class="jxr_linenumber" name="L75" href="#L75">75</a>                      <strong class="jxr_keyword">return</strong>;
+<a class="jxr_linenumber" name="L76" href="#L76">76</a>                  }
+<a class="jxr_linenumber" name="L77" href="#L77">77</a>  
+<a class="jxr_linenumber" name="L78" href="#L78">78</a>                  System.out.println(<span class="jxr_string">"extracting to "</span> + outFile);
+<a class="jxr_linenumber" name="L79" href="#L79">79</a>                  File parent = outFile.getParentFile();
+<a class="jxr_linenumber" name="L80" href="#L80">80</a>                  <strong class="jxr_keyword">if</strong> (parent != <strong class="jxr_keyword">null</strong> &amp;&amp; !parent.exists() &amp;&amp; !parent.mkdirs()) {
+<a class="jxr_linenumber" name="L81" href="#L81">81</a>                      <strong class="jxr_keyword">throw</strong> <strong class="jxr_keyword">new</strong> IOException(<span class="jxr_string">"Cannot create "</span> + parent);
+<a class="jxr_linenumber" name="L82" href="#L82">82</a>                  }
+<a class="jxr_linenumber" name="L83" href="#L83">83</a>                  FileOutputStream fos = <strong class="jxr_keyword">new</strong> FileOutputStream(outFile);
+<a class="jxr_linenumber" name="L84" href="#L84">84</a>                  <strong class="jxr_keyword">try</strong> {
+<a class="jxr_linenumber" name="L85" href="#L85">85</a>                      <strong class="jxr_keyword">final</strong> <strong class="jxr_keyword">long</strong> total = entry.getSize();
+<a class="jxr_linenumber" name="L86" href="#L86">86</a>                      <strong class="jxr_keyword">long</strong> off = 0;
+<a class="jxr_linenumber" name="L87" href="#L87">87</a>                      <strong class="jxr_keyword">while</strong> (off &lt; total) {
+<a class="jxr_linenumber" name="L88" href="#L88">88</a>                          <strong class="jxr_keyword">int</strong> toRead = (<strong class="jxr_keyword">int</strong>) Math.min(total - off, BUF.length);
+<a class="jxr_linenumber" name="L89" href="#L89">89</a>                          <strong class="jxr_keyword">int</strong> bytesRead = archive.read(BUF, 0, toRead);
+<a class="jxr_linenumber" name="L90" href="#L90">90</a>                          <strong class="jxr_keyword">if</strong> (bytesRead &lt; 1) {
+<a class="jxr_linenumber" name="L91" href="#L91">91</a>                              <strong class="jxr_keyword">throw</strong> <strong class="jxr_keyword">new</strong> IOException(<span class="jxr_string">"reached end of entry "</span>
+<a class="jxr_linenumber" name="L92" href="#L92">92</a>                                                    + entry.getName()
+<a class="jxr_linenumber" name="L93" href="#L93">93</a>                                                    + <span class="jxr_string">" after "</span> + off
+<a class="jxr_linenumber" name="L94" href="#L94">94</a>                                                    + <span class="jxr_string">" bytes, expected "</span>
+<a class="jxr_linenumber" name="L95" href="#L95">95</a>                                                    + total);
+<a class="jxr_linenumber" name="L96" href="#L96">96</a>                          }
+<a class="jxr_linenumber" name="L97" href="#L97">97</a>                          off += bytesRead;
+<a class="jxr_linenumber" name="L98" href="#L98">98</a>                          fos.write(BUF, 0, bytesRead);
+<a class="jxr_linenumber" name="L99" href="#L99">99</a>                      }
+<a class="jxr_linenumber" name="L100" href="#L100">100</a>                 } <strong class="jxr_keyword">finally</strong> {
+<a class="jxr_linenumber" name="L101" href="#L101">101</a>                     fos.close();
+<a class="jxr_linenumber" name="L102" href="#L102">102</a>                 }
+<a class="jxr_linenumber" name="L103" href="#L103">103</a>             }
+<a class="jxr_linenumber" name="L104" href="#L104">104</a>         };
+<a class="jxr_linenumber" name="L105" href="#L105">105</a> 
+<a class="jxr_linenumber" name="L106" href="#L106">106</a>         <strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">final</strong> String message;
+<a class="jxr_linenumber" name="L107" href="#L107">107</a>         <strong class="jxr_keyword">private</strong> <a href="../../../../../../org/apache/commons/compress/archivers/sevenz/CLI.html">Mode</a>(String message) {
+<a class="jxr_linenumber" name="L108" href="#L108">108</a>             <strong class="jxr_keyword">this</strong>.message = message;
+<a class="jxr_linenumber" name="L109" href="#L109">109</a>         }
+<a class="jxr_linenumber" name="L110" href="#L110">110</a>         <strong class="jxr_keyword">public</strong> String getMessage() {
+<a class="jxr_linenumber" name="L111" href="#L111">111</a>             <strong class="jxr_keyword">return</strong> message;
+<a class="jxr_linenumber" name="L112" href="#L112">112</a>         }
+<a class="jxr_linenumber" name="L113" href="#L113">113</a>         <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">abstract</strong> <strong class="jxr_keyword">void</strong> takeAction(<a href="../../../../../../org/apache/commons/compress/archivers/sevenz/SevenZFile.html">SevenZFile</a> archive, <a href="../../../../../../org/apache/commons/compress/archivers/sevenz/SevenZArchiveEntry.html">SevenZArchiveEntry</a> entry)
+<a class="jxr_linenumber" name="L114" href="#L114">114</a>             <strong class="jxr_keyword">throws</strong> IOException;
+<a class="jxr_linenumber" name="L115" href="#L115">115</a>     }        
+<a class="jxr_linenumber" name="L116" href="#L116">116</a> 
+<a class="jxr_linenumber" name="L117" href="#L117">117</a>     <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">static</strong> <strong class="jxr_keyword">void</strong> main(String[] args) <strong class="jxr_keyword">throws</strong> Exception {
+<a class="jxr_linenumber" name="L118" href="#L118">118</a>         <strong class="jxr_keyword">if</strong> (args.length == 0) {
+<a class="jxr_linenumber" name="L119" href="#L119">119</a>             usage();
+<a class="jxr_linenumber" name="L120" href="#L120">120</a>             <strong class="jxr_keyword">return</strong>;
+<a class="jxr_linenumber" name="L121" href="#L121">121</a>         }
+<a class="jxr_linenumber" name="L122" href="#L122">122</a>         <a href="../../../../../../org/apache/commons/compress/archivers/sevenz/CLI.html">Mode</a> mode = grabMode(args);
+<a class="jxr_linenumber" name="L123" href="#L123">123</a>         System.out.println(mode.getMessage() + <span class="jxr_string">" "</span> + args[0]);
+<a class="jxr_linenumber" name="L124" href="#L124">124</a>         File f = <strong class="jxr_keyword">new</strong> File(args[0]);
+<a class="jxr_linenumber" name="L125" href="#L125">125</a>         <strong class="jxr_keyword">if</strong> (!f.isFile()) {
+<a class="jxr_linenumber" name="L126" href="#L126">126</a>             System.err.println(f + <span class="jxr_string">" doesn't exist or is a directory"</span>);
+<a class="jxr_linenumber" name="L127" href="#L127">127</a>         }
+<a class="jxr_linenumber" name="L128" href="#L128">128</a>         <a href="../../../../../../org/apache/commons/compress/archivers/sevenz/SevenZFile.html">SevenZFile</a> archive = <strong class="jxr_keyword">new</strong> <a href="../../../../../../org/apache/commons/compress/archivers/sevenz/SevenZFile.html">SevenZFile</a>(f);
+<a class="jxr_linenumber" name="L129" href="#L129">129</a>         <strong class="jxr_keyword">try</strong> {
+<a class="jxr_linenumber" name="L130" href="#L130">130</a>             <a href="../../../../../../org/apache/commons/compress/archivers/sevenz/SevenZArchiveEntry.html">SevenZArchiveEntry</a> ae;
+<a class="jxr_linenumber" name="L131" href="#L131">131</a>             <strong class="jxr_keyword">while</strong>((ae=archive.getNextEntry()) != <strong class="jxr_keyword">null</strong>) {
+<a class="jxr_linenumber" name="L132" href="#L132">132</a>                 mode.takeAction(archive, ae);
+<a class="jxr_linenumber" name="L133" href="#L133">133</a>             }
+<a class="jxr_linenumber" name="L134" href="#L134">134</a>         } <strong class="jxr_keyword">finally</strong> {
+<a class="jxr_linenumber" name="L135" href="#L135">135</a>             archive.close();
+<a class="jxr_linenumber" name="L136" href="#L136">136</a>         }
+<a class="jxr_linenumber" name="L137" href="#L137">137</a>     }
+<a class="jxr_linenumber" name="L138" href="#L138">138</a> 
+<a class="jxr_linenumber" name="L139" href="#L139">139</a>     <strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">static</strong> <strong class="jxr_keyword">void</strong> usage() {
+<a class="jxr_linenumber" name="L140" href="#L140">140</a>         System.out.println(<span class="jxr_string">"Parameters: archive-name [list|extract]"</span>);
+<a class="jxr_linenumber" name="L141" href="#L141">141</a>     }
+<a class="jxr_linenumber" name="L142" href="#L142">142</a> 
+<a class="jxr_linenumber" name="L143" href="#L143">143</a>     <strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">static</strong> <a href="../../../../../../org/apache/commons/compress/archivers/sevenz/CLI.html">Mode</a> grabMode(String[] args) {
+<a class="jxr_linenumber" name="L144" href="#L144">144</a>         <strong class="jxr_keyword">if</strong> (args.length &lt; 2) {
+<a class="jxr_linenumber" name="L145" href="#L145">145</a>             <strong class="jxr_keyword">return</strong> Mode.LIST;
+<a class="jxr_linenumber" name="L146" href="#L146">146</a>         }
+<a class="jxr_linenumber" name="L147" href="#L147">147</a>         <strong class="jxr_keyword">return</strong> Enum.valueOf(Mode.<strong class="jxr_keyword">class</strong>, args[1].toUpperCase());
+<a class="jxr_linenumber" name="L148" href="#L148">148</a>     }
+<a class="jxr_linenumber" name="L149" href="#L149">149</a> 
+<a class="jxr_linenumber" name="L150" href="#L150">150</a> }
+</pre>
+<hr/>
+<div id="footer">Copyright &#169; 2014 <a href="http://www.apache.org/">The Apache Software Foundation</a>. All rights reserved.</div>
+</body>
+</html>
\ No newline at end of file

Propchange: websites/production/commons/content/proper/commons-compress/xref/org/apache/commons/compress/archivers/sevenz/CLI.html
------------------------------------------------------------------------------
    svn:eol-style = native