commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From brit...@apache.org
Subject svn commit: r935812 [40/46] - in /websites/production/commons/content/proper/commons-imaging: ./ apidocs/ apidocs/org/apache/commons/imaging/ apidocs/org/apache/commons/imaging/class-use/ apidocs/org/apache/commons/imaging/color/ apidocs/org/apache/com...
Date Sun, 11 Jan 2015 12:33:28 GMT
Modified: websites/production/commons/content/proper/commons-imaging/xref/org/apache/commons/imaging/formats/png/scanlinefilters/ScanlineFilter.html
==============================================================================
--- websites/production/commons/content/proper/commons-imaging/xref/org/apache/commons/imaging/formats/png/scanlinefilters/ScanlineFilter.html (original)
+++ websites/production/commons/content/proper/commons-imaging/xref/org/apache/commons/imaging/formats/png/scanlinefilters/ScanlineFilter.html Sun Jan 11 12:33:25 2015
@@ -28,10 +28,12 @@
 <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.apache.commons.imaging.ImageReadException;
 <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">abstract</strong> <strong class="jxr_keyword">class</strong> <a href="../../../../../../../org/apache/commons/imaging/formats/png/scanlinefilters/ScanlineFilter.html">ScanlineFilter</a> {
-<a class="jxr_linenumber" name="L24" href="#L24">24</a>      <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">abstract</strong> <strong class="jxr_keyword">void</strong> unfilter(byte[] src, byte[] dst, byte[] up)
-<a class="jxr_linenumber" name="L25" href="#L25">25</a>              <strong class="jxr_keyword">throws</strong> ImageReadException, IOException;
-<a class="jxr_linenumber" name="L26" href="#L26">26</a>  }
+<a class="jxr_linenumber" name="L23" href="#L23">23</a>  <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">interface</strong> <a href="../../../../../../../org/apache/commons/imaging/formats/png/scanlinefilters/ScanlineFilter.html">ScanlineFilter</a> {
+<a class="jxr_linenumber" name="L24" href="#L24">24</a>  
+<a class="jxr_linenumber" name="L25" href="#L25">25</a>      <strong class="jxr_keyword">void</strong> unfilter(byte[] src, byte[] dst, byte[] up)
+<a class="jxr_linenumber" name="L26" href="#L26">26</a>              <strong class="jxr_keyword">throws</strong> ImageReadException, IOException;
+<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; 2007&#x2013;2015 <a href="http://www.apache.org/">The Apache Software Foundation</a>. All rights reserved.</div>

