~ubuntu-branches/ubuntu/maverick/ant/maverick

« back to all changes in this revision

Viewing changes to src/main/org/apache/tools/ant/types/resources/CompressedResource.java

  • Committer: Bazaar Package Importer
  • Author(s): Matthias Klose
  • Date: 2008-09-30 14:47:45 UTC
  • mfrom: (1.2.3 upstream)
  • Revision ID: james.westby@ubuntu.com-20080930144745-0x8uzivd9t15dua3
Tags: 1.7.1-0ubuntu1
* New upstream version (bug fix release).
  - mainly a bugfix release.
  - has extended support for Java6 features.
  - <script> now has support for JavaFX.
  - release notes: http://apache.linux-mirror.org/ant/README.html
* Remove debian/patches/05_ant-bug433444.patch. Obsoleted.

Show diffs side-by-side

added added

removed removed

Lines of Context:
38
38
 */
39
39
public abstract class CompressedResource extends Resource {
40
40
 
 
41
    private static final int BUFFER_SIZE = 8192;
 
42
 
41
43
    private Resource resource;
42
44
 
43
45
    /** no arg constructor */
153
155
            InputStream in = null;
154
156
            try {
155
157
                in = getInputStream();
156
 
                byte[] buf = new byte[8192];
 
158
                byte[] buf = new byte[BUFFER_SIZE];
157
159
                int size = 0;
158
160
                int readNow;
159
161
                while ((readNow = in.read(buf, 0, buf.length)) > 0) {