logging-general mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From carn...@apache.org
Subject svn commit: r569257 [17/18] - in /logging/site/trunk/docs/log4j/companions/extras: ./ apidocs/ apidocs/org/apache/log4j/ apidocs/org/apache/log4j/class-use/ apidocs/org/apache/log4j/extras/ apidocs/org/apache/log4j/extras/class-use/ apidocs/org/apache/...
Date Fri, 24 Aug 2007 05:43:56 GMT
Modified: logging/site/trunk/docs/log4j/companions/extras/xref/org/apache/log4j/rolling/helper/CompositeAction.html
URL: http://svn.apache.org/viewvc/logging/site/trunk/docs/log4j/companions/extras/xref/org/apache/log4j/rolling/helper/CompositeAction.html?rev=569257&r1=569256&r2=569257&view=diff
==============================================================================
--- logging/site/trunk/docs/log4j/companions/extras/xref/org/apache/log4j/rolling/helper/CompositeAction.html (original)
+++ logging/site/trunk/docs/log4j/companions/extras/xref/org/apache/log4j/rolling/helper/CompositeAction.html Thu Aug 23 22:43:39 2007
@@ -35,81 +35,80 @@
 <a name="26" href="#26">26</a>  <em> * A group of Actions to be executed in sequence.</em>
 <a name="27" href="#27">27</a>  <em> *</em>
 <a name="28" href="#28">28</a>  <em> * @author Curt Arnold</em>
-<a name="29" href="#29">29</a>  <em> * @since 1.3</em>
-<a name="30" href="#30">30</a>  <em> *</em>
-<a name="31" href="#31">31</a>  <em> */</em>
-<a name="32" href="#32">32</a>  <strong>public</strong> <strong>class</strong> <a href="../../../../../org/apache/log4j/rolling/helper/CompositeAction.html">CompositeAction</a> <strong>extends</strong> <a href="../../../../../org/apache/log4j/rolling/helper/ActionBase.html">ActionBase</a> {
-<a name="33" href="#33">33</a>    <em>/**<em>*</em></em>
-<a name="34" href="#34">34</a>  <em>   * Actions to perform.</em>
-<a name="35" href="#35">35</a>  <em>   */</em>
-<a name="36" href="#36">36</a>    <strong>private</strong> <strong>final</strong> <a href="../../../../../org/apache/log4j/rolling/helper/Action.html">Action</a>[] actions;
-<a name="37" href="#37">37</a>  
-<a name="38" href="#38">38</a>    <em>/**<em>*</em></em>
-<a name="39" href="#39">39</a>  <em>   * Stop on error.</em>
-<a name="40" href="#40">40</a>  <em>   */</em>
-<a name="41" href="#41">41</a>    <strong>private</strong> <strong>final</strong> <strong>boolean</strong> stopOnError;
-<a name="42" href="#42">42</a>  
-<a name="43" href="#43">43</a>    <em>/**<em>*</em></em>
-<a name="44" href="#44">44</a>  <em>   * Construct a new composite action.</em>
-<a name="45" href="#45">45</a>  <em>   * @param actions list of actions, may not be null.</em>
-<a name="46" href="#46">46</a>  <em>   * @param stopOnError if true, stop on the first false return value or exception.</em>
-<a name="47" href="#47">47</a>  <em>   */</em>
-<a name="48" href="#48">48</a>    <strong>public</strong> <a href="../../../../../org/apache/log4j/rolling/helper/CompositeAction.html">CompositeAction</a>(<strong>final</strong> List actions, 
-<a name="49" href="#49">49</a>                           <strong>final</strong> <strong>boolean</strong> stopOnError) {
-<a name="50" href="#50">50</a>      <strong>this</strong>.actions = <strong>new</strong> <a href="../../../../../org/apache/log4j/rolling/helper/Action.html">Action</a>[actions.size()];
-<a name="51" href="#51">51</a>      actions.toArray(<strong>this</strong>.actions);
-<a name="52" href="#52">52</a>      <strong>this</strong>.stopOnError = stopOnError;
-<a name="53" href="#53">53</a>    }
-<a name="54" href="#54">54</a>  
-<a name="55" href="#55">55</a>    <em>/**<em>*</em></em>
-<a name="56" href="#56">56</a>  <em>   * {@inheritDoc}</em>
-<a name="57" href="#57">57</a>  <em>   */</em>
-<a name="58" href="#58">58</a>    <strong>public</strong> <strong>void</strong> run() {
-<a name="59" href="#59">59</a>      <strong>try</strong> {
-<a name="60" href="#60">60</a>        execute();
-<a name="61" href="#61">61</a>      } <strong>catch</strong> (IOException ex) {
-<a name="62" href="#62">62</a>           LogLog.warn(<span class="string">"Exception during file rollover."</span>, ex);
-<a name="63" href="#63">63</a>      }
-<a name="64" href="#64">64</a>    }
-<a name="65" href="#65">65</a>  
-<a name="66" href="#66">66</a>    <em>/**<em>*</em></em>
-<a name="67" href="#67">67</a>  <em>   * Execute sequence of actions.</em>
-<a name="68" href="#68">68</a>  <em>   * @return true if all actions were successful.</em>
-<a name="69" href="#69">69</a>  <em>   * @throws IOException on IO error.</em>
-<a name="70" href="#70">70</a>  <em>   */</em>
-<a name="71" href="#71">71</a>    <strong>public</strong> <strong>boolean</strong> execute() throws IOException {
-<a name="72" href="#72">72</a>      <strong>if</strong> (stopOnError) {
-<a name="73" href="#73">73</a>        <strong>for</strong> (<strong>int</strong> i = 0; i &lt; actions.length; i++) {
-<a name="74" href="#74">74</a>          <strong>if</strong> (!actions[i].execute()) {
-<a name="75" href="#75">75</a>            <strong>return</strong> false;
-<a name="76" href="#76">76</a>          }
-<a name="77" href="#77">77</a>        }
-<a name="78" href="#78">78</a>  
-<a name="79" href="#79">79</a>        <strong>return</strong> <strong>true</strong>;
-<a name="80" href="#80">80</a>      } <strong>else</strong> {
-<a name="81" href="#81">81</a>        <strong>boolean</strong> status = <strong>true</strong>;
-<a name="82" href="#82">82</a>        IOException exception = <strong>null</strong>;
-<a name="83" href="#83">83</a>  
-<a name="84" href="#84">84</a>        <strong>for</strong> (<strong>int</strong> i = 0; i &lt; actions.length; i++) {
-<a name="85" href="#85">85</a>          <strong>try</strong> {
-<a name="86" href="#86">86</a>            status &amp;= actions[i].execute();
-<a name="87" href="#87">87</a>          } <strong>catch</strong> (IOException ex) {
-<a name="88" href="#88">88</a>            status = false;
-<a name="89" href="#89">89</a>  
-<a name="90" href="#90">90</a>            <strong>if</strong> (exception == <strong>null</strong>) {
-<a name="91" href="#91">91</a>              exception = ex;
-<a name="92" href="#92">92</a>            }
-<a name="93" href="#93">93</a>          }
-<a name="94" href="#94">94</a>        }
-<a name="95" href="#95">95</a>  
-<a name="96" href="#96">96</a>        <strong>if</strong> (exception != <strong>null</strong>) {
-<a name="97" href="#97">97</a>          <strong>throw</strong> exception;
-<a name="98" href="#98">98</a>        }
-<a name="99" href="#99">99</a>  
-<a name="100" href="#100">100</a>       <strong>return</strong> status;
-<a name="101" href="#101">101</a>     }
-<a name="102" href="#102">102</a>   }
-<a name="103" href="#103">103</a> }
+<a name="29" href="#29">29</a>  <em> *</em>
+<a name="30" href="#30">30</a>  <em> */</em>
+<a name="31" href="#31">31</a>  <strong>public</strong> <strong>class</strong> <a href="../../../../../org/apache/log4j/rolling/helper/CompositeAction.html">CompositeAction</a> <strong>extends</strong> <a href="../../../../../org/apache/log4j/rolling/helper/ActionBase.html">ActionBase</a> {
+<a name="32" href="#32">32</a>    <em>/**<em>*</em></em>
+<a name="33" href="#33">33</a>  <em>   * Actions to perform.</em>
+<a name="34" href="#34">34</a>  <em>   */</em>
+<a name="35" href="#35">35</a>    <strong>private</strong> <strong>final</strong> <a href="../../../../../org/apache/log4j/rolling/helper/Action.html">Action</a>[] actions;
+<a name="36" href="#36">36</a>  
+<a name="37" href="#37">37</a>    <em>/**<em>*</em></em>
+<a name="38" href="#38">38</a>  <em>   * Stop on error.</em>
+<a name="39" href="#39">39</a>  <em>   */</em>
+<a name="40" href="#40">40</a>    <strong>private</strong> <strong>final</strong> <strong>boolean</strong> stopOnError;
+<a name="41" href="#41">41</a>  
+<a name="42" href="#42">42</a>    <em>/**<em>*</em></em>
+<a name="43" href="#43">43</a>  <em>   * Construct a new composite action.</em>
+<a name="44" href="#44">44</a>  <em>   * @param actions list of actions, may not be null.</em>
+<a name="45" href="#45">45</a>  <em>   * @param stopOnError if true, stop on the first false return value or exception.</em>
+<a name="46" href="#46">46</a>  <em>   */</em>
+<a name="47" href="#47">47</a>    <strong>public</strong> <a href="../../../../../org/apache/log4j/rolling/helper/CompositeAction.html">CompositeAction</a>(<strong>final</strong> List actions, 
+<a name="48" href="#48">48</a>                           <strong>final</strong> <strong>boolean</strong> stopOnError) {
+<a name="49" href="#49">49</a>      <strong>this</strong>.actions = <strong>new</strong> <a href="../../../../../org/apache/log4j/rolling/helper/Action.html">Action</a>[actions.size()];
+<a name="50" href="#50">50</a>      actions.toArray(<strong>this</strong>.actions);
+<a name="51" href="#51">51</a>      <strong>this</strong>.stopOnError = stopOnError;
+<a name="52" href="#52">52</a>    }
+<a name="53" href="#53">53</a>  
+<a name="54" href="#54">54</a>    <em>/**<em>*</em></em>
+<a name="55" href="#55">55</a>  <em>   * {@inheritDoc}</em>
+<a name="56" href="#56">56</a>  <em>   */</em>
+<a name="57" href="#57">57</a>    <strong>public</strong> <strong>void</strong> run() {
+<a name="58" href="#58">58</a>      <strong>try</strong> {
+<a name="59" href="#59">59</a>        execute();
+<a name="60" href="#60">60</a>      } <strong>catch</strong> (IOException ex) {
+<a name="61" href="#61">61</a>           LogLog.warn(<span class="string">"Exception during file rollover."</span>, ex);
+<a name="62" href="#62">62</a>      }
+<a name="63" href="#63">63</a>    }
+<a name="64" href="#64">64</a>  
+<a name="65" href="#65">65</a>    <em>/**<em>*</em></em>
+<a name="66" href="#66">66</a>  <em>   * Execute sequence of actions.</em>
+<a name="67" href="#67">67</a>  <em>   * @return true if all actions were successful.</em>
+<a name="68" href="#68">68</a>  <em>   * @throws IOException on IO error.</em>
+<a name="69" href="#69">69</a>  <em>   */</em>
+<a name="70" href="#70">70</a>    <strong>public</strong> <strong>boolean</strong> execute() throws IOException {
+<a name="71" href="#71">71</a>      <strong>if</strong> (stopOnError) {
+<a name="72" href="#72">72</a>        <strong>for</strong> (<strong>int</strong> i = 0; i &lt; actions.length; i++) {
+<a name="73" href="#73">73</a>          <strong>if</strong> (!actions[i].execute()) {
+<a name="74" href="#74">74</a>            <strong>return</strong> false;
+<a name="75" href="#75">75</a>          }
+<a name="76" href="#76">76</a>        }
+<a name="77" href="#77">77</a>  
+<a name="78" href="#78">78</a>        <strong>return</strong> <strong>true</strong>;
+<a name="79" href="#79">79</a>      } <strong>else</strong> {
+<a name="80" href="#80">80</a>        <strong>boolean</strong> status = <strong>true</strong>;
+<a name="81" href="#81">81</a>        IOException exception = <strong>null</strong>;
+<a name="82" href="#82">82</a>  
+<a name="83" href="#83">83</a>        <strong>for</strong> (<strong>int</strong> i = 0; i &lt; actions.length; i++) {
+<a name="84" href="#84">84</a>          <strong>try</strong> {
+<a name="85" href="#85">85</a>            status &amp;= actions[i].execute();
+<a name="86" href="#86">86</a>          } <strong>catch</strong> (IOException ex) {
+<a name="87" href="#87">87</a>            status = false;
+<a name="88" href="#88">88</a>  
+<a name="89" href="#89">89</a>            <strong>if</strong> (exception == <strong>null</strong>) {
+<a name="90" href="#90">90</a>              exception = ex;
+<a name="91" href="#91">91</a>            }
+<a name="92" href="#92">92</a>          }
+<a name="93" href="#93">93</a>        }
+<a name="94" href="#94">94</a>  
+<a name="95" href="#95">95</a>        <strong>if</strong> (exception != <strong>null</strong>) {
+<a name="96" href="#96">96</a>          <strong>throw</strong> exception;
+<a name="97" href="#97">97</a>        }
+<a name="98" href="#98">98</a>  
+<a name="99" href="#99">99</a>        <strong>return</strong> status;
+<a name="100" href="#100">100</a>     }
+<a name="101" href="#101">101</a>   }
+<a name="102" href="#102">102</a> }
 </pre>
 <hr/><div id="footer">This page was automatically generated by <a href="http://maven.apache.org/">Maven</a></div></body>
 </html>

