Package org.webbitserver.handler

Examples of org.webbitserver.handler.FileEntry


        while ((zipEntry = jarStream.getNextEntry()) != null) {
            if (isChild(subdirectory, zipEntry.getName())) {
                String basename = zipEntry.getName().substring(subdirectory.length());
                int indexOfSlash = basename.indexOf('/');
                if (indexOfSlash < 0 || indexOfSlash == basename.length() - 1) {
                    list.add(new FileEntry(basename));
                }
            }
        }
        return list;
    }
View Full Code Here


        for (File file : files) {
            String filename = file.getName();
            if (file.isDirectory()) {
                filename += "/";
            }
            fileEntries.add(new FileEntry(filename));
        }
        return fileEntries;
    }
View Full Code Here

TOP

Related Classes of org.webbitserver.handler.FileEntry

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.