Package org.apache.ant.compress.util

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


*/
public class Tar extends ArchiveBase {
    private Format format = Format.USTAR;

    public Tar() {
        setFactory(new TarStreamFactory(){
                public ArchiveOutputStream getArchiveStream(OutputStream stream,
                                                            String encoding)
                    throws IOException {
                    TarArchiveOutputStream o =
                        (TarArchiveOutputStream) super.getArchiveStream(stream,
View Full Code Here


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

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

    /**
     * Default constructor.
     */
    public TarResource() {
        super(new TarStreamFactory(), "tar");
    }
View Full Code Here

     * entry in the specified archive.
     * @param a the archive as File.
     * @param e the TarEntry.
     */
    public TarResource(File a, TarArchiveEntry e) {
        super(new TarStreamFactory(), "tar", a, e);
        setEntry(e);
    }
View Full Code Here

     * entry in the specified archive.
     * @param a the archive as Resource.
     * @param e the TarEntry.
     */
    public TarResource(Resource a, TarArchiveEntry e) {
        super(new TarStreamFactory(), "tar", a, e);
        setEntry(e);
    }
View Full Code Here

*/
public class Tar extends ArchiveBase {
    private Format format = Format.USTAR;

    public Tar() {
        setFactory(new TarStreamFactory(){
                public ArchiveOutputStream getArchiveStream(OutputStream stream,
                                                            String encoding)
                    throws IOException {
                    TarArchiveOutputStream o =
                        (TarArchiveOutputStream) super.getArchiveStream(stream,
View Full Code Here

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

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

    /**
     * Default constructor.
     */
    public TarResource() {
        super(new TarStreamFactory(), "tar");
    }
View Full Code Here

TOP

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

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.