Package org.apache.tools.ant.util

Examples of org.apache.tools.ant.util.UUEncoder


/**
* UUEncodes a file using org.apache.tools.ant.util.UUEncoder.
*/
public class UUEncodeTask extends BaseTask {
    protected void doit(InputStream is, OutputStream os) throws Exception {
        new UUEncoder(getInFile().getName()).encode(is, os);
    }
View Full Code Here


        FileInputStream finstr = new FileInputStream(file);

        try {
            BufferedInputStream in = new BufferedInputStream(finstr);
            UUEncoder encoder = new UUEncoder(file.getName());

            encoder.encode(in, out);

        } finally {
            finstr.close();
        }
    }
View Full Code Here

TOP

Related Classes of org.apache.tools.ant.util.UUEncoder

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.