Modified: logging/site/trunk/docs/log4j/companions/extras/xref/org/apache/log4j/rolling/helper/FileRenameAction.html
URL: http://svn.apache.org/viewvc/logging/site/trunk/docs/log4j/companions/extras/xref/org/apache/log4j/rolling/helper/FileRenameAction.html?rev=569257&r1=569256&r2=569257&view=diff
==============================================================================
--- logging/site/trunk/docs/log4j/companions/extras/xref/org/apache/log4j/rolling/helper/FileRenameAction.html (original)
+++ logging/site/trunk/docs/log4j/companions/extras/xref/org/apache/log4j/rolling/helper/FileRenameAction.html Thu Aug 23 22:43:39 2007
@@ -32,63 +32,62 @@
 <a name="23" href="#23">23</a>  <em> * File rename action.</em>
 <a name="24" href="#24">24</a>  <em> *</em>
 <a name="25" href="#25">25</a>  <em> * @author Curt Arnold</em>
-<a name="26" href="#26">26</a>  <em> * @since 1.3</em>
-<a name="27" href="#27">27</a>  <em> */</em>
-<a name="28" href="#28">28</a>  <strong>public</strong> <strong>final</strong> <strong>class</strong> <a href="../../../../../org/apache/log4j/rolling/helper/FileRenameAction.html">FileRenameAction</a> <strong>extends</strong> <a href="../../../../../org/apache/log4j/rolling/helper/ActionBase.html">ActionBase</a> {
-<a name="29" href="#29">29</a>    <em>/**<em>*</em></em>
-<a name="30" href="#30">30</a>  <em>   * Source.</em>
-<a name="31" href="#31">31</a>  <em>   */</em>
-<a name="32" href="#32">32</a>    <strong>private</strong> <strong>final</strong> File source;
-<a name="33" href="#33">33</a>  
-<a name="34" href="#34">34</a>    <em>/**<em>*</em></em>
-<a name="35" href="#35">35</a>  <em>   * Destination.</em>
-<a name="36" href="#36">36</a>  <em>   */</em>
-<a name="37" href="#37">37</a>    <strong>private</strong> <strong>final</strong> File destination;
-<a name="38" href="#38">38</a>  
-<a name="39" href="#39">39</a>    <em>/**<em>*</em></em>
-<a name="40" href="#40">40</a>  <em>   * If true, rename empty files, otherwise delete empty files.</em>
-<a name="41" href="#41">41</a>  <em>   */</em>
-<a name="42" href="#42">42</a>    <strong>private</strong> <strong>final</strong> <strong>boolean</strong> renameEmptyFiles;
-<a name="43" href="#43">43</a>  
-<a name="44" href="#44">44</a>    <em>/**<em>*</em></em>
-<a name="45" href="#45">45</a>  <em>   * Creates an FileRenameAction.</em>
-<a name="46" href="#46">46</a>  <em>   *</em>
-<a name="47" href="#47">47</a>  <em>   * @param src current file name.</em>
-<a name="48" href="#48">48</a>  <em>   * @param dst new file name.</em>
-<a name="49" href="#49">49</a>  <em>   * @param renameEmptyFiles if true, rename file even if empty, otherwise delete empty files.</em>
-<a name="50" href="#50">50</a>  <em>   */</em>
-<a name="51" href="#51">51</a>    <strong>public</strong> <a href="../../../../../org/apache/log4j/rolling/helper/FileRenameAction.html">FileRenameAction</a>(
-<a name="52" href="#52">52</a>      <strong>final</strong> File src, <strong>final</strong> File dst, <strong>boolean</strong> renameEmptyFiles) {
-<a name="53" href="#53">53</a>      source = src;
-<a name="54" href="#54">54</a>      destination = dst;
-<a name="55" href="#55">55</a>      <strong>this</strong>.renameEmptyFiles = renameEmptyFiles;
-<a name="56" href="#56">56</a>    }
-<a name="57" href="#57">57</a>  
-<a name="58" href="#58">58</a>    <em>/**<em>*</em></em>
-<a name="59" href="#59">59</a>  <em>   * Rename file.</em>
-<a name="60" href="#60">60</a>  <em>   *</em>
-<a name="61" href="#61">61</a>  <em>   * @return true if successfully renamed.</em>
-<a name="62" href="#62">62</a>  <em>   */</em>
-<a name="63" href="#63">63</a>    <strong>public</strong> <strong>boolean</strong> execute() {
-<a name="64" href="#64">64</a>      <strong>return</strong> execute(source, destination, renameEmptyFiles);
-<a name="65" href="#65">65</a>    }
-<a name="66" href="#66">66</a>  
-<a name="67" href="#67">67</a>    <em>/**<em>*</em></em>
-<a name="68" href="#68">68</a>  <em>   * Rename file.</em>
-<a name="69" href="#69">69</a>  <em>   * @param source current file name.</em>
-<a name="70" href="#70">70</a>  <em>   * @param destination new file name.</em>
-<a name="71" href="#71">71</a>  <em>   * @param renameEmptyFiles if true, rename file even if empty, otherwise delete empty files.</em>
-<a name="72" href="#72">72</a>  <em>   * @return true if successfully renamed.</em>
-<a name="73" href="#73">73</a>  <em>   */</em>
-<a name="74" href="#74">74</a>    <strong>public</strong> <strong>static</strong> <strong>boolean</strong> execute(
-<a name="75" href="#75">75</a>      <strong>final</strong> File source, <strong>final</strong> File destination, <strong>boolean</strong> renameEmptyFiles) {
-<a name="76" href="#76">76</a>      <strong>if</strong> (renameEmptyFiles || (source.length() > 0)) {
-<a name="77" href="#77">77</a>        <strong>return</strong> source.renameTo(destination);
-<a name="78" href="#78">78</a>      }
-<a name="79" href="#79">79</a>  
-<a name="80" href="#80">80</a>      <strong>return</strong> source.delete();
-<a name="81" href="#81">81</a>    }
-<a name="82" href="#82">82</a>  }
+<a name="26" href="#26">26</a>  <em> */</em>
+<a name="27" href="#27">27</a>  <strong>public</strong> <strong>final</strong> <strong>class</strong> <a href="../../../../../org/apache/log4j/rolling/helper/FileRenameAction.html">FileRenameAction</a> <strong>extends</strong> <a href="../../../../../org/apache/log4j/rolling/helper/ActionBase.html">ActionBase</a> {
+<a name="28" href="#28">28</a>    <em>/**<em>*</em></em>
+<a name="29" href="#29">29</a>  <em>   * Source.</em>
+<a name="30" href="#30">30</a>  <em>   */</em>
+<a name="31" href="#31">31</a>    <strong>private</strong> <strong>final</strong> File source;
+<a name="32" href="#32">32</a>  
+<a name="33" href="#33">33</a>    <em>/**<em>*</em></em>
+<a name="34" href="#34">34</a>  <em>   * Destination.</em>
+<a name="35" href="#35">35</a>  <em>   */</em>
+<a name="36" href="#36">36</a>    <strong>private</strong> <strong>final</strong> File destination;
+<a name="37" href="#37">37</a>  
+<a name="38" href="#38">38</a>    <em>/**<em>*</em></em>
+<a name="39" href="#39">39</a>  <em>   * If true, rename empty files, otherwise delete empty files.</em>
+<a name="40" href="#40">40</a>  <em>   */</em>
+<a name="41" href="#41">41</a>    <strong>private</strong> <strong>final</strong> <strong>boolean</strong> renameEmptyFiles;
+<a name="42" href="#42">42</a>  
+<a name="43" href="#43">43</a>    <em>/**<em>*</em></em>
+<a name="44" href="#44">44</a>  <em>   * Creates an FileRenameAction.</em>
+<a name="45" href="#45">45</a>  <em>   *</em>
+<a name="46" href="#46">46</a>  <em>   * @param src current file name.</em>
+<a name="47" href="#47">47</a>  <em>   * @param dst new file name.</em>
+<a name="48" href="#48">48</a>  <em>   * @param renameEmptyFiles if true, rename file even if empty, otherwise delete empty files.</em>
+<a name="49" href="#49">49</a>  <em>   */</em>
+<a name="50" href="#50">50</a>    <strong>public</strong> <a href="../../../../../org/apache/log4j/rolling/helper/FileRenameAction.html">FileRenameAction</a>(
+<a name="51" href="#51">51</a>      <strong>final</strong> File src, <strong>final</strong> File dst, <strong>boolean</strong> renameEmptyFiles) {
+<a name="52" href="#52">52</a>      source = src;
+<a name="53" href="#53">53</a>      destination = dst;
+<a name="54" href="#54">54</a>      <strong>this</strong>.renameEmptyFiles = renameEmptyFiles;
+<a name="55" href="#55">55</a>    }
+<a name="56" href="#56">56</a>  
+<a name="57" href="#57">57</a>    <em>/**<em>*</em></em>
+<a name="58" href="#58">58</a>  <em>   * Rename file.</em>
+<a name="59" href="#59">59</a>  <em>   *</em>
+<a name="60" href="#60">60</a>  <em>   * @return true if successfully renamed.</em>
+<a name="61" href="#61">61</a>  <em>   */</em>
+<a name="62" href="#62">62</a>    <strong>public</strong> <strong>boolean</strong> execute() {
+<a name="63" href="#63">63</a>      <strong>return</strong> execute(source, destination, renameEmptyFiles);
+<a name="64" href="#64">64</a>    }
+<a name="65" href="#65">65</a>  
+<a name="66" href="#66">66</a>    <em>/**<em>*</em></em>
+<a name="67" href="#67">67</a>  <em>   * Rename file.</em>
+<a name="68" href="#68">68</a>  <em>   * @param source current file name.</em>
+<a name="69" href="#69">69</a>  <em>   * @param destination new file name.</em>
+<a name="70" href="#70">70</a>  <em>   * @param renameEmptyFiles if true, rename file even if empty, otherwise delete empty files.</em>
+<a name="71" href="#71">71</a>  <em>   * @return true if successfully renamed.</em>
+<a name="72" href="#72">72</a>  <em>   */</em>
+<a name="73" href="#73">73</a>    <strong>public</strong> <strong>static</strong> <strong>boolean</strong> execute(
+<a name="74" href="#74">74</a>      <strong>final</strong> File source, <strong>final</strong> File destination, <strong>boolean</strong> renameEmptyFiles) {
+<a name="75" href="#75">75</a>      <strong>if</strong> (renameEmptyFiles || (source.length() > 0)) {
+<a name="76" href="#76">76</a>        <strong>return</strong> source.renameTo(destination);
+<a name="77" href="#77">77</a>      }
+<a name="78" href="#78">78</a>  
+<a name="79" href="#79">79</a>      <strong>return</strong> source.delete();
+<a name="80" href="#80">80</a>    }
+<a name="81" href="#81">81</a>  }
 </pre>
 <hr/><div id="footer">This page was automatically generated by <a href="http://maven.apache.org/">Maven</a></div></body>
 </html>

