Package com.xebialabs.overthere

Examples of com.xebialabs.overthere.RuntimeIOException


        logger.debug("Checking whether {} can be written", smbFile.getUncPath());

        try {
            return smbFile.canWrite();
        } catch (SmbException exc) {
            throw new RuntimeIOException(format("Cannot determine whether %s can be written: %s", smbFile.getUncPath(), exc.toString()), exc);
        }
    }
View Full Code Here


        logger.debug("Checking whether {} can be executed", smbFile.getUncPath());

        try {
            return smbFile.canRead();
        } catch (SmbException exc) {
            throw new RuntimeIOException(format("Cannot determine whether %s can be executed: %s", smbFile.getUncPath(), exc.toString()), exc);
        }
    }
View Full Code Here

        logger.debug("Checking whether {} is a file", smbFile.getUncPath());

        try {
            return smbFile.isFile();
        } catch (SmbException exc) {
            throw new RuntimeIOException(format("Cannot determine whether %s is a file: %s", smbFile.getUncPath(), exc.toString()), exc);
        }
    }
View Full Code Here

        logger.debug("Checking whether {} is a directory", smbFile.getUncPath());

        try {
            return smbFile.isDirectory();
        } catch (SmbException exc) {
            throw new RuntimeIOException(format("Cannot determine whether %s is a directory: %s", smbFile.getUncPath(), exc.toString()), exc);
        }
    }
View Full Code Here

        logger.debug("Checking whether {} is hidden", smbFile.getUncPath());

        try {
            return smbFile.isHidden();
        } catch (SmbException exc) {
            throw new RuntimeIOException(format("Cannot determine whether %s is hidden: %s", smbFile.getUncPath(), exc.toString()), exc);
        }
    }
View Full Code Here

        logger.debug("Retrieving last modification date of {}", smbFile.getUncPath());

        try {
            return smbFile.lastModified();
        } catch (SmbException exc) {
            throw new RuntimeIOException(format("Cannot determine last modification timestamp of %s: %s", smbFile.getUncPath(), exc.toString()), exc);
        }
    }
View Full Code Here

        logger.debug("Retrieving length of {}", smbFile.getUncPath());

        try {
            return smbFile.length();
        } catch (SmbException exc) {
            throw new RuntimeIOException(format("Cannot determine length of file %s", smbFile.getUncPath(), exc.toString()), exc);
        }
    }
View Full Code Here

            for (String name : smbFile.list()) {
                files.add(getFile(name));
            }
            return files;
        } catch (MalformedURLException exc) {
            throw new RuntimeIOException(format("Cannot list directory %s: %s", smbFile.getUncPath(), exc.toString()), exc);
        } catch (SmbException exc) {
            throw new RuntimeIOException(format("Cannot list directory %s: %s", smbFile.getUncPath(), exc.toString()), exc);
        }
    }
View Full Code Here

        logger.debug("Creating directory {}", smbFile.getUncPath());

        try {
            smbFile.mkdir();
        } catch (SmbException exc) {
            throw new RuntimeIOException(format("Cannot create directory %s: %s", smbFile.getUncPath(), exc.toString()), exc);
        }
    }
View Full Code Here

        logger.debug("Creating directories {}", smbFile.getUncPath());

        try {
            smbFile.mkdirs();
        } catch (SmbException exc) {
            throw new RuntimeIOException(format("Cannot create directories %s: %s", smbFile.getUncPath(), exc.toString()), exc);
        }
    }
View Full Code Here

TOP

Related Classes of com.xebialabs.overthere.RuntimeIOException

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.