Package pku.cbi.abcgrid.worker.ftp

Examples of pku.cbi.abcgrid.worker.ftp.FTPFile


     */
    FTPFile[] parse(String[] files) throws ParseException {
        FTPFile[] temp = new FTPFile[files.length];
        int count = 0;
        for (int i = 0; i < files.length; i++) {
            FTPFile file = parser.parse(files[i]);
            // we skip null returns - these are duff lines we know about and don't
            // really want to throw an exception
            if (file != null) {
                temp[count++] = file;
      }
View Full Code Here


        // name of file or dir - use the raw string to get
        // spaces etc
        int pos = raw.indexOf(fields[3]);
        if (pos > 0) {
            String name = raw.substring(pos);
            return new FTPFile(FTPFile.WINDOWS, raw, name.toString(), size, isDir, lastModified);
        }
        throw new ParseException("Failed to retrieve name: " + raw, 0);       
    }
View Full Code Here

        }
        else {
            throw new ParseException("Failed to retrieve name: " + raw, 0)
        }
       
        FTPFile file = new FTPFile(FTPFile.UNIX, raw, name, size, isDir, lastModified);
        file.setGroup(group);
        file.setOwner(owner);
        file.setLink(isLink);
        file.setLinkedName(linkedname);
        return file;
    }
View Full Code Here

TOP

Related Classes of pku.cbi.abcgrid.worker.ftp.FTPFile

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.