Modified: logging/site/trunk/docs/log4j/companions/extras/xref/org/apache/log4j/rolling/helper/GZCompressAction.html
URL: http://svn.apache.org/viewvc/logging/site/trunk/docs/log4j/companions/extras/xref/org/apache/log4j/rolling/helper/GZCompressAction.html?rev=569257&r1=569256&r2=569257&view=diff
==============================================================================
--- logging/site/trunk/docs/log4j/companions/extras/xref/org/apache/log4j/rolling/helper/GZCompressAction.html (original)
+++ logging/site/trunk/docs/log4j/companions/extras/xref/org/apache/log4j/rolling/helper/GZCompressAction.html Thu Aug 23 22:43:39 2007
@@ -39,105 +39,104 @@
 <a name="30" href="#30">30</a>  <em> * Compresses a file using GZ compression.</em>
 <a name="31" href="#31">31</a>  <em> *</em>
 <a name="32" href="#32">32</a>  <em> * @author Curt Arnold</em>
-<a name="33" href="#33">33</a>  <em> * @since 1.3</em>
-<a name="34" href="#34">34</a>  <em> */</em>
-<a name="35" href="#35">35</a>  <strong>public</strong> <strong>final</strong> <strong>class</strong> <a href="../../../../../org/apache/log4j/rolling/helper/GZCompressAction.html">GZCompressAction</a> <strong>extends</strong> <a href="../../../../../org/apache/log4j/rolling/helper/ActionBase.html">ActionBase</a> {
-<a name="36" href="#36">36</a>    <em>/**<em>*</em></em>
-<a name="37" href="#37">37</a>  <em>   * Source file.</em>
-<a name="38" href="#38">38</a>  <em>   */</em>
-<a name="39" href="#39">39</a>    <strong>private</strong> <strong>final</strong> File source;
-<a name="40" href="#40">40</a>  
-<a name="41" href="#41">41</a>    <em>/**<em>*</em></em>
-<a name="42" href="#42">42</a>  <em>   * Destination file.</em>
-<a name="43" href="#43">43</a>  <em>   */</em>
-<a name="44" href="#44">44</a>    <strong>private</strong> <strong>final</strong> File destination;
-<a name="45" href="#45">45</a>  
-<a name="46" href="#46">46</a>    <em>/**<em>*</em></em>
-<a name="47" href="#47">47</a>  <em>   * If true, attempt to delete file on completion.</em>
-<a name="48" href="#48">48</a>  <em>   */</em>
-<a name="49" href="#49">49</a>    <strong>private</strong> <strong>final</strong> <strong>boolean</strong> deleteSource;
+<a name="33" href="#33">33</a>  <em> */</em>
+<a name="34" href="#34">34</a>  <strong>public</strong> <strong>final</strong> <strong>class</strong> <a href="../../../../../org/apache/log4j/rolling/helper/GZCompressAction.html">GZCompressAction</a> <strong>extends</strong> <a href="../../../../../org/apache/log4j/rolling/helper/ActionBase.html">ActionBase</a> {
+<a name="35" href="#35">35</a>    <em>/**<em>*</em></em>
+<a name="36" href="#36">36</a>  <em>   * Source file.</em>
+<a name="37" href="#37">37</a>  <em>   */</em>
+<a name="38" href="#38">38</a>    <strong>private</strong> <strong>final</strong> File source;
+<a name="39" href="#39">39</a>  
+<a name="40" href="#40">40</a>    <em>/**<em>*</em></em>
+<a name="41" href="#41">41</a>  <em>   * Destination file.</em>
+<a name="42" href="#42">42</a>  <em>   */</em>
+<a name="43" href="#43">43</a>    <strong>private</strong> <strong>final</strong> File destination;
+<a name="44" href="#44">44</a>  
+<a name="45" href="#45">45</a>    <em>/**<em>*</em></em>
+<a name="46" href="#46">46</a>  <em>   * If true, attempt to delete file on completion.</em>
+<a name="47" href="#47">47</a>  <em>   */</em>
+<a name="48" href="#48">48</a>    <strong>private</strong> <strong>final</strong> <strong>boolean</strong> deleteSource;
+<a name="49" href="#49">49</a>  
 <a name="50" href="#50">50</a>  
-<a name="51" href="#51">51</a>  
-<a name="52" href="#52">52</a>    <em>/**<em>*</em></em>
-<a name="53" href="#53">53</a>  <em>   * Create new instance of GZCompressAction.</em>
-<a name="54" href="#54">54</a>  <em>   *</em>
-<a name="55" href="#55">55</a>  <em>   * @param source file to compress, may not be null.</em>
-<a name="56" href="#56">56</a>  <em>   * @param destination compressed file, may not be null.</em>
-<a name="57" href="#57">57</a>  <em>   * @param deleteSource if true, attempt to delete file on completion.  Failure to delete</em>
-<a name="58" href="#58">58</a>  <em>   * does not cause an exception to be thrown or affect return value.</em>
-<a name="59" href="#59">59</a>  <em>   */</em>
-<a name="60" href="#60">60</a>    <strong>public</strong> <a href="../../../../../org/apache/log4j/rolling/helper/GZCompressAction.html">GZCompressAction</a>(
-<a name="61" href="#61">61</a>      <strong>final</strong> File source, <strong>final</strong> File destination, <strong>final</strong> <strong>boolean</strong> deleteSource) {
-<a name="62" href="#62">62</a>      <strong>if</strong> (source == <strong>null</strong>) {
-<a name="63" href="#63">63</a>        <strong>throw</strong> <strong>new</strong> NullPointerException(<span class="string">"source"</span>);
-<a name="64" href="#64">64</a>      }
-<a name="65" href="#65">65</a>  
-<a name="66" href="#66">66</a>      <strong>if</strong> (destination == <strong>null</strong>) {
-<a name="67" href="#67">67</a>        <strong>throw</strong> <strong>new</strong> NullPointerException(<span class="string">"destination"</span>);
-<a name="68" href="#68">68</a>      }
-<a name="69" href="#69">69</a>  
-<a name="70" href="#70">70</a>      <strong>this</strong>.source = source;
-<a name="71" href="#71">71</a>      <strong>this</strong>.destination = destination;
-<a name="72" href="#72">72</a>      <strong>this</strong>.deleteSource = deleteSource;
-<a name="73" href="#73">73</a>    }
-<a name="74" href="#74">74</a>  
-<a name="75" href="#75">75</a>    <em>/**<em>*</em></em>
-<a name="76" href="#76">76</a>  <em>   * Compress.</em>
-<a name="77" href="#77">77</a>  <em>   * @return true if successfully compressed.</em>
-<a name="78" href="#78">78</a>  <em>   * @throws IOException on IO exception.</em>
-<a name="79" href="#79">79</a>  <em>   */</em>
-<a name="80" href="#80">80</a>    <strong>public</strong> <strong>boolean</strong> execute() throws IOException {
-<a name="81" href="#81">81</a>      <strong>return</strong> execute(source, destination, deleteSource);
-<a name="82" href="#82">82</a>    }
-<a name="83" href="#83">83</a>  
-<a name="84" href="#84">84</a>    <em>/**<em>*</em></em>
-<a name="85" href="#85">85</a>  <em>   * Compress a file.</em>
-<a name="86" href="#86">86</a>  <em>   *</em>
-<a name="87" href="#87">87</a>  <em>   * @param source file to compress, may not be null.</em>
-<a name="88" href="#88">88</a>  <em>   * @param destination compressed file, may not be null.</em>
-<a name="89" href="#89">89</a>  <em>   * @param deleteSource if true, attempt to delete file on completion.  Failure to delete</em>
-<a name="90" href="#90">90</a>  <em>   * does not cause an exception to be thrown or affect return value.</em>
-<a name="91" href="#91">91</a>  <em>   * @return true if source file compressed.</em>
-<a name="92" href="#92">92</a>  <em>   * @throws IOException on IO exception.</em>
-<a name="93" href="#93">93</a>  <em>   */</em>
-<a name="94" href="#94">94</a>    <strong>public</strong> <strong>static</strong> <strong>boolean</strong> execute(
-<a name="95" href="#95">95</a>      <strong>final</strong> File source, <strong>final</strong> File destination, <strong>final</strong> <strong>boolean</strong> deleteSource)
-<a name="96" href="#96">96</a>            throws IOException {
-<a name="97" href="#97">97</a>      <strong>if</strong> (source.exists()) {
-<a name="98" href="#98">98</a>        FileInputStream fis = <strong>new</strong> FileInputStream(source);
-<a name="99" href="#99">99</a>        FileOutputStream fos = <strong>new</strong> FileOutputStream(destination);
-<a name="100" href="#100">100</a>       GZIPOutputStream gzos = <strong>new</strong> GZIPOutputStream(fos);
-<a name="101" href="#101">101</a>       byte[] inbuf = <strong>new</strong> byte[8102];
-<a name="102" href="#102">102</a>       <strong>int</strong> n;
-<a name="103" href="#103">103</a> 
-<a name="104" href="#104">104</a>       <strong>while</strong> ((n = fis.read(inbuf)) != -1) {
-<a name="105" href="#105">105</a>         gzos.write(inbuf, 0, n);
-<a name="106" href="#106">106</a>       }
-<a name="107" href="#107">107</a> 
-<a name="108" href="#108">108</a>       gzos.close();
-<a name="109" href="#109">109</a>       fis.close();
-<a name="110" href="#110">110</a> 
-<a name="111" href="#111">111</a>       <strong>if</strong> (deleteSource &amp;&amp; !source.delete()) {
-<a name="112" href="#112">112</a>           LogLog.warn(<span class="string">"Unable to delete "</span> + source.toString() + <span class="string">"."</span>);
-<a name="113" href="#113">113</a>       }
-<a name="114" href="#114">114</a> 
-<a name="115" href="#115">115</a>       <strong>return</strong> <strong>true</strong>;
-<a name="116" href="#116">116</a>     }
-<a name="117" href="#117">117</a> 
-<a name="118" href="#118">118</a>     <strong>return</strong> false;
-<a name="119" href="#119">119</a>   }
+<a name="51" href="#51">51</a>    <em>/**<em>*</em></em>
+<a name="52" href="#52">52</a>  <em>   * Create new instance of GZCompressAction.</em>
+<a name="53" href="#53">53</a>  <em>   *</em>
+<a name="54" href="#54">54</a>  <em>   * @param source file to compress, may not be null.</em>
+<a name="55" href="#55">55</a>  <em>   * @param destination compressed file, may not be null.</em>
+<a name="56" href="#56">56</a>  <em>   * @param deleteSource if true, attempt to delete file on completion.  Failure to delete</em>
+<a name="57" href="#57">57</a>  <em>   * does not cause an exception to be thrown or affect return value.</em>
+<a name="58" href="#58">58</a>  <em>   */</em>
+<a name="59" href="#59">59</a>    <strong>public</strong> <a href="../../../../../org/apache/log4j/rolling/helper/GZCompressAction.html">GZCompressAction</a>(
+<a name="60" href="#60">60</a>      <strong>final</strong> File source, <strong>final</strong> File destination, <strong>final</strong> <strong>boolean</strong> deleteSource) {
+<a name="61" href="#61">61</a>      <strong>if</strong> (source == <strong>null</strong>) {
+<a name="62" href="#62">62</a>        <strong>throw</strong> <strong>new</strong> NullPointerException(<span class="string">"source"</span>);
+<a name="63" href="#63">63</a>      }
+<a name="64" href="#64">64</a>  
+<a name="65" href="#65">65</a>      <strong>if</strong> (destination == <strong>null</strong>) {
+<a name="66" href="#66">66</a>        <strong>throw</strong> <strong>new</strong> NullPointerException(<span class="string">"destination"</span>);
+<a name="67" href="#67">67</a>      }
+<a name="68" href="#68">68</a>  
+<a name="69" href="#69">69</a>      <strong>this</strong>.source = source;
+<a name="70" href="#70">70</a>      <strong>this</strong>.destination = destination;
+<a name="71" href="#71">71</a>      <strong>this</strong>.deleteSource = deleteSource;
+<a name="72" href="#72">72</a>    }
+<a name="73" href="#73">73</a>  
+<a name="74" href="#74">74</a>    <em>/**<em>*</em></em>
+<a name="75" href="#75">75</a>  <em>   * Compress.</em>
+<a name="76" href="#76">76</a>  <em>   * @return true if successfully compressed.</em>
+<a name="77" href="#77">77</a>  <em>   * @throws IOException on IO exception.</em>
+<a name="78" href="#78">78</a>  <em>   */</em>
+<a name="79" href="#79">79</a>    <strong>public</strong> <strong>boolean</strong> execute() throws IOException {
+<a name="80" href="#80">80</a>      <strong>return</strong> execute(source, destination, deleteSource);
+<a name="81" href="#81">81</a>    }
+<a name="82" href="#82">82</a>  
+<a name="83" href="#83">83</a>    <em>/**<em>*</em></em>
+<a name="84" href="#84">84</a>  <em>   * Compress a file.</em>
+<a name="85" href="#85">85</a>  <em>   *</em>
+<a name="86" href="#86">86</a>  <em>   * @param source file to compress, may not be null.</em>
+<a name="87" href="#87">87</a>  <em>   * @param destination compressed file, may not be null.</em>
+<a name="88" href="#88">88</a>  <em>   * @param deleteSource if true, attempt to delete file on completion.  Failure to delete</em>
+<a name="89" href="#89">89</a>  <em>   * does not cause an exception to be thrown or affect return value.</em>
+<a name="90" href="#90">90</a>  <em>   * @return true if source file compressed.</em>
+<a name="91" href="#91">91</a>  <em>   * @throws IOException on IO exception.</em>
+<a name="92" href="#92">92</a>  <em>   */</em>
+<a name="93" href="#93">93</a>    <strong>public</strong> <strong>static</strong> <strong>boolean</strong> execute(
+<a name="94" href="#94">94</a>      <strong>final</strong> File source, <strong>final</strong> File destination, <strong>final</strong> <strong>boolean</strong> deleteSource)
+<a name="95" href="#95">95</a>            throws IOException {
+<a name="96" href="#96">96</a>      <strong>if</strong> (source.exists()) {
+<a name="97" href="#97">97</a>        FileInputStream fis = <strong>new</strong> FileInputStream(source);
+<a name="98" href="#98">98</a>        FileOutputStream fos = <strong>new</strong> FileOutputStream(destination);
+<a name="99" href="#99">99</a>        GZIPOutputStream gzos = <strong>new</strong> GZIPOutputStream(fos);
+<a name="100" href="#100">100</a>       byte[] inbuf = <strong>new</strong> byte[8102];
+<a name="101" href="#101">101</a>       <strong>int</strong> n;
+<a name="102" href="#102">102</a> 
+<a name="103" href="#103">103</a>       <strong>while</strong> ((n = fis.read(inbuf)) != -1) {
+<a name="104" href="#104">104</a>         gzos.write(inbuf, 0, n);
+<a name="105" href="#105">105</a>       }
+<a name="106" href="#106">106</a> 
+<a name="107" href="#107">107</a>       gzos.close();
+<a name="108" href="#108">108</a>       fis.close();
+<a name="109" href="#109">109</a> 
+<a name="110" href="#110">110</a>       <strong>if</strong> (deleteSource &amp;&amp; !source.delete()) {
+<a name="111" href="#111">111</a>           LogLog.warn(<span class="string">"Unable to delete "</span> + source.toString() + <span class="string">"."</span>);
+<a name="112" href="#112">112</a>       }
+<a name="113" href="#113">113</a> 
+<a name="114" href="#114">114</a>       <strong>return</strong> <strong>true</strong>;
+<a name="115" href="#115">115</a>     }
+<a name="116" href="#116">116</a> 
+<a name="117" href="#117">117</a>     <strong>return</strong> false;
+<a name="118" href="#118">118</a>   }
+<a name="119" href="#119">119</a> 
 <a name="120" href="#120">120</a> 
-<a name="121" href="#121">121</a> 
-<a name="122" href="#122">122</a>     <em>/**<em>*</em></em>
-<a name="123" href="#123">123</a> <em>     * Capture exception.</em>
-<a name="124" href="#124">124</a> <em>     *</em>
-<a name="125" href="#125">125</a> <em>     * @param ex exception.</em>
-<a name="126" href="#126">126</a> <em>     */</em>
-<a name="127" href="#127">127</a>     <strong>protected</strong> <strong>void</strong> reportException(<strong>final</strong> Exception ex) {
-<a name="128" href="#128">128</a>          LogLog.warn(<span class="string">"Exception during compression of '"</span> + source.toString() + <span class="string">"'."</span>, ex);
-<a name="129" href="#129">129</a>     }
-<a name="130" href="#130">130</a> 
-<a name="131" href="#131">131</a> }
+<a name="121" href="#121">121</a>     <em>/**<em>*</em></em>
+<a name="122" href="#122">122</a> <em>     * Capture exception.</em>
+<a name="123" href="#123">123</a> <em>     *</em>
+<a name="124" href="#124">124</a> <em>     * @param ex exception.</em>
+<a name="125" href="#125">125</a> <em>     */</em>
+<a name="126" href="#126">126</a>     <strong>protected</strong> <strong>void</strong> reportException(<strong>final</strong> Exception ex) {
+<a name="127" href="#127">127</a>          LogLog.warn(<span class="string">"Exception during compression of '"</span> + source.toString() + <span class="string">"'."</span>, ex);
+<a name="128" href="#128">128</a>     }
+<a name="129" href="#129">129</a> 
+<a name="130" href="#130">130</a> }
 </pre>
 <hr/><div id="footer">This page was automatically generated by <a href="http://maven.apache.org/">Maven</a></div></body>
 </html>

