767778798081828384
* @param enc the encoding used for filenames. * @param e the CpioEntry. * @since Compress Antlib 1.3 */ public CpioResource(Resource a, String enc, CpioArchiveEntry e) { super(new CpioStreamFactory(), "cpio", a, e); setEncoding(enc); setEntry(e); }
23242526272829
/** * Uncpio a file. */ public class Uncpio extends ExpandBase { public Uncpio() { super(new CpioStreamFactory()); }
3839404142434445464748
public class Cpio extends ArchiveBase { private Format format = Format.BINARY; private int blockSize = CpioConstants.BLOCK_SIZE; public Cpio() { setFactory(new CpioStreamFactory() { public ArchiveOutputStream getArchiveStream(OutputStream stream, String encoding) throws IOException { return new CpioArchiveOutputStream(stream, format.getFormat(),