Package de.schlichtherle.io

Examples of de.schlichtherle.io.File.listFiles()


        }
    }
   
    public void doCleanup() {
        File file = new File(_cachePath);
        java.io.File[] zips = file.listFiles(new FilenameFilter() {
            public boolean accept(java.io.File dir, String name) {
                return name.endsWith(".zip"); //$NON-NLS-1$
            }
        });
        if(zips != null) {
View Full Code Here


    @Override
    public DescriptorData create(java.io.File jitterpack) throws IOException, IllegalDataFormatException {
        boolean isEncrypted = EncryptionChecker.isPossibleEncryptedJitterPack(jitterpack);
        ArchiveDetector detector = TrueZipUtils.getArchiveDetector(password);
        File source = new File(jitterpack, detector);
        java.io.File[] topLevelFiles = source.listFiles();
        if (topLevelFiles != null) {
            int length = topLevelFiles.length;
            if (length == 1) {
                java.io.File projectFolder = topLevelFiles[0];
                InputStream in = null;
View Full Code Here

    public static DescriptorDataFactory newInstance(java.io.File jitterpack, char[] password, String headerFilename)
                                                throws IllegalDataFormatException {
        if (password == null) {
            ArchiveDetector detector = TrueZipUtils.getArchiveDetector(null);
            File source = new File(jitterpack, detector);
            java.io.File[] topLevelFiles = source.listFiles();
            if (topLevelFiles != null) {
                int length = topLevelFiles.length;
                if (length == 1) {
                    return new V110_DescriptorDataFactory(headerFilename, null);
                } else if (length >= 1) {
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.