Modified: logging/site/trunk/docs/log4j/companions/extras/xref/org/apache/log4j/rolling/helper/ZipCompressAction.html
URL: http://svn.apache.org/viewvc/logging/site/trunk/docs/log4j/companions/extras/xref/org/apache/log4j/rolling/helper/ZipCompressAction.html?rev=569257&r1=569256&r2=569257&view=diff
==============================================================================
--- logging/site/trunk/docs/log4j/companions/extras/xref/org/apache/log4j/rolling/helper/ZipCompressAction.html (original)
+++ logging/site/trunk/docs/log4j/companions/extras/xref/org/apache/log4j/rolling/helper/ZipCompressAction.html Thu Aug 23 22:43:39 2007
@@ -40,107 +40,106 @@
 <a name="31" href="#31">31</a>  <em> * Compresses a file using Zip compression.</em>
 <a name="32" href="#32">32</a>  <em> *</em>
 <a name="33" href="#33">33</a>  <em> * @author Curt Arnold</em>
-<a name="34" href="#34">34</a>  <em> * @since 1.3</em>
-<a name="35" href="#35">35</a>  <em> */</em>
-<a name="36" href="#36">36</a>  <strong>public</strong> <strong>final</strong> <strong>class</strong> <a href="../../../../../org/apache/log4j/rolling/helper/ZipCompressAction.html">ZipCompressAction</a> <strong>extends</strong> <a href="../../../../../org/apache/log4j/rolling/helper/ActionBase.html">ActionBase</a> {
-<a name="37" href="#37">37</a>    <em>/**<em>*</em></em>
-<a name="38" href="#38">38</a>  <em>   * Source file.</em>
-<a name="39" href="#39">39</a>  <em>   */</em>
-<a name="40" href="#40">40</a>    <strong>private</strong> <strong>final</strong> File source;
-<a name="41" href="#41">41</a>  
-<a name="42" href="#42">42</a>    <em>/**<em>*</em></em>
-<a name="43" href="#43">43</a>  <em>   * Destination file.</em>
-<a name="44" href="#44">44</a>  <em>   */</em>
-<a name="45" href="#45">45</a>    <strong>private</strong> <strong>final</strong> File destination;
-<a name="46" href="#46">46</a>  
-<a name="47" href="#47">47</a>    <em>/**<em>*</em></em>
-<a name="48" href="#48">48</a>  <em>   * If true, attempt to delete file on completion.</em>
-<a name="49" href="#49">49</a>  <em>   */</em>
-<a name="50" href="#50">50</a>    <strong>private</strong> <strong>final</strong> <strong>boolean</strong> deleteSource;
+<a name="34" href="#34">34</a>  <em> */</em>
+<a name="35" href="#35">35</a>  <strong>public</strong> <strong>final</strong> <strong>class</strong> <a href="../../../../../org/apache/log4j/rolling/helper/ZipCompressAction.html">ZipCompressAction</a> <strong>extends</strong> <a href="../../../../../org/apache/log4j/rolling/helper/ActionBase.html">ActionBase</a> {
+<a name="36" href="#36">36</a>    <em>/**<em>*</em></em>
+<a name="37" href="#37">37</a>  <em>   * Source file.</em>
+<a name="38" href="#38">38</a>  <em>   */</em>
+<a name="39" href="#39">39</a>    <strong>private</strong> <strong>final</strong> File source;
+<a name="40" href="#40">40</a>  
+<a name="41" href="#41">41</a>    <em>/**<em>*</em></em>
+<a name="42" href="#42">42</a>  <em>   * Destination file.</em>
+<a name="43" href="#43">43</a>  <em>   */</em>
+<a name="44" href="#44">44</a>    <strong>private</strong> <strong>final</strong> File destination;
+<a name="45" href="#45">45</a>  
+<a name="46" href="#46">46</a>    <em>/**<em>*</em></em>
+<a name="47" href="#47">47</a>  <em>   * If true, attempt to delete file on completion.</em>
+<a name="48" href="#48">48</a>  <em>   */</em>
+<a name="49" href="#49">49</a>    <strong>private</strong> <strong>final</strong> <strong>boolean</strong> deleteSource;
+<a name="50" href="#50">50</a>  
 <a name="51" href="#51">51</a>  
-<a name="52" href="#52">52</a>  
-<a name="53" href="#53">53</a>    <em>/**<em>*</em></em>
-<a name="54" href="#54">54</a>  <em>   * Create new instance of GZCompressAction.</em>
-<a name="55" href="#55">55</a>  <em>   *</em>
-<a name="56" href="#56">56</a>  <em>   * @param source file to compress, may not be null.</em>
-<a name="57" href="#57">57</a>  <em>   * @param destination compressed file, may not be null.</em>
-<a name="58" href="#58">58</a>  <em>   * @param deleteSource if true, attempt to delete file on completion.  Failure to delete</em>
-<a name="59" href="#59">59</a>  <em>   * does not cause an exception to be thrown or affect return value.</em>
-<a name="60" href="#60">60</a>  <em>   */</em>
-<a name="61" href="#61">61</a>    <strong>public</strong> <a href="../../../../../org/apache/log4j/rolling/helper/ZipCompressAction.html">ZipCompressAction</a>(
-<a name="62" href="#62">62</a>      <strong>final</strong> File source, <strong>final</strong> File destination, <strong>final</strong> <strong>boolean</strong> deleteSource) {
-<a name="63" href="#63">63</a>      <strong>if</strong> (source == <strong>null</strong>) {
-<a name="64" href="#64">64</a>        <strong>throw</strong> <strong>new</strong> NullPointerException(<span class="string">"source"</span>);
-<a name="65" href="#65">65</a>      }
-<a name="66" href="#66">66</a>  
-<a name="67" href="#67">67</a>      <strong>if</strong> (destination == <strong>null</strong>) {
-<a name="68" href="#68">68</a>        <strong>throw</strong> <strong>new</strong> NullPointerException(<span class="string">"destination"</span>);
-<a name="69" href="#69">69</a>      }
-<a name="70" href="#70">70</a>  
-<a name="71" href="#71">71</a>      <strong>this</strong>.source = source;
-<a name="72" href="#72">72</a>      <strong>this</strong>.destination = destination;
-<a name="73" href="#73">73</a>      <strong>this</strong>.deleteSource = deleteSource;
-<a name="74" href="#74">74</a>    }
-<a name="75" href="#75">75</a>  
-<a name="76" href="#76">76</a>    <em>/**<em>*</em></em>
-<a name="77" href="#77">77</a>  <em>   * Compress.</em>
-<a name="78" href="#78">78</a>  <em>   * @return true if successfully compressed.</em>
-<a name="79" href="#79">79</a>  <em>   * @throws IOException on IO exception.</em>
-<a name="80" href="#80">80</a>  <em>   */</em>
-<a name="81" href="#81">81</a>    <strong>public</strong> <strong>boolean</strong> execute() throws IOException {
-<a name="82" href="#82">82</a>      <strong>return</strong> execute(source, destination, deleteSource);
-<a name="83" href="#83">83</a>    }
-<a name="84" href="#84">84</a>  
-<a name="85" href="#85">85</a>    <em>/**<em>*</em></em>
-<a name="86" href="#86">86</a>  <em>   * Compress a file.</em>
-<a name="87" href="#87">87</a>  <em>   *</em>
-<a name="88" href="#88">88</a>  <em>   * @param source file to compress, may not be null.</em>
-<a name="89" href="#89">89</a>  <em>   * @param destination compressed file, may not be null.</em>
-<a name="90" href="#90">90</a>  <em>   * @param deleteSource if true, attempt to delete file on completion.  Failure to delete</em>
-<a name="91" href="#91">91</a>  <em>   * does not cause an exception to be thrown or affect return value.</em>
-<a name="92" href="#92">92</a>  <em>   * @return true if source file compressed.</em>
-<a name="93" href="#93">93</a>  <em>   * @throws IOException on IO exception.</em>
-<a name="94" href="#94">94</a>  <em>   */</em>
-<a name="95" href="#95">95</a>    <strong>public</strong> <strong>static</strong> <strong>boolean</strong> execute(
-<a name="96" href="#96">96</a>      <strong>final</strong> File source, <strong>final</strong> File destination, <strong>final</strong> <strong>boolean</strong> deleteSource)
-<a name="97" href="#97">97</a>            throws IOException {
-<a name="98" href="#98">98</a>      <strong>if</strong> (source.exists()) {
-<a name="99" href="#99">99</a>        FileInputStream fis = <strong>new</strong> FileInputStream(source);
-<a name="100" href="#100">100</a>       FileOutputStream fos = <strong>new</strong> FileOutputStream(destination);
-<a name="101" href="#101">101</a>       ZipOutputStream zos = <strong>new</strong> ZipOutputStream(fos);
-<a name="102" href="#102">102</a> 
-<a name="103" href="#103">103</a>       ZipEntry zipEntry = <strong>new</strong> ZipEntry(source.getName());
-<a name="104" href="#104">104</a>       zos.putNextEntry(zipEntry);
-<a name="105" href="#105">105</a> 
-<a name="106" href="#106">106</a>       byte[] inbuf = <strong>new</strong> byte[8102];
-<a name="107" href="#107">107</a>       <strong>int</strong> n;
-<a name="108" href="#108">108</a> 
-<a name="109" href="#109">109</a>       <strong>while</strong> ((n = fis.read(inbuf)) != -1) {
-<a name="110" href="#110">110</a>         zos.write(inbuf, 0, n);
-<a name="111" href="#111">111</a>       }
-<a name="112" href="#112">112</a> 
-<a name="113" href="#113">113</a>       zos.close();
-<a name="114" href="#114">114</a>       fis.close();
-<a name="115" href="#115">115</a> 
-<a name="116" href="#116">116</a>       <strong>if</strong> (deleteSource &amp;&amp; !source.delete()) {
-<a name="117" href="#117">117</a>           LogLog.warn(<span class="string">"Unable to delete "</span> + source.toString() + <span class="string">"."</span>);
-<a name="118" href="#118">118</a>       }
-<a name="119" href="#119">119</a> 
-<a name="120" href="#120">120</a>       <strong>return</strong> <strong>true</strong>;
-<a name="121" href="#121">121</a>     }
-<a name="122" href="#122">122</a> 
-<a name="123" href="#123">123</a>     <strong>return</strong> false;
-<a name="124" href="#124">124</a>   }
-<a name="125" href="#125">125</a> 
-<a name="126" href="#126">126</a>     <em>/**<em>*</em></em>
-<a name="127" href="#127">127</a> <em>     * Capture exception.</em>
-<a name="128" href="#128">128</a> <em>     *</em>
-<a name="129" href="#129">129</a> <em>     * @param ex exception.</em>
-<a name="130" href="#130">130</a> <em>     */</em>
-<a name="131" href="#131">131</a>     <strong>protected</strong> <strong>void</strong> reportException(<strong>final</strong> Exception ex) {
-<a name="132" href="#132">132</a>             LogLog.warn(<span class="string">"Exception during compression of '"</span> + source.toString() + <span class="string">"'."</span>, ex);
-<a name="133" href="#133">133</a>     }
-<a name="134" href="#134">134</a> }
+<a name="52" href="#52">52</a>    <em>/**<em>*</em></em>
+<a name="53" href="#53">53</a>  <em>   * Create new instance of GZCompressAction.</em>
+<a name="54" href="#54">54</a>  <em>   *</em>
+<a name="55" href="#55">55</a>  <em>   * @param source file to compress, may not be null.</em>
+<a name="56" href="#56">56</a>  <em>   * @param destination compressed file, may not be null.</em>
+<a name="57" href="#57">57</a>  <em>   * @param deleteSource if true, attempt to delete file on completion.  Failure to delete</em>
+<a name="58" href="#58">58</a>  <em>   * does not cause an exception to be thrown or affect return value.</em>
+<a name="59" href="#59">59</a>  <em>   */</em>
+<a name="60" href="#60">60</a>    <strong>public</strong> <a href="../../../../../org/apache/log4j/rolling/helper/ZipCompressAction.html">ZipCompressAction</a>(
+<a name="61" href="#61">61</a>      <strong>final</strong> File source, <strong>final</strong> File destination, <strong>final</strong> <strong>boolean</strong> deleteSource) {
+<a name="62" href="#62">62</a>      <strong>if</strong> (source == <strong>null</strong>) {
+<a name="63" href="#63">63</a>        <strong>throw</strong> <strong>new</strong> NullPointerException(<span class="string">"source"</span>);
+<a name="64" href="#64">64</a>      }
+<a name="65" href="#65">65</a>  
+<a name="66" href="#66">66</a>      <strong>if</strong> (destination == <strong>null</strong>) {
+<a name="67" href="#67">67</a>        <strong>throw</strong> <strong>new</strong> NullPointerException(<span class="string">"destination"</span>);
+<a name="68" href="#68">68</a>      }
+<a name="69" href="#69">69</a>  
+<a name="70" href="#70">70</a>      <strong>this</strong>.source = source;
+<a name="71" href="#71">71</a>      <strong>this</strong>.destination = destination;
+<a name="72" href="#72">72</a>      <strong>this</strong>.deleteSource = deleteSource;
+<a name="73" href="#73">73</a>    }
+<a name="74" href="#74">74</a>  
+<a name="75" href="#75">75</a>    <em>/**<em>*</em></em>
+<a name="76" href="#76">76</a>  <em>   * Compress.</em>
+<a name="77" href="#77">77</a>  <em>   * @return true if successfully compressed.</em>
+<a name="78" href="#78">78</a>  <em>   * @throws IOException on IO exception.</em>
+<a name="79" href="#79">79</a>  <em>   */</em>
+<a name="80" href="#80">80</a>    <strong>public</strong> <strong>boolean</strong> execute() throws IOException {
+<a name="81" href="#81">81</a>      <strong>return</strong> execute(source, destination, deleteSource);
+<a name="82" href="#82">82</a>    }
+<a name="83" href="#83">83</a>  
+<a name="84" href="#84">84</a>    <em>/**<em>*</em></em>
+<a name="85" href="#85">85</a>  <em>   * Compress a file.</em>
+<a name="86" href="#86">86</a>  <em>   *</em>
+<a name="87" href="#87">87</a>  <em>   * @param source file to compress, may not be null.</em>
+<a name="88" href="#88">88</a>  <em>   * @param destination compressed file, may not be null.</em>
+<a name="89" href="#89">89</a>  <em>   * @param deleteSource if true, attempt to delete file on completion.  Failure to delete</em>
+<a name="90" href="#90">90</a>  <em>   * does not cause an exception to be thrown or affect return value.</em>
+<a name="91" href="#91">91</a>  <em>   * @return true if source file compressed.</em>
+<a name="92" href="#92">92</a>  <em>   * @throws IOException on IO exception.</em>
+<a name="93" href="#93">93</a>  <em>   */</em>
+<a name="94" href="#94">94</a>    <strong>public</strong> <strong>static</strong> <strong>boolean</strong> execute(
+<a name="95" href="#95">95</a>      <strong>final</strong> File source, <strong>final</strong> File destination, <strong>final</strong> <strong>boolean</strong> deleteSource)
+<a name="96" href="#96">96</a>            throws IOException {
+<a name="97" href="#97">97</a>      <strong>if</strong> (source.exists()) {
+<a name="98" href="#98">98</a>        FileInputStream fis = <strong>new</strong> FileInputStream(source);
+<a name="99" href="#99">99</a>        FileOutputStream fos = <strong>new</strong> FileOutputStream(destination);
+<a name="100" href="#100">100</a>       ZipOutputStream zos = <strong>new</strong> ZipOutputStream(fos);
+<a name="101" href="#101">101</a> 
+<a name="102" href="#102">102</a>       ZipEntry zipEntry = <strong>new</strong> ZipEntry(source.getName());
+<a name="103" href="#103">103</a>       zos.putNextEntry(zipEntry);
+<a name="104" href="#104">104</a> 
+<a name="105" href="#105">105</a>       byte[] inbuf = <strong>new</strong> byte[8102];
+<a name="106" href="#106">106</a>       <strong>int</strong> n;
+<a name="107" href="#107">107</a> 
+<a name="108" href="#108">108</a>       <strong>while</strong> ((n = fis.read(inbuf)) != -1) {
+<a name="109" href="#109">109</a>         zos.write(inbuf, 0, n);
+<a name="110" href="#110">110</a>       }
+<a name="111" href="#111">111</a> 
+<a name="112" href="#112">112</a>       zos.close();
+<a name="113" href="#113">113</a>       fis.close();
+<a name="114" href="#114">114</a> 
+<a name="115" href="#115">115</a>       <strong>if</strong> (deleteSource &amp;&amp; !source.delete()) {
+<a name="116" href="#116">116</a>           LogLog.warn(<span class="string">"Unable to delete "</span> + source.toString() + <span class="string">"."</span>);
+<a name="117" href="#117">117</a>       }
+<a name="118" href="#118">118</a> 
+<a name="119" href="#119">119</a>       <strong>return</strong> <strong>true</strong>;
+<a name="120" href="#120">120</a>     }
+<a name="121" href="#121">121</a> 
+<a name="122" href="#122">122</a>     <strong>return</strong> false;
+<a name="123" href="#123">123</a>   }
+<a name="124" href="#124">124</a> 
+<a name="125" href="#125">125</a>     <em>/**<em>*</em></em>
+<a name="126" href="#126">126</a> <em>     * Capture exception.</em>
+<a name="127" href="#127">127</a> <em>     *</em>
+<a name="128" href="#128">128</a> <em>     * @param ex exception.</em>
+<a name="129" href="#129">129</a> <em>     */</em>
+<a name="130" href="#130">130</a>     <strong>protected</strong> <strong>void</strong> reportException(<strong>final</strong> Exception ex) {
+<a name="131" href="#131">131</a>             LogLog.warn(<span class="string">"Exception during compression of '"</span> + source.toString() + <span class="string">"'."</span>, ex);
+<a name="132" href="#132">132</a>     }
+<a name="133" href="#133">133</a> }
 </pre>
 <hr/><div id="footer">This page was automatically generated by <a href="http://maven.apache.org/">Maven</a></div></body>
 </html>

