Subversion Repository Public Repository

litesoft

Diff Revisions 316 vs 320 for /trunk/Java/ScarPlus/src/com/esotericsoftware/filesystem/Paths.java

Diff revisions: vs.
  @@ -153,7 +153,6 @@
153 153 List<FilePath> zPaths = getPaths();
154 154 if ( !zPaths.isEmpty() )
155 155 {
156 - byte[] buf = new byte[1024];
157 156 ZipOutputStream out = pFactory.createZOS( destFile, zPaths );
158 157 try
159 158 {
  @@ -170,13 +169,7 @@
170 169 FileInputStream in = FileUtil.createFileInputStream( path.file() );
171 170 try
172 171 {
173 - for ( int len; (len = in.read( buf )) > -1; )
174 - {
175 - if ( len != 0 )
176 - {
177 - out.write( buf, 0, len );
178 - }
179 - }
172 + FileUtil.append( in, out );
180 173 out.closeEntry();
181 174 }
182 175 catch ( IOException e )