Package slash.common.io

Examples of slash.common.io.WindowsShortcut


    public List<Category> getCategories() throws IOException {
        List<Category> categories = new ArrayList<Category>();
        for (File subDirectory : directory.listFiles(new DirectoryFileFilter())) {
            String name = decodeUri(subDirectory.getName());
            if (isPotentialValidLink(subDirectory)) {
                WindowsShortcut shortcut = new WindowsShortcut(subDirectory);
                if (shortcut.isDirectory()) {
                    name = removeExtension(name);
                    subDirectory = new File(shortcut.getRealFilename());
                } else
                    continue;
            }
            categories.add(new LocalCategory(catalog, subDirectory, name));
        }
View Full Code Here


    public List<Route> getRoutes() throws IOException {
        List<Route> routes = new ArrayList<Route>();
        for (File file : directory.listFiles(new FileFileFilter())) {
            String name = decodeUri(file.getName());
            if (isPotentialValidLink(file)) {
                WindowsShortcut shortcut = new WindowsShortcut(file);
                if (shortcut.isFile()) {
                    name = removeExtension(name);
                    file = new File(shortcut.getRealFilename());
                } else
                    continue;
            }
            routes.add(new LocalRoute(catalog, file, name));
        }
View Full Code Here

TOP

Related Classes of slash.common.io.WindowsShortcut

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.