Modified: logging/site/trunk/docs/log4j/companions/extras/xref/org/apache/log4j/rolling/helper/package-frame.html
URL: http://svn.apache.org/viewvc/logging/site/trunk/docs/log4j/companions/extras/xref/org/apache/log4j/rolling/helper/package-frame.html?rev=569257&r1=569256&r2=569257&view=diff
==============================================================================
--- logging/site/trunk/docs/log4j/companions/extras/xref/org/apache/log4j/rolling/helper/package-frame.html (original)
+++ logging/site/trunk/docs/log4j/companions/extras/xref/org/apache/log4j/rolling/helper/package-frame.html Thu Aug 23 22:43:39 2007
@@ -3,7 +3,7 @@
 <html xml:lang="en" lang="en">
 	<head>
 		<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1" />
-		<title>Apache Extras Companion for log4j 1.2. 1.0-SNAPSHOT Reference Package org.apache.log4j.rolling.helper</title>
+		<title>Apache Extras Companion for log4j 1.2. 1.0 Reference Package org.apache.log4j.rolling.helper</title>
 		<link rel="stylesheet" type="text/css" href="../../../../../stylesheet.css" title="style" />
 	</head>
 	<body>

Modified: logging/site/trunk/docs/log4j/companions/extras/xref/org/apache/log4j/rolling/helper/package-summary.html
URL: http://svn.apache.org/viewvc/logging/site/trunk/docs/log4j/companions/extras/xref/org/apache/log4j/rolling/helper/package-summary.html?rev=569257&r1=569256&r2=569257&view=diff
==============================================================================
--- logging/site/trunk/docs/log4j/companions/extras/xref/org/apache/log4j/rolling/helper/package-summary.html (original)
+++ logging/site/trunk/docs/log4j/companions/extras/xref/org/apache/log4j/rolling/helper/package-summary.html Thu Aug 23 22:43:39 2007
@@ -3,7 +3,7 @@
 <html xml:lang="en" lang="en">
 	<head>
 		<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1" />