Modified: websites/production/commons/content/proper/commons-imaging/xref/org/apache/commons/imaging/formats/png/scanlinefilters/ScanlineFilterAverage.html
==============================================================================
--- websites/production/commons/content/proper/commons-imaging/xref/org/apache/commons/imaging/formats/png/scanlinefilters/ScanlineFilterAverage.html (original)
+++ websites/production/commons/content/proper/commons-imaging/xref/org/apache/commons/imaging/formats/png/scanlinefilters/ScanlineFilterAverage.html Sun Jan 11 12:33:25 2015
@@ -28,36 +28,35 @@
 <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.apache.commons.imaging.ImageReadException;
 <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/imaging/formats/png/scanlinefilters/ScanlineFilterAverage.html">ScanlineFilterAverage</a> <strong class="jxr_keyword">extends</strong> <a href="../../../../../../../org/apache/commons/imaging/formats/png/scanlinefilters/ScanlineFilter.html">ScanlineFilter</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/imaging/formats/png/scanlinefilters/ScanlineFilterAverage.html">ScanlineFilterAverage</a> <strong class="jxr_keyword">implements</strong> <a href="../../../../../../../org/apache/commons/imaging/formats/png/scanlinefilters/ScanlineFilter.html">ScanlineFilter</a> {
 <a class="jxr_linenumber" name="L24" href="#L24">24</a>      <strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">final</strong> <strong class="jxr_keyword">int</strong> bytesPerPixel;
 <a class="jxr_linenumber" name="L25" href="#L25">25</a>  
 <a class="jxr_linenumber" name="L26" href="#L26">26</a>      <strong class="jxr_keyword">public</strong> <a href="../../../../../../../org/apache/commons/imaging/formats/png/scanlinefilters/ScanlineFilterAverage.html">ScanlineFilterAverage</a>(<strong class="jxr_keyword">final</strong> <strong class="jxr_keyword">int</strong> bytesPerPixel) {
 <a class="jxr_linenumber" name="L27" href="#L27">27</a>          <strong class="jxr_keyword">this</strong>.bytesPerPixel = bytesPerPixel;
 <a class="jxr_linenumber" name="L28" href="#L28">28</a>      }
 <a class="jxr_linenumber" name="L29" href="#L29">29</a>  
-<a class="jxr_linenumber" name="L30" href="#L30">30</a>      @Override
-<a class="jxr_linenumber" name="L31" href="#L31">31</a>      <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> unfilter(<strong class="jxr_keyword">final</strong> byte[] src, <strong class="jxr_keyword">final</strong> byte[] dst, <strong class="jxr_keyword">final</strong> byte[] up)
-<a class="jxr_linenumber" name="L32" href="#L32">32</a>              <strong class="jxr_keyword">throws</strong> ImageReadException, IOException {
-<a class="jxr_linenumber" name="L33" href="#L33">33</a>          <strong class="jxr_keyword">for</strong> (<strong class="jxr_keyword">int</strong> i = 0; i &lt; src.length; i++) {
-<a class="jxr_linenumber" name="L34" href="#L34">34</a>              <strong class="jxr_keyword">int</strong> raw = 0;
-<a class="jxr_linenumber" name="L35" href="#L35">35</a>              <strong class="jxr_keyword">final</strong> <strong class="jxr_keyword">int</strong> prevIndex = i - bytesPerPixel;
-<a class="jxr_linenumber" name="L36" href="#L36">36</a>              <strong class="jxr_keyword">if</strong> (prevIndex &gt;= 0) {
-<a class="jxr_linenumber" name="L37" href="#L37">37</a>                  raw = dst[prevIndex];
-<a class="jxr_linenumber" name="L38" href="#L38">38</a>              }
-<a class="jxr_linenumber" name="L39" href="#L39">39</a>  
-<a class="jxr_linenumber" name="L40" href="#L40">40</a>              <strong class="jxr_keyword">int</strong> prior = 0;
-<a class="jxr_linenumber" name="L41" href="#L41">41</a>              <strong class="jxr_keyword">if</strong> (up != <strong class="jxr_keyword">null</strong>) {
-<a class="jxr_linenumber" name="L42" href="#L42">42</a>                  prior = up[i];
-<a class="jxr_linenumber" name="L43" href="#L43">43</a>              }
-<a class="jxr_linenumber" name="L44" href="#L44">44</a>  
-<a class="jxr_linenumber" name="L45" href="#L45">45</a>              <strong class="jxr_keyword">final</strong> <strong class="jxr_keyword">int</strong> average = ((0xff &amp; raw) + (0xff &amp; prior)) / 2;
-<a class="jxr_linenumber" name="L46" href="#L46">46</a>  
-<a class="jxr_linenumber" name="L47" href="#L47">47</a>              dst[i] = (byte) ((src[i] + average) % 256);
-<a class="jxr_linenumber" name="L48" href="#L48">48</a>              <em class="jxr_comment">// dst[i] = src[i];</em>
-<a class="jxr_linenumber" name="L49" href="#L49">49</a>              <em class="jxr_comment">// dst[i] = (byte) 255;</em>
-<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>  }
+<a class="jxr_linenumber" name="L30" href="#L30">30</a>      <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> unfilter(<strong class="jxr_keyword">final</strong> byte[] src, <strong class="jxr_keyword">final</strong> byte[] dst, <strong class="jxr_keyword">final</strong> byte[] up)
+<a class="jxr_linenumber" name="L31" href="#L31">31</a>              <strong class="jxr_keyword">throws</strong> ImageReadException, IOException {
+<a class="jxr_linenumber" name="L32" href="#L32">32</a>          <strong class="jxr_keyword">for</strong> (<strong class="jxr_keyword">int</strong> i = 0; i &lt; src.length; i++) {
+<a class="jxr_linenumber" name="L33" href="#L33">33</a>              <strong class="jxr_keyword">int</strong> raw = 0;
+<a class="jxr_linenumber" name="L34" href="#L34">34</a>              <strong class="jxr_keyword">final</strong> <strong class="jxr_keyword">int</strong> prevIndex = i - bytesPerPixel;
+<a class="jxr_linenumber" name="L35" href="#L35">35</a>              <strong class="jxr_keyword">if</strong> (prevIndex &gt;= 0) {
+<a class="jxr_linenumber" name="L36" href="#L36">36</a>                  raw = dst[prevIndex];
+<a class="jxr_linenumber" name="L37" href="#L37">37</a>              }
+<a class="jxr_linenumber" name="L38" href="#L38">38</a>  
+<a class="jxr_linenumber" name="L39" href="#L39">39</a>              <strong class="jxr_keyword">int</strong> prior = 0;
+<a class="jxr_linenumber" name="L40" href="#L40">40</a>              <strong class="jxr_keyword">if</strong> (up != <strong class="jxr_keyword">null</strong>) {
+<a class="jxr_linenumber" name="L41" href="#L41">41</a>                  prior = up[i];
+<a class="jxr_linenumber" name="L42" href="#L42">42</a>              }
+<a class="jxr_linenumber" name="L43" href="#L43">43</a>  
+<a class="jxr_linenumber" name="L44" href="#L44">44</a>              <strong class="jxr_keyword">final</strong> <strong class="jxr_keyword">int</strong> average = ((0xff &amp; raw) + (0xff &amp; prior)) / 2;
+<a class="jxr_linenumber" name="L45" href="#L45">45</a>  
+<a class="jxr_linenumber" name="L46" href="#L46">46</a>              dst[i] = (byte) ((src[i] + average) % 256);
+<a class="jxr_linenumber" name="L47" href="#L47">47</a>              <em class="jxr_comment">// dst[i] = src[i];</em>
+<a class="jxr_linenumber" name="L48" href="#L48">48</a>              <em class="jxr_comment">// dst[i] = (byte) 255;</em>
+<a class="jxr_linenumber" name="L49" href="#L49">49</a>          }
+<a class="jxr_linenumber" name="L50" href="#L50">50</a>      }
+<a class="jxr_linenumber" name="L51" href="#L51">51</a>  }
 </pre>
 <hr/>
 <div id="footer">Copyright &#169; 2007&#x2013;2015 <a href="http://www.apache.org/">The Apache Software Foundation</a>. All rights reserved.</div>

Modified: websites/production/commons/content/proper/commons-imaging/xref/org/apache/commons/imaging/formats/png/scanlinefilters/ScanlineFilterNone.html
==============================================================================
--- websites/production/commons/content/proper/commons-imaging/xref/org/apache/commons/imaging/formats/png/scanlinefilters/ScanlineFilterNone.html (original)
+++ websites/production/commons/content/proper/commons-imaging/xref/org/apache/commons/imaging/formats/png/scanlinefilters/ScanlineFilterNone.html Sun Jan 11 12:33:25 2015
@@ -28,8 +28,8 @@
 <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.apache.commons.imaging.ImageReadException;
 <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/imaging/formats/png/scanlinefilters/ScanlineFilterNone.html">ScanlineFilterNone</a> <strong class="jxr_keyword">extends</strong> <a href="../../../../../../../org/apache/commons/imaging/formats/png/scanlinefilters/ScanlineFilter.html">ScanlineFilter</a> {
-<a class="jxr_linenumber" name="L24" href="#L24">24</a>      @Override
+<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/imaging/formats/png/scanlinefilters/ScanlineFilterNone.html">ScanlineFilterNone</a> <strong class="jxr_keyword">implements</strong> <a href="../../../../../../../org/apache/commons/imaging/formats/png/scanlinefilters/ScanlineFilter.html">ScanlineFilter</a> {
+<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> unfilter(<strong class="jxr_keyword">final</strong> byte[] src, <strong class="jxr_keyword">final</strong> byte[] dst, <strong class="jxr_keyword">final</strong> byte[] up)
 <a class="jxr_linenumber" name="L26" href="#L26">26</a>              <strong class="jxr_keyword">throws</strong> ImageReadException, IOException {
 <a class="jxr_linenumber" name="L27" href="#L27">27</a>          System.arraycopy(src, 0, dst, 0, src.length);

Modified: websites/production/commons/content/proper/commons-imaging/xref/org/apache/commons/imaging/formats/png/scanlinefilters/ScanlineFilterPaeth.html
==============================================================================
--- websites/production/commons/content/proper/commons-imaging/xref/org/apache/commons/imaging/formats/png/scanlinefilters/ScanlineFilterPaeth.html (original)
+++ websites/production/commons/content/proper/commons-imaging/xref/org/apache/commons/imaging/formats/png/scanlinefilters/ScanlineFilterPaeth.html Sun Jan 11 12:33:25 2015
@@ -28,7 +28,7 @@
 <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.apache.commons.imaging.ImageReadException;
 <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/imaging/formats/png/scanlinefilters/ScanlineFilterPaeth.html">ScanlineFilterPaeth</a> <strong class="jxr_keyword">extends</strong> <a href="../../../../../../../org/apache/commons/imaging/formats/png/scanlinefilters/ScanlineFilter.html">ScanlineFilter</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/imaging/formats/png/scanlinefilters/ScanlineFilterPaeth.html">ScanlineFilterPaeth</a> <strong class="jxr_keyword">implements</strong> <a href="../../../../../../../org/apache/commons/imaging/formats/png/scanlinefilters/ScanlineFilter.html">ScanlineFilter</a> {
 <a class="jxr_linenumber" name="L24" href="#L24">24</a>      <strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">final</strong> <strong class="jxr_keyword">int</strong> bytesPerPixel;
 <a class="jxr_linenumber" name="L25" href="#L25">25</a>  
 <a class="jxr_linenumber" name="L26" href="#L26">26</a>      <strong class="jxr_keyword">public</strong> <a href="../../../../../../../org/apache/commons/imaging/formats/png/scanlinefilters/ScanlineFilterPaeth.html">ScanlineFilterPaeth</a>(<strong class="jxr_keyword">final</strong> <strong class="jxr_keyword">int</strong> bytesPerPixel) {
@@ -52,38 +52,37 @@
 <a class="jxr_linenumber" name="L44" href="#L44">44</a>          }
 <a class="jxr_linenumber" name="L45" href="#L45">45</a>      }
 <a class="jxr_linenumber" name="L46" href="#L46">46</a>  
-<a class="jxr_linenumber" name="L47" href="#L47">47</a>      @Override
-<a class="jxr_linenumber" name="L48" href="#L48">48</a>      <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> unfilter(<strong class="jxr_keyword">final</strong> byte[] src, <strong class="jxr_keyword">final</strong> byte[] dst, <strong class="jxr_keyword">final</strong> byte[] up)
-<a class="jxr_linenumber" name="L49" href="#L49">49</a>              <strong class="jxr_keyword">throws</strong> ImageReadException, IOException {
-<a class="jxr_linenumber" name="L50" href="#L50">50</a>          <strong class="jxr_keyword">for</strong> (<strong class="jxr_keyword">int</strong> i = 0; i &lt; src.length; i++) {
-<a class="jxr_linenumber" name="L51" href="#L51">51</a>              <strong class="jxr_keyword">int</strong> left = 0;
-<a class="jxr_linenumber" name="L52" href="#L52">52</a>              <strong class="jxr_keyword">final</strong> <strong class="jxr_keyword">int</strong> prevIndex = i - bytesPerPixel;
-<a class="jxr_linenumber" name="L53" href="#L53">53</a>              <strong class="jxr_keyword">if</strong> (prevIndex &gt;= 0) {
-<a class="jxr_linenumber" name="L54" href="#L54">54</a>                  left = dst[prevIndex];
-<a class="jxr_linenumber" name="L55" href="#L55">55</a>              }
-<a class="jxr_linenumber" name="L56" href="#L56">56</a>  
-<a class="jxr_linenumber" name="L57" href="#L57">57</a>              <strong class="jxr_keyword">int</strong> above = 0;
-<a class="jxr_linenumber" name="L58" href="#L58">58</a>              <strong class="jxr_keyword">if</strong> (up != <strong class="jxr_keyword">null</strong>) {
-<a class="jxr_linenumber" name="L59" href="#L59">59</a>                  above = up[i];
-<a class="jxr_linenumber" name="L60" href="#L60">60</a>              }
-<a class="jxr_linenumber" name="L61" href="#L61">61</a>              <em class="jxr_comment">// above = 255;</em>
-<a class="jxr_linenumber" name="L62" href="#L62">62</a>  
-<a class="jxr_linenumber" name="L63" href="#L63">63</a>              <strong class="jxr_keyword">int</strong> upperleft = 0;
-<a class="jxr_linenumber" name="L64" href="#L64">64</a>              <strong class="jxr_keyword">if</strong> ((prevIndex &gt;= 0) &amp;&amp; (up != <strong class="jxr_keyword">null</strong>)) {
-<a class="jxr_linenumber" name="L65" href="#L65">65</a>                  upperleft = up[prevIndex];
-<a class="jxr_linenumber" name="L66" href="#L66">66</a>              }
-<a class="jxr_linenumber" name="L67" href="#L67">67</a>              <em class="jxr_comment">// upperleft = 255;</em>
-<a class="jxr_linenumber" name="L68" href="#L68">68</a>  
-<a class="jxr_linenumber" name="L69" href="#L69">69</a>              <strong class="jxr_keyword">int</strong> paethPredictor = paethPredictor(0xff &amp; left, 0xff &amp; above, 0xff &amp; upperleft);
-<a class="jxr_linenumber" name="L70" href="#L70">70</a>  
-<a class="jxr_linenumber" name="L71" href="#L71">71</a>              dst[i] = (byte) ((src[i] + paethPredictor) % 256);
-<a class="jxr_linenumber" name="L72" href="#L72">72</a>              <em class="jxr_comment">// dst[i] = (byte) ((src[i] + paethPredictor) );</em>
-<a class="jxr_linenumber" name="L73" href="#L73">73</a>              <em class="jxr_comment">// dst[i] = src[i];</em>
-<a class="jxr_linenumber" name="L74" href="#L74">74</a>  
-<a class="jxr_linenumber" name="L75" href="#L75">75</a>              <em class="jxr_comment">// dst[i] = (byte) 0;</em>
-<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>  }
+<a class="jxr_linenumber" name="L47" href="#L47">47</a>      <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> unfilter(<strong class="jxr_keyword">final</strong> byte[] src, <strong class="jxr_keyword">final</strong> byte[] dst, <strong class="jxr_keyword">final</strong> byte[] up)
+<a class="jxr_linenumber" name="L48" href="#L48">48</a>              <strong class="jxr_keyword">throws</strong> ImageReadException, IOException {
+<a class="jxr_linenumber" name="L49" href="#L49">49</a>          <strong class="jxr_keyword">for</strong> (<strong class="jxr_keyword">int</strong> i = 0; i &lt; src.length; i++) {
+<a class="jxr_linenumber" name="L50" href="#L50">50</a>              <strong class="jxr_keyword">int</strong> left = 0;
+<a class="jxr_linenumber" name="L51" href="#L51">51</a>              <strong class="jxr_keyword">final</strong> <strong class="jxr_keyword">int</strong> prevIndex = i - bytesPerPixel;
+<a class="jxr_linenumber" name="L52" href="#L52">52</a>              <strong class="jxr_keyword">if</strong> (prevIndex &gt;= 0) {
+<a class="jxr_linenumber" name="L53" href="#L53">53</a>                  left = dst[prevIndex];
+<a class="jxr_linenumber" name="L54" href="#L54">54</a>              }
+<a class="jxr_linenumber" name="L55" href="#L55">55</a>  
+<a class="jxr_linenumber" name="L56" href="#L56">56</a>              <strong class="jxr_keyword">int</strong> above = 0;
+<a class="jxr_linenumber" name="L57" href="#L57">57</a>              <strong class="jxr_keyword">if</strong> (up != <strong class="jxr_keyword">null</strong>) {
+<a class="jxr_linenumber" name="L58" href="#L58">58</a>                  above = up[i];
+<a class="jxr_linenumber" name="L59" href="#L59">59</a>              }
+<a class="jxr_linenumber" name="L60" href="#L60">60</a>              <em class="jxr_comment">// above = 255;</em>
+<a class="jxr_linenumber" name="L61" href="#L61">61</a>  
+<a class="jxr_linenumber" name="L62" href="#L62">62</a>              <strong class="jxr_keyword">int</strong> upperleft = 0;
+<a class="jxr_linenumber" name="L63" href="#L63">63</a>              <strong class="jxr_keyword">if</strong> ((prevIndex &gt;= 0) &amp;&amp; (up != <strong class="jxr_keyword">null</strong>)) {
+<a class="jxr_linenumber" name="L64" href="#L64">64</a>                  upperleft = up[prevIndex];
+<a class="jxr_linenumber" name="L65" href="#L65">65</a>              }
+<a class="jxr_linenumber" name="L66" href="#L66">66</a>              <em class="jxr_comment">// upperleft = 255;</em>
+<a class="jxr_linenumber" name="L67" href="#L67">67</a>  
+<a class="jxr_linenumber" name="L68" href="#L68">68</a>              <strong class="jxr_keyword">int</strong> paethPredictor = paethPredictor(0xff &amp; left, 0xff &amp; above, 0xff &amp; upperleft);
+<a class="jxr_linenumber" name="L69" href="#L69">69</a>  
+<a class="jxr_linenumber" name="L70" href="#L70">70</a>              dst[i] = (byte) ((src[i] + paethPredictor) % 256);
+<a class="jxr_linenumber" name="L71" href="#L71">71</a>              <em class="jxr_comment">// dst[i] = (byte) ((src[i] + paethPredictor) );</em>
+<a class="jxr_linenumber" name="L72" href="#L72">72</a>              <em class="jxr_comment">// dst[i] = src[i];</em>
+<a class="jxr_linenumber" name="L73" href="#L73">73</a>  
+<a class="jxr_linenumber" name="L74" href="#L74">74</a>              <em class="jxr_comment">// dst[i] = (byte) 0;</em>
+<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>  }
 </pre>
 <hr/>
 <div id="footer">Copyright &#169; 2007&#x2013;2015 <a href="http://www.apache.org/">The Apache Software Foundation</a>. All rights reserved.</div>

Modified: websites/production/commons/content/proper/commons-imaging/xref/org/apache/commons/imaging/formats/png/scanlinefilters/ScanlineFilterSub.html
==============================================================================
--- websites/production/commons/content/proper/commons-imaging/xref/org/apache/commons/imaging/formats/png/scanlinefilters/ScanlineFilterSub.html (original)
+++ websites/production/commons/content/proper/commons-imaging/xref/org/apache/commons/imaging/formats/png/scanlinefilters/ScanlineFilterSub.html Sun Jan 11 12:33:25 2015
@@ -28,33 +28,32 @@
 <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.apache.commons.imaging.ImageReadException;
 <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/imaging/formats/png/scanlinefilters/ScanlineFilterSub.html">ScanlineFilterSub</a> <strong class="jxr_keyword">extends</strong> <a href="../../../../../../../org/apache/commons/imaging/formats/png/scanlinefilters/ScanlineFilter.html">ScanlineFilter</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/imaging/formats/png/scanlinefilters/ScanlineFilterSub.html">ScanlineFilterSub</a> <strong class="jxr_keyword">implements</strong> <a href="../../../../../../../org/apache/commons/imaging/formats/png/scanlinefilters/ScanlineFilter.html">ScanlineFilter</a> {
 <a class="jxr_linenumber" name="L24" href="#L24">24</a>      <strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">final</strong> <strong class="jxr_keyword">int</strong> bytesPerPixel;
 <a class="jxr_linenumber" name="L25" href="#L25">25</a>  
 <a class="jxr_linenumber" name="L26" href="#L26">26</a>      <strong class="jxr_keyword">public</strong> <a href="../../../../../../../org/apache/commons/imaging/formats/png/scanlinefilters/ScanlineFilterSub.html">ScanlineFilterSub</a>(<strong class="jxr_keyword">final</strong> <strong class="jxr_keyword">int</strong> bytesPerPixel) {
 <a class="jxr_linenumber" name="L27" href="#L27">27</a>          <strong class="jxr_keyword">this</strong>.bytesPerPixel = bytesPerPixel;
 <a class="jxr_linenumber" name="L28" href="#L28">28</a>      }
 <a class="jxr_linenumber" name="L29" href="#L29">29</a>  
-<a class="jxr_linenumber" name="L30" href="#L30">30</a>      @Override
-<a class="jxr_linenumber" name="L31" href="#L31">31</a>      <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> unfilter(<strong class="jxr_keyword">final</strong> byte[] src, <strong class="jxr_keyword">final</strong> byte[] dst, <strong class="jxr_keyword">final</strong> byte[] up)
-<a class="jxr_linenumber" name="L32" href="#L32">32</a>              <strong class="jxr_keyword">throws</strong> ImageReadException, IOException {
-<a class="jxr_linenumber" name="L33" href="#L33">33</a>          <strong class="jxr_keyword">for</strong> (<strong class="jxr_keyword">int</strong> i = 0; i &lt; src.length; i++) {
-<a class="jxr_linenumber" name="L34" href="#L34">34</a>              <strong class="jxr_keyword">final</strong> <strong class="jxr_keyword">int</strong> prevIndex = i - bytesPerPixel;
-<a class="jxr_linenumber" name="L35" href="#L35">35</a>              <strong class="jxr_keyword">if</strong> (prevIndex &gt;= 0) {
-<a class="jxr_linenumber" name="L36" href="#L36">36</a>                  dst[i] = (byte) ((src[i] + dst[prevIndex]) % 256);
-<a class="jxr_linenumber" name="L37" href="#L37">37</a>              <em class="jxr_comment">// dst[i] = 0xff &amp; (src[i] + src[prevIndex]);</em>
-<a class="jxr_linenumber" name="L38" href="#L38">38</a>              } <strong class="jxr_keyword">else</strong> {
-<a class="jxr_linenumber" name="L39" href="#L39">39</a>                  dst[i] = src[i];
-<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>              <em class="jxr_comment">// if(i&lt;10)</em>
-<a class="jxr_linenumber" name="L43" href="#L43">43</a>              <em class="jxr_comment">// System.out.println("\t" + i + ": " + dst[i] + " (" + src[i] +</em>
-<a class="jxr_linenumber" name="L44" href="#L44">44</a>              <em class="jxr_comment">// ", " + prevIndex + ")");</em>
-<a class="jxr_linenumber" name="L45" href="#L45">45</a>  
-<a class="jxr_linenumber" name="L46" href="#L46">46</a>              <em class="jxr_comment">// dst[i] = src[i];</em>
-<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="L30" href="#L30">30</a>      <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> unfilter(<strong class="jxr_keyword">final</strong> byte[] src, <strong class="jxr_keyword">final</strong> byte[] dst, <strong class="jxr_keyword">final</strong> byte[] up)
+<a class="jxr_linenumber" name="L31" href="#L31">31</a>              <strong class="jxr_keyword">throws</strong> ImageReadException, IOException {
+<a class="jxr_linenumber" name="L32" href="#L32">32</a>          <strong class="jxr_keyword">for</strong> (<strong class="jxr_keyword">int</strong> i = 0; i &lt; src.length; i++) {
+<a class="jxr_linenumber" name="L33" href="#L33">33</a>              <strong class="jxr_keyword">final</strong> <strong class="jxr_keyword">int</strong> prevIndex = i - bytesPerPixel;
+<a class="jxr_linenumber" name="L34" href="#L34">34</a>              <strong class="jxr_keyword">if</strong> (prevIndex &gt;= 0) {
+<a class="jxr_linenumber" name="L35" href="#L35">35</a>                  dst[i] = (byte) ((src[i] + dst[prevIndex]) % 256);
+<a class="jxr_linenumber" name="L36" href="#L36">36</a>              <em class="jxr_comment">// dst[i] = 0xff &amp; (src[i] + src[prevIndex]);</em>
+<a class="jxr_linenumber" name="L37" href="#L37">37</a>              } <strong class="jxr_keyword">else</strong> {
+<a class="jxr_linenumber" name="L38" href="#L38">38</a>                  dst[i] = src[i];
+<a class="jxr_linenumber" name="L39" href="#L39">39</a>              }
+<a class="jxr_linenumber" name="L40" href="#L40">40</a>  
+<a class="jxr_linenumber" name="L41" href="#L41">41</a>              <em class="jxr_comment">// if(i&lt;10)</em>
+<a class="jxr_linenumber" name="L42" href="#L42">42</a>              <em class="jxr_comment">// System.out.println("\t" + i + ": " + dst[i] + " (" + src[i] +</em>
+<a class="jxr_linenumber" name="L43" href="#L43">43</a>              <em class="jxr_comment">// ", " + prevIndex + ")");</em>
+<a class="jxr_linenumber" name="L44" href="#L44">44</a>  
+<a class="jxr_linenumber" name="L45" href="#L45">45</a>              <em class="jxr_comment">// dst[i] = src[i];</em>
+<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>  }
 </pre>
 <hr/>
 <div id="footer">Copyright &#169; 2007&#x2013;2015 <a href="http://www.apache.org/">The Apache Software Foundation</a>. All rights reserved.</div>

Modified: websites/production/commons/content/proper/commons-imaging/xref/org/apache/commons/imaging/formats/png/scanlinefilters/ScanlineFilterUp.html
==============================================================================
--- websites/production/commons/content/proper/commons-imaging/xref/org/apache/commons/imaging/formats/png/scanlinefilters/ScanlineFilterUp.html (original)
+++ websites/production/commons/content/proper/commons-imaging/xref/org/apache/commons/imaging/formats/png/scanlinefilters/ScanlineFilterUp.html Sun Jan 11 12:33:25 2015
@@ -28,8 +28,8 @@
 <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.apache.commons.imaging.ImageReadException;
 <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/imaging/formats/png/scanlinefilters/ScanlineFilterUp.html">ScanlineFilterUp</a> <strong class="jxr_keyword">extends</strong> <a href="../../../../../../../org/apache/commons/imaging/formats/png/scanlinefilters/ScanlineFilter.html">ScanlineFilter</a> {
-<a class="jxr_linenumber" name="L24" href="#L24">24</a>      @Override
+<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/imaging/formats/png/scanlinefilters/ScanlineFilterUp.html">ScanlineFilterUp</a> <strong class="jxr_keyword">implements</strong> <a href="../../../../../../../org/apache/commons/imaging/formats/png/scanlinefilters/ScanlineFilter.html">ScanlineFilter</a> {
+<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> unfilter(<strong class="jxr_keyword">final</strong> byte[] src, <strong class="jxr_keyword">final</strong> byte[] dst, <strong class="jxr_keyword">final</strong> byte[] up)
 <a class="jxr_linenumber" name="L26" href="#L26">26</a>              <strong class="jxr_keyword">throws</strong> ImageReadException, IOException {
 <a class="jxr_linenumber" name="L27" href="#L27">27</a>          <strong class="jxr_keyword">for</strong> (<strong class="jxr_keyword">int</strong> i = 0; i &lt; src.length; i++) {

Modified: websites/production/commons/content/proper/commons-imaging/xref/org/apache/commons/imaging/formats/pnm/PamWriter.html
==============================================================================
--- websites/production/commons/content/proper/commons-imaging/xref/org/apache/commons/imaging/formats/pnm/PamWriter.html (original)
+++ websites/production/commons/content/proper/commons-imaging/xref/org/apache/commons/imaging/formats/pnm/PamWriter.html Sun Jan 11 12:33:25 2015
@@ -32,56 +32,52 @@
 <a class="jxr_linenumber" name="L24" href="#L24">24</a>  
 <a class="jxr_linenumber" name="L25" href="#L25">25</a>  <strong class="jxr_keyword">import</strong> org.apache.commons.imaging.ImageWriteException;
 <a class="jxr_linenumber" name="L26" href="#L26">26</a>  
-<a class="jxr_linenumber" name="L27" href="#L27">27</a>  <strong class="jxr_keyword">class</strong> <a href="../../../../../../org/apache/commons/imaging/formats/pnm/PamWriter.html">PamWriter</a> <strong class="jxr_keyword">extends</strong> <a href="../../../../../../org/apache/commons/imaging/formats/pnm/PnmWriter.html">PnmWriter</a> {
-<a class="jxr_linenumber" name="L28" href="#L28">28</a>      <strong class="jxr_keyword">public</strong> <a href="../../../../../../org/apache/commons/imaging/formats/pnm/PamWriter.html">PamWriter</a>() {
-<a class="jxr_linenumber" name="L29" href="#L29">29</a>          <strong class="jxr_keyword">super</strong>(<strong class="jxr_keyword">true</strong>);
-<a class="jxr_linenumber" name="L30" href="#L30">30</a>      }
-<a class="jxr_linenumber" name="L31" href="#L31">31</a>      
-<a class="jxr_linenumber" name="L32" href="#L32">32</a>      @Override
-<a class="jxr_linenumber" name="L33" href="#L33">33</a>      <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> writeImage(<strong class="jxr_keyword">final</strong> BufferedImage src, <strong class="jxr_keyword">final</strong> OutputStream os,
-<a class="jxr_linenumber" name="L34" href="#L34">34</a>              <strong class="jxr_keyword">final</strong> Map&lt;String, Object&gt; params) <strong class="jxr_keyword">throws</strong> ImageWriteException, IOException {
-<a class="jxr_linenumber" name="L35" href="#L35">35</a>  
-<a class="jxr_linenumber" name="L36" href="#L36">36</a>          os.write(PnmConstants.PNM_PREFIX_BYTE);
-<a class="jxr_linenumber" name="L37" href="#L37">37</a>          os.write(PnmConstants.PAM_RAW_CODE);
-<a class="jxr_linenumber" name="L38" href="#L38">38</a>          os.write(PnmConstants.PNM_NEWLINE);
-<a class="jxr_linenumber" name="L39" href="#L39">39</a>          
-<a class="jxr_linenumber" name="L40" href="#L40">40</a>          <strong class="jxr_keyword">final</strong> <strong class="jxr_keyword">int</strong> width = src.getWidth();
-<a class="jxr_linenumber" name="L41" href="#L41">41</a>          <strong class="jxr_keyword">final</strong> <strong class="jxr_keyword">int</strong> height = src.getHeight();
-<a class="jxr_linenumber" name="L42" href="#L42">42</a>  
-<a class="jxr_linenumber" name="L43" href="#L43">43</a>          os.write((<span class="jxr_string">"WIDTH "</span> + width).getBytes(<span class="jxr_string">"US-ASCII"</span>));
-<a class="jxr_linenumber" name="L44" href="#L44">44</a>          os.write(PnmConstants.PNM_NEWLINE);
-<a class="jxr_linenumber" name="L45" href="#L45">45</a>  
-<a class="jxr_linenumber" name="L46" href="#L46">46</a>          os.write((<span class="jxr_string">"HEIGHT "</span> + height).getBytes(<span class="jxr_string">"US-ASCII"</span>));
-<a class="jxr_linenumber" name="L47" href="#L47">47</a>          os.write(PnmConstants.PNM_NEWLINE);
-<a class="jxr_linenumber" name="L48" href="#L48">48</a>          
-<a class="jxr_linenumber" name="L49" href="#L49">49</a>          os.write((<span class="jxr_string">"DEPTH 4"</span>).getBytes(<span class="jxr_string">"US-ASCII"</span>));
-<a class="jxr_linenumber" name="L50" href="#L50">50</a>          os.write(PnmConstants.PNM_NEWLINE);
-<a class="jxr_linenumber" name="L51" href="#L51">51</a>          
-<a class="jxr_linenumber" name="L52" href="#L52">52</a>          os.write((<span class="jxr_string">"MAXVAL 255"</span>).getBytes(<span class="jxr_string">"US-ASCII"</span>));
-<a class="jxr_linenumber" name="L53" href="#L53">53</a>          os.write(PnmConstants.PNM_NEWLINE);
-<a class="jxr_linenumber" name="L54" href="#L54">54</a>  
-<a class="jxr_linenumber" name="L55" href="#L55">55</a>          os.write((<span class="jxr_string">"TUPLTYPE RGB_ALPHA"</span>).getBytes(<span class="jxr_string">"US-ASCII"</span>));
-<a class="jxr_linenumber" name="L56" href="#L56">56</a>          os.write(PnmConstants.PNM_NEWLINE);
-<a class="jxr_linenumber" name="L57" href="#L57">57</a>          
-<a class="jxr_linenumber" name="L58" href="#L58">58</a>          os.write((<span class="jxr_string">"ENDHDR"</span>).getBytes(<span class="jxr_string">"US-ASCII"</span>));
-<a class="jxr_linenumber" name="L59" href="#L59">59</a>          os.write(PnmConstants.PNM_NEWLINE);
-<a class="jxr_linenumber" name="L60" href="#L60">60</a>          
-<a class="jxr_linenumber" name="L61" href="#L61">61</a>          <strong class="jxr_keyword">for</strong> (<strong class="jxr_keyword">int</strong> y = 0; y &lt; height; y++) {
-<a class="jxr_linenumber" name="L62" href="#L62">62</a>              <strong class="jxr_keyword">for</strong> (<strong class="jxr_keyword">int</strong> x = 0; x &lt; width; x++) {
-<a class="jxr_linenumber" name="L63" href="#L63">63</a>                  <strong class="jxr_keyword">final</strong> <strong class="jxr_keyword">int</strong> argb = src.getRGB(x, y);
-<a class="jxr_linenumber" name="L64" href="#L64">64</a>                  <strong class="jxr_keyword">final</strong> <strong class="jxr_keyword">int</strong> alpha = 0xff &amp; (argb &gt;&gt; 24);
-<a class="jxr_linenumber" name="L65" href="#L65">65</a>                  <strong class="jxr_keyword">final</strong> <strong class="jxr_keyword">int</strong> red = 0xff &amp; (argb &gt;&gt; 16);
-<a class="jxr_linenumber" name="L66" href="#L66">66</a>                  <strong class="jxr_keyword">final</strong> <strong class="jxr_keyword">int</strong> green = 0xff &amp; (argb &gt;&gt; 8);
-<a class="jxr_linenumber" name="L67" href="#L67">67</a>                  <strong class="jxr_keyword">final</strong> <strong class="jxr_keyword">int</strong> blue = 0xff &amp; (argb &gt;&gt; 0);
-<a class="jxr_linenumber" name="L68" href="#L68">68</a>  
-<a class="jxr_linenumber" name="L69" href="#L69">69</a>                  os.write((byte) red);
-<a class="jxr_linenumber" name="L70" href="#L70">70</a>                  os.write((byte) green);
-<a class="jxr_linenumber" name="L71" href="#L71">71</a>                  os.write((byte) blue);
-<a class="jxr_linenumber" name="L72" href="#L72">72</a>                  os.write((byte) alpha);
-<a class="jxr_linenumber" name="L73" href="#L73">73</a>              }
-<a class="jxr_linenumber" name="L74" href="#L74">74</a>          }
-<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="L27" href="#L27">27</a>  <strong class="jxr_keyword">class</strong> <a href="../../../../../../org/apache/commons/imaging/formats/pnm/PamWriter.html">PamWriter</a> <strong class="jxr_keyword">implements</strong> <a href="../../../../../../org/apache/commons/imaging/formats/pnm/PnmWriter.html">PnmWriter</a> {
+<a class="jxr_linenumber" name="L28" href="#L28">28</a>  
+<a class="jxr_linenumber" name="L29" href="#L29">29</a>      <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> writeImage(<strong class="jxr_keyword">final</strong> BufferedImage src, <strong class="jxr_keyword">final</strong> OutputStream os,
+<a class="jxr_linenumber" name="L30" href="#L30">30</a>              <strong class="jxr_keyword">final</strong> Map&lt;String, Object&gt; params) <strong class="jxr_keyword">throws</strong> ImageWriteException, IOException {
+<a class="jxr_linenumber" name="L31" href="#L31">31</a>  
+<a class="jxr_linenumber" name="L32" href="#L32">32</a>          os.write(PnmConstants.PNM_PREFIX_BYTE);
+<a class="jxr_linenumber" name="L33" href="#L33">33</a>          os.write(PnmConstants.PAM_RAW_CODE);
+<a class="jxr_linenumber" name="L34" href="#L34">34</a>          os.write(PnmConstants.PNM_NEWLINE);
+<a class="jxr_linenumber" name="L35" href="#L35">35</a>          
+<a class="jxr_linenumber" name="L36" href="#L36">36</a>          <strong class="jxr_keyword">final</strong> <strong class="jxr_keyword">int</strong> width = src.getWidth();
+<a class="jxr_linenumber" name="L37" href="#L37">37</a>          <strong class="jxr_keyword">final</strong> <strong class="jxr_keyword">int</strong> height = src.getHeight();
+<a class="jxr_linenumber" name="L38" href="#L38">38</a>  
+<a class="jxr_linenumber" name="L39" href="#L39">39</a>          os.write((<span class="jxr_string">"WIDTH "</span> + width).getBytes(<span class="jxr_string">"US-ASCII"</span>));
+<a class="jxr_linenumber" name="L40" href="#L40">40</a>          os.write(PnmConstants.PNM_NEWLINE);
+<a class="jxr_linenumber" name="L41" href="#L41">41</a>  
+<a class="jxr_linenumber" name="L42" href="#L42">42</a>          os.write((<span class="jxr_string">"HEIGHT "</span> + height).getBytes(<span class="jxr_string">"US-ASCII"</span>));
+<a class="jxr_linenumber" name="L43" href="#L43">43</a>          os.write(PnmConstants.PNM_NEWLINE);
+<a class="jxr_linenumber" name="L44" href="#L44">44</a>          
+<a class="jxr_linenumber" name="L45" href="#L45">45</a>          os.write((<span class="jxr_string">"DEPTH 4"</span>).getBytes(<span class="jxr_string">"US-ASCII"</span>));
+<a class="jxr_linenumber" name="L46" href="#L46">46</a>          os.write(PnmConstants.PNM_NEWLINE);
+<a class="jxr_linenumber" name="L47" href="#L47">47</a>          
+<a class="jxr_linenumber" name="L48" href="#L48">48</a>          os.write((<span class="jxr_string">"MAXVAL 255"</span>).getBytes(<span class="jxr_string">"US-ASCII"</span>));
+<a class="jxr_linenumber" name="L49" href="#L49">49</a>          os.write(PnmConstants.PNM_NEWLINE);
+<a class="jxr_linenumber" name="L50" href="#L50">50</a>  
+<a class="jxr_linenumber" name="L51" href="#L51">51</a>          os.write((<span class="jxr_string">"TUPLTYPE RGB_ALPHA"</span>).getBytes(<span class="jxr_string">"US-ASCII"</span>));
+<a class="jxr_linenumber" name="L52" href="#L52">52</a>          os.write(PnmConstants.PNM_NEWLINE);
+<a class="jxr_linenumber" name="L53" href="#L53">53</a>          
+<a class="jxr_linenumber" name="L54" href="#L54">54</a>          os.write((<span class="jxr_string">"ENDHDR"</span>).getBytes(<span class="jxr_string">"US-ASCII"</span>));
+<a class="jxr_linenumber" name="L55" href="#L55">55</a>          os.write(PnmConstants.PNM_NEWLINE);
+<a class="jxr_linenumber" name="L56" href="#L56">56</a>          
+<a class="jxr_linenumber" name="L57" href="#L57">57</a>          <strong class="jxr_keyword">for</strong> (<strong class="jxr_keyword">int</strong> y = 0; y &lt; height; y++) {
+<a class="jxr_linenumber" name="L58" href="#L58">58</a>              <strong class="jxr_keyword">for</strong> (<strong class="jxr_keyword">int</strong> x = 0; x &lt; width; x++) {
+<a class="jxr_linenumber" name="L59" href="#L59">59</a>                  <strong class="jxr_keyword">final</strong> <strong class="jxr_keyword">int</strong> argb = src.getRGB(x, y);
+<a class="jxr_linenumber" name="L60" href="#L60">60</a>                  <strong class="jxr_keyword">final</strong> <strong class="jxr_keyword">int</strong> alpha = 0xff &amp; (argb &gt;&gt; 24);
+<a class="jxr_linenumber" name="L61" href="#L61">61</a>                  <strong class="jxr_keyword">final</strong> <strong class="jxr_keyword">int</strong> red = 0xff &amp; (argb &gt;&gt; 16);
+<a class="jxr_linenumber" name="L62" href="#L62">62</a>                  <strong class="jxr_keyword">final</strong> <strong class="jxr_keyword">int</strong> green = 0xff &amp; (argb &gt;&gt; 8);
+<a class="jxr_linenumber" name="L63" href="#L63">63</a>                  <strong class="jxr_keyword">final</strong> <strong class="jxr_keyword">int</strong> blue = 0xff &amp; (argb &gt;&gt; 0);
+<a class="jxr_linenumber" name="L64" href="#L64">64</a>  
+<a class="jxr_linenumber" name="L65" href="#L65">65</a>                  os.write((byte) red);
+<a class="jxr_linenumber" name="L66" href="#L66">66</a>                  os.write((byte) green);
+<a class="jxr_linenumber" name="L67" href="#L67">67</a>                  os.write((byte) blue);
+<a class="jxr_linenumber" name="L68" href="#L68">68</a>                  os.write((byte) alpha);
+<a class="jxr_linenumber" name="L69" href="#L69">69</a>              }
+<a class="jxr_linenumber" name="L70" href="#L70">70</a>          }
+<a class="jxr_linenumber" name="L71" href="#L71">71</a>      }
+<a class="jxr_linenumber" name="L72" href="#L72">72</a>  }
 </pre>
 <hr/>
 <div id="footer">Copyright &#169; 2007&#x2013;2015 <a href="http://www.apache.org/">The Apache Software Foundation</a>. All rights reserved.</div>

Modified: websites/production/commons/content/proper/commons-imaging/xref/org/apache/commons/imaging/formats/pnm/PbmWriter.html
==============================================================================
--- websites/production/commons/content/proper/commons-imaging/xref/org/apache/commons/imaging/formats/pnm/PbmWriter.html (original)
+++ websites/production/commons/content/proper/commons-imaging/xref/org/apache/commons/imaging/formats/pnm/PbmWriter.html Sun Jan 11 12:33:25 2015
@@ -31,69 +31,71 @@
 <a class="jxr_linenumber" name="L23" href="#L23">23</a>  
 <a class="jxr_linenumber" name="L24" href="#L24">24</a>  <strong class="jxr_keyword">import</strong> org.apache.commons.imaging.ImageWriteException;
 <a class="jxr_linenumber" name="L25" href="#L25">25</a>  
-<a class="jxr_linenumber" name="L26" href="#L26">26</a>  <strong class="jxr_keyword">class</strong> <a href="../../../../../../org/apache/commons/imaging/formats/pnm/PbmWriter.html">PbmWriter</a> <strong class="jxr_keyword">extends</strong> <a href="../../../../../../org/apache/commons/imaging/formats/pnm/PnmWriter.html">PnmWriter</a> {
-<a class="jxr_linenumber" name="L27" href="#L27">27</a>      <strong class="jxr_keyword">public</strong> <a href="../../../../../../org/apache/commons/imaging/formats/pnm/PbmWriter.html">PbmWriter</a>(<strong class="jxr_keyword">final</strong> <strong class="jxr_keyword">boolean</strong> rawbits) {
-<a class="jxr_linenumber" name="L28" href="#L28">28</a>          <strong class="jxr_keyword">super</strong>(rawbits);
-<a class="jxr_linenumber" name="L29" href="#L29">29</a>      }
-<a class="jxr_linenumber" name="L30" href="#L30">30</a>  
-<a class="jxr_linenumber" name="L31" href="#L31">31</a>      @Override
-<a class="jxr_linenumber" name="L32" href="#L32">32</a>      <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> writeImage(<strong class="jxr_keyword">final</strong> BufferedImage src, <strong class="jxr_keyword">final</strong> OutputStream os, <strong class="jxr_keyword">final</strong> Map&lt;String, Object&gt; params)
-<a class="jxr_linenumber" name="L33" href="#L33">33</a>              <strong class="jxr_keyword">throws</strong> ImageWriteException, IOException {
-<a class="jxr_linenumber" name="L34" href="#L34">34</a>          os.write(PnmConstants.PNM_PREFIX_BYTE);
-<a class="jxr_linenumber" name="L35" href="#L35">35</a>          os.write(rawbits ? PnmConstants.PBM_RAW_CODE : PnmConstants.PBM_TEXT_CODE);
-<a class="jxr_linenumber" name="L36" href="#L36">36</a>          os.write(PnmConstants.PNM_SEPARATOR);
-<a class="jxr_linenumber" name="L37" href="#L37">37</a>  
-<a class="jxr_linenumber" name="L38" href="#L38">38</a>          <strong class="jxr_keyword">final</strong> <strong class="jxr_keyword">int</strong> width = src.getWidth();
-<a class="jxr_linenumber" name="L39" href="#L39">39</a>          <strong class="jxr_keyword">final</strong> <strong class="jxr_keyword">int</strong> height = src.getHeight();
-<a class="jxr_linenumber" name="L40" href="#L40">40</a>  
-<a class="jxr_linenumber" name="L41" href="#L41">41</a>          os.write(Integer.toString(width).getBytes(<span class="jxr_string">"US-ASCII"</span>));
-<a class="jxr_linenumber" name="L42" href="#L42">42</a>          os.write(PnmConstants.PNM_SEPARATOR);
-<a class="jxr_linenumber" name="L43" href="#L43">43</a>  
-<a class="jxr_linenumber" name="L44" href="#L44">44</a>          os.write(Integer.toString(height).getBytes(<span class="jxr_string">"US-ASCII"</span>));
-<a class="jxr_linenumber" name="L45" href="#L45">45</a>          os.write(PnmConstants.PNM_NEWLINE);
-<a class="jxr_linenumber" name="L46" href="#L46">46</a>  
-<a class="jxr_linenumber" name="L47" href="#L47">47</a>          <strong class="jxr_keyword">int</strong> bitcache = 0;
-<a class="jxr_linenumber" name="L48" href="#L48">48</a>          <strong class="jxr_keyword">int</strong> bitsInCache = 0;
-<a class="jxr_linenumber" name="L49" href="#L49">49</a>  
-<a class="jxr_linenumber" name="L50" href="#L50">50</a>          <strong class="jxr_keyword">for</strong> (<strong class="jxr_keyword">int</strong> y = 0; y &lt; height; y++) {
-<a class="jxr_linenumber" name="L51" href="#L51">51</a>              <strong class="jxr_keyword">for</strong> (<strong class="jxr_keyword">int</strong> x = 0; x &lt; width; x++) {
-<a class="jxr_linenumber" name="L52" href="#L52">52</a>                  <strong class="jxr_keyword">final</strong> <strong class="jxr_keyword">int</strong> argb = src.getRGB(x, y);
-<a class="jxr_linenumber" name="L53" href="#L53">53</a>                  <strong class="jxr_keyword">final</strong> <strong class="jxr_keyword">int</strong> red = 0xff &amp; (argb &gt;&gt; 16);
-<a class="jxr_linenumber" name="L54" href="#L54">54</a>                  <strong class="jxr_keyword">final</strong> <strong class="jxr_keyword">int</strong> green = 0xff &amp; (argb &gt;&gt; 8);
-<a class="jxr_linenumber" name="L55" href="#L55">55</a>                  <strong class="jxr_keyword">final</strong> <strong class="jxr_keyword">int</strong> blue = 0xff &amp; (argb &gt;&gt; 0);
-<a class="jxr_linenumber" name="L56" href="#L56">56</a>                  <strong class="jxr_keyword">int</strong> sample = (red + green + blue) / 3;
-<a class="jxr_linenumber" name="L57" href="#L57">57</a>                  <strong class="jxr_keyword">if</strong> (sample &gt; 127) {
-<a class="jxr_linenumber" name="L58" href="#L58">58</a>                      sample = 0;
-<a class="jxr_linenumber" name="L59" href="#L59">59</a>                  } <strong class="jxr_keyword">else</strong> {
-<a class="jxr_linenumber" name="L60" href="#L60">60</a>                      sample = 1;
-<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">if</strong> (rawbits) {
-<a class="jxr_linenumber" name="L64" href="#L64">64</a>                      bitcache = (bitcache &lt;&lt; 1) | (0x1 &amp; sample);
-<a class="jxr_linenumber" name="L65" href="#L65">65</a>                      bitsInCache++;
-<a class="jxr_linenumber" name="L66" href="#L66">66</a>  
-<a class="jxr_linenumber" name="L67" href="#L67">67</a>                      <strong class="jxr_keyword">if</strong> (bitsInCache &gt;= 8) {
-<a class="jxr_linenumber" name="L68" href="#L68">68</a>                          os.write((byte) bitcache);
-<a class="jxr_linenumber" name="L69" href="#L69">69</a>                          bitcache = 0;
-<a class="jxr_linenumber" name="L70" href="#L70">70</a>                          bitsInCache = 0;
-<a class="jxr_linenumber" name="L71" href="#L71">71</a>                      }
-<a class="jxr_linenumber" name="L72" href="#L72">72</a>                  } <strong class="jxr_keyword">else</strong> {
-<a class="jxr_linenumber" name="L73" href="#L73">73</a>                      os.write(Integer.toString(sample).getBytes(<span class="jxr_string">"US-ASCII"</span>)); <em class="jxr_comment">// max</em>
-<a class="jxr_linenumber" name="L74" href="#L74">74</a>                                                                    <em class="jxr_comment">// component</em>
-<a class="jxr_linenumber" name="L75" href="#L75">75</a>                                                                    <em class="jxr_comment">// value</em>
-<a class="jxr_linenumber" name="L76" href="#L76">76</a>                      os.write(PnmConstants.PNM_SEPARATOR);
-<a class="jxr_linenumber" name="L77" href="#L77">77</a>                  }
-<a class="jxr_linenumber" name="L78" href="#L78">78</a>              }
-<a class="jxr_linenumber" name="L79" href="#L79">79</a>  
-<a class="jxr_linenumber" name="L80" href="#L80">80</a>              <strong class="jxr_keyword">if</strong> (rawbits &amp;&amp; (bitsInCache &gt; 0)) {
-<a class="jxr_linenumber" name="L81" href="#L81">81</a>                  bitcache = bitcache &lt;&lt; (8 - bitsInCache);
-<a class="jxr_linenumber" name="L82" href="#L82">82</a>                  os.write((byte) bitcache);
-<a class="jxr_linenumber" name="L83" href="#L83">83</a>                  bitcache = 0;
-<a class="jxr_linenumber" name="L84" href="#L84">84</a>                  bitsInCache = 0;
-<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>  }
+<a class="jxr_linenumber" name="L26" href="#L26">26</a>  <strong class="jxr_keyword">class</strong> <a href="../../../../../../org/apache/commons/imaging/formats/pnm/PbmWriter.html">PbmWriter</a> <strong class="jxr_keyword">implements</strong> <a href="../../../../../../org/apache/commons/imaging/formats/pnm/PnmWriter.html">PnmWriter</a> {
+<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">boolean</strong> rawbits;
+<a class="jxr_linenumber" name="L29" href="#L29">29</a>  
+<a class="jxr_linenumber" name="L30" href="#L30">30</a>      <strong class="jxr_keyword">public</strong> <a href="../../../../../../org/apache/commons/imaging/formats/pnm/PbmWriter.html">PbmWriter</a>(<strong class="jxr_keyword">final</strong> <strong class="jxr_keyword">boolean</strong> rawbits) {
+<a class="jxr_linenumber" name="L31" href="#L31">31</a>          <strong class="jxr_keyword">this</strong>.rawbits = rawbits;
+<a class="jxr_linenumber" name="L32" href="#L32">32</a>      }
+<a class="jxr_linenumber" name="L33" href="#L33">33</a>  
+<a class="jxr_linenumber" name="L34" href="#L34">34</a>      <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> writeImage(<strong class="jxr_keyword">final</strong> BufferedImage src, <strong class="jxr_keyword">final</strong> OutputStream os, <strong class="jxr_keyword">final</strong> Map&lt;String, Object&gt; params)
+<a class="jxr_linenumber" name="L35" href="#L35">35</a>              <strong class="jxr_keyword">throws</strong> ImageWriteException, IOException {
+<a class="jxr_linenumber" name="L36" href="#L36">36</a>          os.write(PnmConstants.PNM_PREFIX_BYTE);
+<a class="jxr_linenumber" name="L37" href="#L37">37</a>          os.write(rawbits ? PnmConstants.PBM_RAW_CODE : PnmConstants.PBM_TEXT_CODE);
+<a class="jxr_linenumber" name="L38" href="#L38">38</a>          os.write(PnmConstants.PNM_SEPARATOR);
+<a class="jxr_linenumber" name="L39" href="#L39">39</a>  
+<a class="jxr_linenumber" name="L40" href="#L40">40</a>          <strong class="jxr_keyword">final</strong> <strong class="jxr_keyword">int</strong> width = src.getWidth();
+<a class="jxr_linenumber" name="L41" href="#L41">41</a>          <strong class="jxr_keyword">final</strong> <strong class="jxr_keyword">int</strong> height = src.getHeight();
+<a class="jxr_linenumber" name="L42" href="#L42">42</a>  
+<a class="jxr_linenumber" name="L43" href="#L43">43</a>          os.write(Integer.toString(width).getBytes(<span class="jxr_string">"US-ASCII"</span>));
+<a class="jxr_linenumber" name="L44" href="#L44">44</a>          os.write(PnmConstants.PNM_SEPARATOR);
+<a class="jxr_linenumber" name="L45" href="#L45">45</a>  
+<a class="jxr_linenumber" name="L46" href="#L46">46</a>          os.write(Integer.toString(height).getBytes(<span class="jxr_string">"US-ASCII"</span>));
+<a class="jxr_linenumber" name="L47" href="#L47">47</a>          os.write(PnmConstants.PNM_NEWLINE);
+<a class="jxr_linenumber" name="L48" href="#L48">48</a>  
+<a class="jxr_linenumber" name="L49" href="#L49">49</a>          <strong class="jxr_keyword">int</strong> bitcache = 0;
+<a class="jxr_linenumber" name="L50" href="#L50">50</a>          <strong class="jxr_keyword">int</strong> bitsInCache = 0;
+<a class="jxr_linenumber" name="L51" href="#L51">51</a>  
+<a class="jxr_linenumber" name="L52" href="#L52">52</a>          <strong class="jxr_keyword">for</strong> (<strong class="jxr_keyword">int</strong> y = 0; y &lt; height; y++) {
+<a class="jxr_linenumber" name="L53" href="#L53">53</a>              <strong class="jxr_keyword">for</strong> (<strong class="jxr_keyword">int</strong> x = 0; x &lt; width; x++) {
+<a class="jxr_linenumber" name="L54" href="#L54">54</a>                  <strong class="jxr_keyword">final</strong> <strong class="jxr_keyword">int</strong> argb = src.getRGB(x, y);
+<a class="jxr_linenumber" name="L55" href="#L55">55</a>                  <strong class="jxr_keyword">final</strong> <strong class="jxr_keyword">int</strong> red = 0xff &amp; (argb &gt;&gt; 16);
+<a class="jxr_linenumber" name="L56" href="#L56">56</a>                  <strong class="jxr_keyword">final</strong> <strong class="jxr_keyword">int</strong> green = 0xff &amp; (argb &gt;&gt; 8);
+<a class="jxr_linenumber" name="L57" href="#L57">57</a>                  <strong class="jxr_keyword">final</strong> <strong class="jxr_keyword">int</strong> blue = 0xff &amp; (argb &gt;&gt; 0);
+<a class="jxr_linenumber" name="L58" href="#L58">58</a>                  <strong class="jxr_keyword">int</strong> sample = (red + green + blue) / 3;
+<a class="jxr_linenumber" name="L59" href="#L59">59</a>                  <strong class="jxr_keyword">if</strong> (sample &gt; 127) {
+<a class="jxr_linenumber" name="L60" href="#L60">60</a>                      sample = 0;
+<a class="jxr_linenumber" name="L61" href="#L61">61</a>                  } <strong class="jxr_keyword">else</strong> {
+<a class="jxr_linenumber" name="L62" href="#L62">62</a>                      sample = 1;
+<a class="jxr_linenumber" name="L63" href="#L63">63</a>                  }
+<a class="jxr_linenumber" name="L64" href="#L64">64</a>  
+<a class="jxr_linenumber" name="L65" href="#L65">65</a>                  <strong class="jxr_keyword">if</strong> (rawbits) {
+<a class="jxr_linenumber" name="L66" href="#L66">66</a>                      bitcache = (bitcache &lt;&lt; 1) | (0x1 &amp; sample);
+<a class="jxr_linenumber" name="L67" href="#L67">67</a>                      bitsInCache++;
+<a class="jxr_linenumber" name="L68" href="#L68">68</a>  
+<a class="jxr_linenumber" name="L69" href="#L69">69</a>                      <strong class="jxr_keyword">if</strong> (bitsInCache &gt;= 8) {
+<a class="jxr_linenumber" name="L70" href="#L70">70</a>                          os.write((byte) bitcache);
+<a class="jxr_linenumber" name="L71" href="#L71">71</a>                          bitcache = 0;
+<a class="jxr_linenumber" name="L72" href="#L72">72</a>                          bitsInCache = 0;
+<a class="jxr_linenumber" name="L73" href="#L73">73</a>                      }
+<a class="jxr_linenumber" name="L74" href="#L74">74</a>                  } <strong class="jxr_keyword">else</strong> {
+<a class="jxr_linenumber" name="L75" href="#L75">75</a>                      os.write(Integer.toString(sample).getBytes(<span class="jxr_string">"US-ASCII"</span>)); <em class="jxr_comment">// max</em>
+<a class="jxr_linenumber" name="L76" href="#L76">76</a>                                                                    <em class="jxr_comment">// component</em>
+<a class="jxr_linenumber" name="L77" href="#L77">77</a>                                                                    <em class="jxr_comment">// value</em>
+<a class="jxr_linenumber" name="L78" href="#L78">78</a>                      os.write(PnmConstants.PNM_SEPARATOR);
+<a class="jxr_linenumber" name="L79" href="#L79">79</a>                  }
+<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">if</strong> (rawbits &amp;&amp; (bitsInCache &gt; 0)) {
+<a class="jxr_linenumber" name="L83" href="#L83">83</a>                  bitcache = bitcache &lt;&lt; (8 - bitsInCache);
+<a class="jxr_linenumber" name="L84" href="#L84">84</a>                  os.write((byte) bitcache);
+<a class="jxr_linenumber" name="L85" href="#L85">85</a>                  bitcache = 0;
+<a class="jxr_linenumber" name="L86" href="#L86">86</a>                  bitsInCache = 0;
+<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>      }
+<a class="jxr_linenumber" name="L90" href="#L90">90</a>  }
 </pre>
 <hr/>
 <div id="footer">Copyright &#169; 2007&#x2013;2015 <a href="http://www.apache.org/">The Apache Software Foundation</a>. All rights reserved.</div>

Modified: websites/production/commons/content/proper/commons-imaging/xref/org/apache/commons/imaging/formats/pnm/PgmWriter.html
==============================================================================
--- websites/production/commons/content/proper/commons-imaging/xref/org/apache/commons/imaging/formats/pnm/PgmWriter.html (original)
+++ websites/production/commons/content/proper/commons-imaging/xref/org/apache/commons/imaging/formats/pnm/PgmWriter.html Sun Jan 11 12:33:25 2015
@@ -31,52 +31,53 @@
 <a class="jxr_linenumber" name="L23" href="#L23">23</a>  
 <a class="jxr_linenumber" name="L24" href="#L24">24</a>  <strong class="jxr_keyword">import</strong> org.apache.commons.imaging.ImageWriteException;
 <a class="jxr_linenumber" name="L25" href="#L25">25</a>  
-<a class="jxr_linenumber" name="L26" href="#L26">26</a>  <strong class="jxr_keyword">class</strong> <a href="../../../../../../org/apache/commons/imaging/formats/pnm/PgmWriter.html">PgmWriter</a> <strong class="jxr_keyword">extends</strong> <a href="../../../../../../org/apache/commons/imaging/formats/pnm/PnmWriter.html">PnmWriter</a> {
+<a class="jxr_linenumber" name="L26" href="#L26">26</a>  <strong class="jxr_keyword">class</strong> <a href="../../../../../../org/apache/commons/imaging/formats/pnm/PgmWriter.html">PgmWriter</a> <strong class="jxr_keyword">implements</strong> <a href="../../../../../../org/apache/commons/imaging/formats/pnm/PnmWriter.html">PnmWriter</a> {
 <a class="jxr_linenumber" name="L27" href="#L27">27</a>  
-<a class="jxr_linenumber" name="L28" href="#L28">28</a>      <strong class="jxr_keyword">public</strong> <a href="../../../../../../org/apache/commons/imaging/formats/pnm/PgmWriter.html">PgmWriter</a>(<strong class="jxr_keyword">boolean</strong> rawbits) {
-<a class="jxr_linenumber" name="L29" href="#L29">29</a>          <strong class="jxr_keyword">super</strong>(rawbits);
-<a class="jxr_linenumber" name="L30" href="#L30">30</a>      }
-<a class="jxr_linenumber" name="L31" href="#L31">31</a>  
-<a class="jxr_linenumber" name="L32" href="#L32">32</a>      @Override
-<a class="jxr_linenumber" name="L33" href="#L33">33</a>      <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> writeImage(<strong class="jxr_keyword">final</strong> BufferedImage src, <strong class="jxr_keyword">final</strong> OutputStream os, <strong class="jxr_keyword">final</strong> Map&lt;String, Object&gt; params)
-<a class="jxr_linenumber" name="L34" href="#L34">34</a>              <strong class="jxr_keyword">throws</strong> ImageWriteException, IOException {
-<a class="jxr_linenumber" name="L35" href="#L35">35</a>          <em class="jxr_comment">// System.out.println</em>
-<a class="jxr_linenumber" name="L36" href="#L36">36</a>          <em class="jxr_comment">// (b1 == 0x50 &amp;&amp; b2 == 0x36)</em>
-<a class="jxr_linenumber" name="L37" href="#L37">37</a>          os.write(0x50);
-<a class="jxr_linenumber" name="L38" href="#L38">38</a>          os.write(rawbits ? 0x35 : 0x32);
-<a class="jxr_linenumber" name="L39" href="#L39">39</a>          os.write(PnmConstants.PNM_SEPARATOR);
-<a class="jxr_linenumber" name="L40" href="#L40">40</a>  
-<a class="jxr_linenumber" name="L41" href="#L41">41</a>          <strong class="jxr_keyword">final</strong> <strong class="jxr_keyword">int</strong> width = src.getWidth();
-<a class="jxr_linenumber" name="L42" href="#L42">42</a>          <strong class="jxr_keyword">final</strong> <strong class="jxr_keyword">int</strong> height = src.getHeight();
-<a class="jxr_linenumber" name="L43" href="#L43">43</a>  
-<a class="jxr_linenumber" name="L44" href="#L44">44</a>          os.write(Integer.toString(width).getBytes(<span class="jxr_string">"US-ASCII"</span>));
-<a class="jxr_linenumber" name="L45" href="#L45">45</a>          os.write(PnmConstants.PNM_SEPARATOR);
-<a class="jxr_linenumber" name="L46" href="#L46">46</a>  
-<a class="jxr_linenumber" name="L47" href="#L47">47</a>          os.write(Integer.toString(height).getBytes(<span class="jxr_string">"US-ASCII"</span>));
-<a class="jxr_linenumber" name="L48" href="#L48">48</a>          os.write(PnmConstants.PNM_SEPARATOR);
-<a class="jxr_linenumber" name="L49" href="#L49">49</a>  
-<a class="jxr_linenumber" name="L50" href="#L50">50</a>          os.write(Integer.toString(255).getBytes(<span class="jxr_string">"US-ASCII"</span>)); <em class="jxr_comment">// max component value</em>
-<a class="jxr_linenumber" name="L51" href="#L51">51</a>          os.write(PnmConstants.PNM_NEWLINE);
-<a class="jxr_linenumber" name="L52" href="#L52">52</a>  
-<a class="jxr_linenumber" name="L53" href="#L53">53</a>          <strong class="jxr_keyword">for</strong> (<strong class="jxr_keyword">int</strong> y = 0; y &lt; height; y++) {
-<a class="jxr_linenumber" name="L54" href="#L54">54</a>              <strong class="jxr_keyword">for</strong> (<strong class="jxr_keyword">int</strong> x = 0; x &lt; width; x++) {
-<a class="jxr_linenumber" name="L55" href="#L55">55</a>                  <strong class="jxr_keyword">final</strong> <strong class="jxr_keyword">int</strong> argb = src.getRGB(x, y);
-<a class="jxr_linenumber" name="L56" href="#L56">56</a>                  <strong class="jxr_keyword">final</strong> <strong class="jxr_keyword">int</strong> red = 0xff &amp; (argb &gt;&gt; 16);
-<a class="jxr_linenumber" name="L57" href="#L57">57</a>                  <strong class="jxr_keyword">final</strong> <strong class="jxr_keyword">int</strong> green = 0xff &amp; (argb &gt;&gt; 8);
-<a class="jxr_linenumber" name="L58" href="#L58">58</a>                  <strong class="jxr_keyword">final</strong> <strong class="jxr_keyword">int</strong> blue = 0xff &amp; (argb &gt;&gt; 0);
-<a class="jxr_linenumber" name="L59" href="#L59">59</a>                  <strong class="jxr_keyword">final</strong> <strong class="jxr_keyword">int</strong> sample = (red + green + blue) / 3;
-<a class="jxr_linenumber" name="L60" href="#L60">60</a>  
-<a class="jxr_linenumber" name="L61" href="#L61">61</a>                  <strong class="jxr_keyword">if</strong> (rawbits) {
-<a class="jxr_linenumber" name="L62" href="#L62">62</a>                      os.write((byte) sample);
-<a class="jxr_linenumber" name="L63" href="#L63">63</a>                  } <strong class="jxr_keyword">else</strong> {
-<a class="jxr_linenumber" name="L64" href="#L64">64</a>                      os.write(Integer.toString(sample).getBytes(<span class="jxr_string">"US-ASCII"</span>)); <em class="jxr_comment">// max component value</em>
-<a class="jxr_linenumber" name="L65" href="#L65">65</a>                      os.write(PnmConstants.PNM_SEPARATOR);
-<a class="jxr_linenumber" name="L66" href="#L66">66</a>                  }
-<a class="jxr_linenumber" name="L67" href="#L67">67</a>              }
-<a class="jxr_linenumber" name="L68" href="#L68">68</a>          }
-<a class="jxr_linenumber" name="L69" href="#L69">69</a>      }
-<a class="jxr_linenumber" name="L70" href="#L70">70</a>  
-<a class="jxr_linenumber" name="L71" href="#L71">71</a>  }
+<a class="jxr_linenumber" name="L28" href="#L28">28</a>      <strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">boolean</strong> rawbits;
+<a class="jxr_linenumber" name="L29" href="#L29">29</a>  
+<a class="jxr_linenumber" name="L30" href="#L30">30</a>      <strong class="jxr_keyword">public</strong> <a href="../../../../../../org/apache/commons/imaging/formats/pnm/PgmWriter.html">PgmWriter</a>(<strong class="jxr_keyword">boolean</strong> rawbits) {
+<a class="jxr_linenumber" name="L31" href="#L31">31</a>          <strong class="jxr_keyword">this</strong>.rawbits = rawbits;
+<a class="jxr_linenumber" name="L32" href="#L32">32</a>      }
+<a class="jxr_linenumber" name="L33" href="#L33">33</a>  
+<a class="jxr_linenumber" name="L34" href="#L34">34</a>      <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> writeImage(<strong class="jxr_keyword">final</strong> BufferedImage src, <strong class="jxr_keyword">final</strong> OutputStream os, <strong class="jxr_keyword">final</strong> Map&lt;String, Object&gt; params)
+<a class="jxr_linenumber" name="L35" href="#L35">35</a>              <strong class="jxr_keyword">throws</strong> ImageWriteException, IOException {
+<a class="jxr_linenumber" name="L36" href="#L36">36</a>          <em class="jxr_comment">// System.out.println</em>
+<a class="jxr_linenumber" name="L37" href="#L37">37</a>          <em class="jxr_comment">// (b1 == 0x50 &amp;&amp; b2 == 0x36)</em>
+<a class="jxr_linenumber" name="L38" href="#L38">38</a>          os.write(0x50);
+<a class="jxr_linenumber" name="L39" href="#L39">39</a>          os.write(rawbits ? 0x35 : 0x32);
+<a class="jxr_linenumber" name="L40" href="#L40">40</a>          os.write(PnmConstants.PNM_SEPARATOR);
+<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> width = src.getWidth();
+<a class="jxr_linenumber" name="L43" href="#L43">43</a>          <strong class="jxr_keyword">final</strong> <strong class="jxr_keyword">int</strong> height = src.getHeight();
+<a class="jxr_linenumber" name="L44" href="#L44">44</a>  
+<a class="jxr_linenumber" name="L45" href="#L45">45</a>          os.write(Integer.toString(width).getBytes(<span class="jxr_string">"US-ASCII"</span>));
+<a class="jxr_linenumber" name="L46" href="#L46">46</a>          os.write(PnmConstants.PNM_SEPARATOR);
+<a class="jxr_linenumber" name="L47" href="#L47">47</a>  
+<a class="jxr_linenumber" name="L48" href="#L48">48</a>          os.write(Integer.toString(height).getBytes(<span class="jxr_string">"US-ASCII"</span>));
+<a class="jxr_linenumber" name="L49" href="#L49">49</a>          os.write(PnmConstants.PNM_SEPARATOR);
+<a class="jxr_linenumber" name="L50" href="#L50">50</a>  
+<a class="jxr_linenumber" name="L51" href="#L51">51</a>          os.write(Integer.toString(255).getBytes(<span class="jxr_string">"US-ASCII"</span>)); <em class="jxr_comment">// max component value</em>
+<a class="jxr_linenumber" name="L52" href="#L52">52</a>          os.write(PnmConstants.PNM_NEWLINE);
+<a class="jxr_linenumber" name="L53" href="#L53">53</a>  
+<a class="jxr_linenumber" name="L54" href="#L54">54</a>          <strong class="jxr_keyword">for</strong> (<strong class="jxr_keyword">int</strong> y = 0; y &lt; height; y++) {
+<a class="jxr_linenumber" name="L55" href="#L55">55</a>              <strong class="jxr_keyword">for</strong> (<strong class="jxr_keyword">int</strong> x = 0; x &lt; width; x++) {
+<a class="jxr_linenumber" name="L56" href="#L56">56</a>                  <strong class="jxr_keyword">final</strong> <strong class="jxr_keyword">int</strong> argb = src.getRGB(x, y);
+<a class="jxr_linenumber" name="L57" href="#L57">57</a>                  <strong class="jxr_keyword">final</strong> <strong class="jxr_keyword">int</strong> red = 0xff &amp; (argb &gt;&gt; 16);
+<a class="jxr_linenumber" name="L58" href="#L58">58</a>                  <strong class="jxr_keyword">final</strong> <strong class="jxr_keyword">int</strong> green = 0xff &amp; (argb &gt;&gt; 8);
+<a class="jxr_linenumber" name="L59" href="#L59">59</a>                  <strong class="jxr_keyword">final</strong> <strong class="jxr_keyword">int</strong> blue = 0xff &amp; (argb &gt;&gt; 0);
+<a class="jxr_linenumber" name="L60" href="#L60">60</a>                  <strong class="jxr_keyword">final</strong> <strong class="jxr_keyword">int</strong> sample = (red + green + blue) / 3;
+<a class="jxr_linenumber" name="L61" href="#L61">61</a>  
+<a class="jxr_linenumber" name="L62" href="#L62">62</a>                  <strong class="jxr_keyword">if</strong> (rawbits) {
+<a class="jxr_linenumber" name="L63" href="#L63">63</a>                      os.write((byte) sample);
+<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>                      os.write(Integer.toString(sample).getBytes(<span class="jxr_string">"US-ASCII"</span>)); <em class="jxr_comment">// max component value</em>
+<a class="jxr_linenumber" name="L66" href="#L66">66</a>                      os.write(PnmConstants.PNM_SEPARATOR);
+<a class="jxr_linenumber" name="L67" href="#L67">67</a>                  }
+<a class="jxr_linenumber" name="L68" href="#L68">68</a>              }
+<a class="jxr_linenumber" name="L69" href="#L69">69</a>          }
+<a class="jxr_linenumber" name="L70" href="#L70">70</a>      }
+<a class="jxr_linenumber" name="L71" href="#L71">71</a>  
+<a class="jxr_linenumber" name="L72" href="#L72">72</a>  }
 </pre>
 <hr/>
 <div id="footer">Copyright &#169; 2007&#x2013;2015 <a href="http://www.apache.org/">The Apache Software Foundation</a>. All rights reserved.</div>

Modified: websites/production/commons/content/proper/commons-imaging/xref/org/apache/commons/imaging/formats/pnm/PnmWriter.html
==============================================================================
--- websites/production/commons/content/proper/commons-imaging/xref/org/apache/commons/imaging/formats/pnm/PnmWriter.html (original)
+++ websites/production/commons/content/proper/commons-imaging/xref/org/apache/commons/imaging/formats/pnm/PnmWriter.html Sun Jan 11 12:33:25 2015
@@ -31,16 +31,12 @@
 <a class="jxr_linenumber" name="L23" href="#L23">23</a>  
 <a class="jxr_linenumber" name="L24" href="#L24">24</a>  <strong class="jxr_keyword">import</strong> org.apache.commons.imaging.ImageWriteException;
 <a class="jxr_linenumber" name="L25" href="#L25">25</a>  
-<a class="jxr_linenumber" name="L26" href="#L26">26</a>  <strong class="jxr_keyword">abstract</strong> <strong class="jxr_keyword">class</strong> <a href="../../../../../../org/apache/commons/imaging/formats/pnm/PnmWriter.html">PnmWriter</a> {
-<a class="jxr_linenumber" name="L27" href="#L27">27</a>      <strong class="jxr_keyword">protected</strong> <strong class="jxr_keyword">final</strong> <strong class="jxr_keyword">boolean</strong> rawbits;
-<a class="jxr_linenumber" name="L28" href="#L28">28</a>  
-<a class="jxr_linenumber" name="L29" href="#L29">29</a>      <strong class="jxr_keyword">public</strong> <a href="../../../../../../org/apache/commons/imaging/formats/pnm/PnmWriter.html">PnmWriter</a>(<strong class="jxr_keyword">final</strong> <strong class="jxr_keyword">boolean</strong> rawbits) {
-<a class="jxr_linenumber" name="L30" href="#L30">30</a>          <strong class="jxr_keyword">this</strong>.rawbits = rawbits;
-<a class="jxr_linenumber" name="L31" href="#L31">31</a>      }
-<a class="jxr_linenumber" name="L32" href="#L32">32</a>  
-<a class="jxr_linenumber" name="L33" href="#L33">33</a>      <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">abstract</strong> <strong class="jxr_keyword">void</strong> writeImage(BufferedImage src, OutputStream os,
-<a class="jxr_linenumber" name="L34" href="#L34">34</a>              Map&lt;String, Object&gt; params) <strong class="jxr_keyword">throws</strong> ImageWriteException, IOException;
-<a class="jxr_linenumber" name="L35" href="#L35">35</a>  }
+<a class="jxr_linenumber" name="L26" href="#L26">26</a>  <strong class="jxr_keyword">interface</strong> <a href="../../../../../../org/apache/commons/imaging/formats/pnm/PnmWriter.html">PnmWriter</a> {
+<a class="jxr_linenumber" name="L27" href="#L27">27</a>  
+<a class="jxr_linenumber" name="L28" href="#L28">28</a>      <strong class="jxr_keyword">void</strong> writeImage(BufferedImage src, OutputStream os,
+<a class="jxr_linenumber" name="L29" href="#L29">29</a>              Map&lt;String, Object&gt; params) <strong class="jxr_keyword">throws</strong> ImageWriteException, IOException;
+<a class="jxr_linenumber" name="L30" href="#L30">30</a>  
+<a class="jxr_linenumber" name="L31" href="#L31">31</a>  }
 </pre>
 <hr/>
 <div id="footer">Copyright &#169; 2007&#x2013;2015 <a href="http://www.apache.org/">The Apache Software Foundation</a>. All rights reserved.</div>



Mime
View raw message