Package org.apache.ant.compress.util

Examples of org.apache.ant.compress.util.CpioStreamFactory


    /**
     * Create a new scanner.
     * @return the created scanner.
     */
    protected ArchiveScanner newArchiveScanner() {
        return new CommonsCompressArchiveScanner(new CpioStreamFactory(),
                                                 new CommonsCompressArchiveScanner.ResourceBuilder() {
                public Resource buildResource(Resource archive, String encoding,
                                              ArchiveEntry entry) {
                    return new CpioResource(archive, (CpioArchiveEntry) entry);
                }
View Full Code Here


/**
* Uncpio a file.
*/
public class Uncpio extends ExpandBase {
    public Uncpio() {
        super(new CpioStreamFactory());
    }
View Full Code Here

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(),
View Full Code Here

    /**
     * Create a new scanner.
     * @return the created scanner.
     */
    protected ArchiveScanner newArchiveScanner() {
        return new CommonsCompressArchiveScanner(new CpioStreamFactory(),
                                                 new CommonsCompressArchiveScanner.ResourceBuilder() {
                public Resource buildResource(Resource archive, String encoding,
                                              ArchiveEntry entry) {
                    return new CpioResource(archive, (CpioArchiveEntry) entry);
                }
View Full Code Here

    /**
     * Default constructor.
     */
    public CpioResource() {
        super(new CpioStreamFactory(), "cpio");
    }
View Full Code Here

     * entry in the specified archive.
     * @param a the archive as File.
     * @param e the CpioEntry.
     */
    public CpioResource(File a, CpioArchiveEntry e) {
        super(new CpioStreamFactory(), "cpio", a, e);
        setEntry(e);
    }
View Full Code Here

     * entry in the specified archive.
     * @param a the archive as Resource.
     * @param e the CpioEntry.
     */
    public CpioResource(Resource a, CpioArchiveEntry e) {
        super(new CpioStreamFactory(), "cpio", a, e);
        setEntry(e);
    }
View Full Code Here

     * Create a new scanner.
     * @return the created scanner.
     */
    protected ArchiveScanner newArchiveScanner() {
        CommonsCompressArchiveScanner cs =
            new CommonsCompressArchiveScanner(new CpioStreamFactory(),
                                              new CommonsCompressArchiveScanner.ResourceBuilder() {
                public Resource buildResource(Resource archive, String encoding,
                                              ArchiveEntry entry) {
                    return new CpioResource(archive, encoding, (CpioArchiveEntry) entry);
                }
View Full Code Here

    /**
     * Default constructor.
     */
    public CpioResource() {
        super(new CpioStreamFactory(), "cpio");
    }
View Full Code Here

     * @param enc the encoding used for filenames.
     * @param e the CpioEntry.
     * @since Compress Antlib 1.3
     */
    public CpioResource(File a, String enc, CpioArchiveEntry e) {
        super(new CpioStreamFactory(), "cpio", a, e);
        setEncoding(enc);
        setEntry(e);
    }
View Full Code Here

TOP

Related Classes of org.apache.ant.compress.util.CpioStreamFactory

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.