-		<title>Apache Extras Companion for log4j 1.2. 1.0-SNAPSHOT Reference Package $name</title>
+		<title>Apache Extras Companion for log4j 1.2. 1.0 Reference Package $name</title>
 		<link rel="stylesheet" type="text/css" href="../../../../../stylesheet.css" title="style" />
 	</head>
 	<body>

Modified: logging/site/trunk/docs/log4j/companions/extras/xref/org/apache/log4j/rolling/package-frame.html
URL: http://svn.apache.org/viewvc/logging/site/trunk/docs/log4j/companions/extras/xref/org/apache/log4j/rolling/package-frame.html?rev=569257&r1=569256&r2=569257&view=diff
==============================================================================
--- logging/site/trunk/docs/log4j/companions/extras/xref/org/apache/log4j/rolling/package-frame.html (original)
+++ logging/site/trunk/docs/log4j/companions/extras/xref/org/apache/log4j/rolling/package-frame.html Thu Aug 23 22:43:39 2007
@@ -3,7 +3,7 @@
 <html xml:lang="en" lang="en">
 	<head>
 		<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1" />
-		<title>Apache Extras Companion for log4j 1.2. 1.0-SNAPSHOT Reference Package org.apache.log4j.rolling</title>
+		<title>Apache Extras Companion for log4j 1.2. 1.0 Reference Package org.apache.log4j.rolling</title>
 		<link rel="stylesheet" type="text/css" href="../../../../stylesheet.css" title="style" />
 	</head>
 	<body>
