Examples of ArStreamFactory


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

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

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

        + " directory entries";

    private Format format = Format.AR;

    public Ar() {
        setFactory(new ArStreamFactory() {
                public ArchiveOutputStream getArchiveStream(OutputStream stream,
                                                            String encoding)
                    throws IOException {
                    ArArchiveOutputStream o =
                        (ArArchiveOutputStream) super.getArchiveStream(stream,
View Full Code Here

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

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

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

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

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

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

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

    private static final String NO_DIRS_MESSAGE = "ar archives cannot store"
        + " directory entries";

    public Ar() {
        setFactory(new ArStreamFactory());
        setEntryBuilder(
              new ArchiveBase.EntryBuilder() {
                public ArchiveEntry buildEntry(ArchiveBase.ResourceWithFlags r) {
                    boolean isDir = r.getResource().isDirectory();
                    if (isDir) {
View Full Code Here

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

    /**
     * Default constructor.
     */
    public ArResource() {
        super(new ArStreamFactory(), "ar");
    }
View Full Code Here

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

     * entry in the specified archive.
     * @param a the archive as File.
     * @param e the ArEntry.
     */
    public ArResource(File a, ArArchiveEntry e) {
        super(new ArStreamFactory(), "ar", a, e);
        setEntry(e);
    }
View Full Code Here

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

     * entry in the specified archive.
     * @param a the archive as Resource.
     * @param e the ArEntry.
     */
    public ArResource(Resource a, ArArchiveEntry e) {
        super(new ArStreamFactory(), "ar", a, e);
        setEntry(e);
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.