Package info.freelibrary.util

Examples of info.freelibrary.util.RegexFileFilter


            }
        }
    }

    private void loadFileSystemImages(File aJP2Dir, File aSource) throws IOException, FileNotFoundException {
        FilenameFilter filter = new RegexFileFilter(JP2_FILE_PATTERN);
        PairtreeRoot pairtree = new PairtreeRoot(aJP2Dir);
        String skipped = "pairtree_root";
        Builder bob = new Builder();

        // +1 below is to lose the trailing slash; we add via "--/" below
View Full Code Here


        // Sets the Maven loggers' levels (not the levels of loggers used by this plugin)
        MavenUtils.setLogLevels(MavenUtils.ERROR_LOG_LEVEL, MavenUtils.getMavenLoggers());

        try {
            final PairtreeRoot pairtree = new PairtreeRoot(new File(ptfs));
            final RegexFileFilter filter = new RegexFileFilter(".*");
            final String eol = System.getProperty("line.separator");
            final File[] jp2List = FileUtils.listFiles(pairtree, filter, true);

            int processed = 0;

View Full Code Here

    @SuppressWarnings("unchecked")
    @Override
    protected void doGet(HttpServletRequest aRequest, HttpServletResponse aResponse) throws ServletException,
            IOException {
        String pt = myProps.getProperty(JP2_DATA_DIR) + "/pairtree_root/--";
        RegexFileFilter filter = new RegexFileFilter(".*");
        ServletContext context = getServletContext();
        Object object = context.getAttribute("djin");
        Random random = new Random();
        List<String> files;
        String image;
View Full Code Here

     *
     * @param aTIFDir A source directory
     * @param aJP2Dir A target directory
     */
    public StatsCompilation(final File aTIFDir, final File aJP2Dir) {
        final RegexFileFilter jp2Pattern = new RegexFileFilter(JP2_FILE_PATTERN);
        final RegexFileFilter tifPattern = new RegexFileFilter(TIFF_FILE_PATTERN);
        long jp2CountLong = 0;
        long tifCountLong = 0;

        if (!aJP2Dir.exists() && !aJP2Dir.mkdirs() && LOGGER.isWarnEnabled()) {
            LOGGER.warn("Couldn't create requested JP2 directory: {}", aJP2Dir);
View Full Code Here

                    if (LOGGER.isDebugEnabled()) {
                        LOGGER.debug("Viewing contents of {}", dir);
                    }

                    dirFilter = new RegexDirFilter(".*");
                    jp2Filter = new RegexFileFilter(JP2_FILE_PATTERN);

                    for (final File file : dir.listFiles(dirFilter)) {
                        name = encodeEntities(file.getName());
                        writer.write("<dir name='" + name + "'/>");
                    }
View Full Code Here

TOP

Related Classes of info.freelibrary.util.RegexFileFilter

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.