@@ -20,9 +20,6 @@
           	</li>
           	          	<li>
             	<a href="FixedWindowRollingPolicy.html" target="classFrame">FixedWindowRollingPolicy</a>
-          	</li>
-          	          	<li>
-            	<a href="RollingConfigurator.html" target="classFrame">RollingConfigurator</a>
           	</li>
           	          	<li>
             	<a href="RollingFileAppender.html" target="classFrame">RollingFileAppender</a>

Modified: logging/site/trunk/docs/log4j/companions/extras/xref/org/apache/log4j/rolling/package-summary.html
URL: http://svn.apache.org/viewvc/logging/site/trunk/docs/log4j/companions/extras/xref/org/apache/log4j/rolling/package-summary.html?rev=569257&r1=569256&r2=569257&view=diff
==============================================================================
--- logging/site/trunk/docs/log4j/companions/extras/xref/org/apache/log4j/rolling/package-summary.html (original)
+++ logging/site/trunk/docs/log4j/companions/extras/xref/org/apache/log4j/rolling/package-summary.html Thu Aug 23 22:43:39 2007
@@ -3,7 +3,7 @@
 <html xml:lang="en" lang="en">
 	<head>
 		<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1" />
-		<title>Apache Extras Companion for log4j 1.2. 1.0-SNAPSHOT Reference Package $name</title>
+		<title>Apache Extras Companion for log4j 1.2. 1.0 Reference Package $name</title>
 		<link rel="stylesheet" type="text/css" href="../../../../stylesheet.css" title="style" />
 	</head>
 	<body>
