/[classpath]/classpath/java/util/zip/ZipFile.java
ViewVC logotype

Diff of /classpath/java/util/zip/ZipFile.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.6 by brawer, Thu Mar 21 07:27:17 2002 UTC revision 1.7 by jewel, Thu May 30 18:50:40 2002 UTC
# Line 198  public class ZipFile implements ZipConst Line 198  public class ZipFile implements ZipConst
198          byte[] buffer = new byte[Math.max(nameLen, commentLen)];          byte[] buffer = new byte[Math.max(nameLen, commentLen)];
199    
200          raf.readFully(buffer, 0, nameLen);          raf.readFully(buffer, 0, nameLen);
201          String name = new String(buffer, 0, nameLen, "UTF8");          String name = new String(buffer, 0, nameLen);
202    
203          ZipEntry entry = new ZipEntry(name);          ZipEntry entry = new ZipEntry(name);
204          entry.setMethod(method);          entry.setMethod(method);
# Line 215  public class ZipFile implements ZipConst Line 215  public class ZipFile implements ZipConst
215          if (commentLen > 0)          if (commentLen > 0)
216            {            {
217              raf.readFully(buffer, 0, commentLen);              raf.readFully(buffer, 0, commentLen);
218              entry.setComment(new String(buffer, 0, commentLen, "UTF8"));              entry.setComment(new String(buffer, 0, commentLen));
219            }            }
220          entry.zipFileIndex = i;          entry.zipFileIndex = i;
221          entry.offset = offset;          entry.offset = offset;

Legend:
Removed from v.1.6  
changed lines
  Added in v.1.7

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26