1 6 21 22 package de.schlichtherle.io.archive.zip; 23 24 import de.schlichtherle.io.archive.spi.*; 25 import de.schlichtherle.io.rof.*; 26 27 import java.io.*; 28 import java.util.zip.*; 29 30 58 public class CheckedZip32InputArchive extends Zip32InputArchive { 59 60 public CheckedZip32InputArchive( 61 ReadOnlyFile rof, 62 String encoding, 63 boolean preambled, 64 boolean postambled) 65 throws NullPointerException , 66 UnsupportedEncodingException, 67 FileNotFoundException, 68 ZipException, 69 IOException { 70 super(rof, encoding, preambled, postambled); 71 } 72 73 76 public InputStream getInputStream( 77 ArchiveEntry entry, 78 ArchiveEntry dstEntry) 79 throws IOException { 80 return super.getInputStream( 81 entry.getName(), true, !(dstEntry instanceof Zip32Entry)); 82 } 83 } | Popular Tags |