@@ -43,11 +43,6 @@
 				            	<tr>
               		<td>
                 		<a href="FixedWindowRollingPolicy.html" target="classFrame">FixedWindowRollingPolicy</a>
-              		</td>
-            	</tr>
-				            	<tr>
-              		<td>
-                		<a href="RollingConfigurator.html" target="classFrame">RollingConfigurator</a>
               		</td>
             	</tr>
 				            	<tr>

Modified: logging/site/trunk/docs/log4j/companions/extras/xref/org/apache/log4j/varia/package-frame.html
URL: http://svn.apache.org/viewvc/logging/site/trunk/docs/log4j/companions/extras/xref/org/apache/log4j/varia/package-frame.html?rev=569257&r1=569256&r2=569257&view=diff
==============================================================================
--- logging/site/trunk/docs/log4j/companions/extras/xref/org/apache/log4j/varia/package-frame.html (original)
+++ logging/site/trunk/docs/log4j/companions/extras/xref/org/apache/log4j/varia/package-frame.html Thu Aug 23 22:43:39 2007
@@ -3,7 +3,7 @@
 <html xml:lang="en" lang="en">
 	<head>
 		<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1" />
-		<title>Apache Extras Companion for log4j 1.2. 1.0-SNAPSHOT Reference Package org.apache.log4j.varia</title>
+		<title>Apache Extras Companion for log4j 1.2. 1.0 Reference Package org.apache.log4j.varia</title>
 		<link rel="stylesheet" type="text/css" href="../../../../stylesheet.css" title="style" />
 	</head>
 	<body>

Modified: logging/site/trunk/docs/log4j/companions/extras/xref/org/apache/log4j/varia/package-summary.html
URL: http://svn.apache.org/viewvc/logging/site/trunk/docs/log4j/companions/extras/xref/org/apache/log4j/varia/package-summary.html?rev=569257&r1=569256&r2=569257&view=diff
==============================================================================
--- logging/site/trunk/docs/log4j/companions/extras/xref/org/apache/log4j/varia/package-summary.html (original)
+++ logging/site/trunk/docs/log4j/companions/extras/xref/org/apache/log4j/varia/package-summary.html Thu Aug 23 22:43:39 2007
@@ -3,7 +3,7 @@
 <html xml:lang="en" lang="en">
 	<head>
 		<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1" />
-		<title>Apache Extras Companion for log4j 1.2. 1.0-SNAPSHOT Reference Package $name</title>
+		<title>Apache Extras Companion for log4j 1.2. 1.0 Reference Package $name</title>
 		<link rel="stylesheet" type="text/css" href="../../../../stylesheet.css" title="style" />
 	</head>
 	<body>



Mime
View raw message