1 6 21 22 package de.schlichtherle.io.archive.zip; 23 24 import de.schlichtherle.io.archive.Archive; 25 import de.schlichtherle.io.archive.spi.InputArchive; 26 import de.schlichtherle.io.archive.spi.OutputArchive; 27 import java.io.FileNotFoundException ; 28 import java.io.IOException ; 29 import java.io.OutputStream ; 30 import java.io.UnsupportedEncodingException ; 31 import java.util.logging.Level ; 32 import java.util.logging.Logger ; 33 34 46 public class ReadOnlySfxDriver extends AbstractSfxDriver { 47 48 53 public ReadOnlySfxDriver() { 54 this(ENCODING); 55 } 56 57 63 public ReadOnlySfxDriver(String encoding) { 64 super(encoding, true, false, null, null); 65 } 66 67 public OutputArchive createOutputArchive( 68 final Archive archive, 69 final OutputStream out, 70 final InputArchive source) 71 throws FileNotFoundException { 72 throw new FileNotFoundException ( 73 "This driver does not allow modifying SFX archives in order to prevent breaking potential integrity checks in the SFX code!"); 74 } 75 } 76 | Popular Tags |