亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來(lái)到蟲(chóng)蟲(chóng)下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲(chóng)蟲(chóng)下載站

?? directorypoller.java

?? 一個(gè)簡(jiǎn)易的輪訓(xùn)小程序 哈哈哈哈哈哈后 嘿嘿嘿嘿黑誒
?? JAVA
?? 第 1 頁(yè) / 共 4 頁(yè)
字號(hào):
        public String toString() { return "null filter"; }
    }

    
        
    /**
     * This comparator can be used to list files based on modification time.
     * 
     * @author Cristiano Sadun
     */
    public static class ModificationTimeComparator extends BidirectionalComparator {

        /**
         * Create a comparator which will impose an ascending or descending order on
         * modification times depending on the value of the parameter
         * 
         * @param ascending if <b>true</b>, older files will be ordered before newer files.
         */
        public ModificationTimeComparator(boolean ascending) {
            super(ascending);
        }
        
        protected final  long getComparisonValue(File f1,  File f2) {
            return f1.lastModified()-f2.lastModified();
        }
        
    }
    
    /**
     * This comparator can be used to list files based on size.
     * 
     * @author Cristiano Sadun
     */
    public static class FileSizeComparator extends BidirectionalComparator {
        
        /**
         * Create a comparator which will impose an ascending or descending order on
         * modification times depending on the value of the parameter
         * 
         * @param ascending if <b>true</b>, older files will be ordered before newer files.
         */
        public FileSizeComparator(boolean ascending) {
            super(ascending);
        }
        
        
        protected final long getComparisonValue(File f1, File f2) {
            return f1.length()-f2.length();
        }

    }
    

    /**
     * Create a poller over the given directories, using the given filter.
     * <p>
     * SubDirectories are automatically filtered.
     * @param dirs an array of directories
     * @param filter a filter for files to look up
     */
    public DirectoryPoller(File []dirs, FilenameFilter filter) {
        this(dirs, filter, false);
    }

    /**
     * Create a poller over the given directories, which will match any file.
     * <p>
     * SubDirectories are automatically filtered.
     * @param dirs an array of directories
     */
    public DirectoryPoller(File []dirs) {
        this(dirs, new NullFilenameFilter());
    }


    /**
     * Create a poller over the given directory, using the given filter.
     * <p>
     * SubDirectories are automatically filtered.
     * @param dir a directory
     * @param filter a filter for files to look up
     */
    public DirectoryPoller(File directory, FilenameFilter filter) {
        this(new File[] { directory }, filter );
    }

    /**
     * Create a poller over the given directory, which will match any file.
     * <p>
     * SubDirectories are automatically filtered.
     * @param dir a directory
     */
    public DirectoryPoller(File directory) {
        this(new File[] { directory });
    }

    /**
     * Create a poller initially not bound to any directory, which uses the given filter.
     * <p>
     * SubDirectories are automatically filtered.
     * <p>
     * Before starting the poller, a single call to {@link DirectoryPoller#setDirectories(java.io.File[])}
     * must be done to bind the poller to a specific directory.
     *
     * @param filter a filter for files to look up
     */
    public DirectoryPoller(FilenameFilter filter) {
        this(filter, false);
    }


    /**
     * Create a poller initially not bound to any directory, which will match any file.
     * <p>
     * SubDirectories are automatically filtered.
     * <p>
     * Before starting the poller, a single call to {@link DirectoryPoller#setDirectories(java.io.File[])}
     * must be done to bind the poller to a specific directory.
     *
     * @param filter a filter for files to look up
     */
    public DirectoryPoller() {
        this(new NullFilenameFilter());
    }


    /**
     * Create a poller over the given directories, using the given filter
     * and time-based filtering as well (see class comment).
     * <p>
     * SubDirectories are automatically filtered.
     *
     * @param dirs an array of directories
     * @param filter a filter for files to look up
     * @param timeBased if <b>true</b>, the poller uses time-based lookup
     */
    public DirectoryPoller(File []dirs, FilenameFilter filter, boolean timeBased) {
        setName("directory-poller-"+(counter++));
        setDirectories(dirs);
        this.originalFilter=new DirectoryFilter(filter);
        setTimeBased(timeBased);
        this.baseTime=new long[dirs.length];
    }

    /**
     * Create a poller over the given directory, using the given filter
     * and time-based filtering as well (see class comment).
     * <p>
     * SubDirectories are automatically filtered.
     * @param dir a directory
     * @param filter a filter for files to look up
     */
    public DirectoryPoller(File directory, FilenameFilter filter, boolean timeBased) {

        this(new File[] { directory }, filter, timeBased);
    }

    /**
     * Create a poller initially not bound to any directory, which uses the given filter
     * and time-based filtering as well (see class comment).
     * <p>
     * SubDirectories are automatically filtered.
     * <p>
     * Before starting the poller, a single call to {@link DirectoryPoller#setDirectories(java.io.File[])}
     * must be done to bind the poller to a specific directory.
     *
     * @param filter a filter for files to look up
     */
    public DirectoryPoller(FilenameFilter filter, boolean timeBased) {
        this(new File[0], filter, timeBased);
    }

	/**
	 * Add one directory to the controlled set. It can be called
     * only if the poller thread hasn't started yet.
	 * @param dir the directory to add
	 * @exception IllegalStateException if the poller has already started.
     * @exception IllegalArgumentException if String does not contain a directory path
	 */
    public void addDirectory(File dir) {
    	File [] originalDirs=getDirectories();
    	
    	// Ignore duplicated directorues
    	for(int i=0;i<originalDirs.length;i++)
    		if (originalDirs[i].getAbsoluteFile().equals(dir.getAbsoluteFile())) return;
    	
    	File [] dirs = new File[getDirectories().length+1];
    	System.arraycopy(originalDirs,0,dirs,0,originalDirs.length);
    	dirs[originalDirs.length]=dir;
    	setDirectories(dirs);
    }

    /**
	 * Remove one directory from the controlled set. It can be called
     * only if the poller thread hasn't started yet.
	 * @param dir the directory to remove
	 * @exception IllegalStateException if the poller has already started.
     * @exception IllegalArgumentException if the directory is not among the controlled ones
	 */
     public void removeDirectory(File dir) {
     	File [] originalDirs=getDirectories();
    	File [] dirs = new File[originalDirs.length-1];
    	boolean removed=false;
    	int c=0;
    	for(int i=0;i<originalDirs.length;i++) {
    		if (originalDirs[i].equals(dir)) {
    			removed=true;
    		} else { dirs[c++]=originalDirs[i]; }
    	}
    	if (!removed)
    		throw new IllegalArgumentException(dir+" is not a controlled directory");
    	setDirectories(dirs);
     }


    /**
     * Set the directories controlled by the poller. It can be called
     * only if the poller thread hasn't started yet.
     *
     * @param dirs the directories to be controlled by the poller
     * @exception IllegalStateException if the poller has already started.
     * @exception IllegalArgumentException if any of the File objects is not a directory
     */
    public void setDirectories(File [] dirs) {
        if (isAlive())
            if (!isSleeping())
                throw new IllegalStateException("Can't call setDirectories when the poller is running and not sleeping");
        if (dirs!=null) {
            for(int i=0;i<dirs.length;i++) {
                if (! dirs[i].isDirectory())
                    throw new IllegalArgumentException(dirs[i]+" is not a directory");
            }
        }
        this.dirs=dirs;
        baseTime=new long[dirs.length];
    }

    /**
     * Return the directories controlled by the poller.
     * @return the directories controlled by the poller
     */
    public File [] getDirectories() { return dirs; }

    /**
     * Instruct the poller to automatically move the file to the
     * directory associated to each directory under control, which
     * can be set/retrieved by {@link DirectoryPoller#setAutoMoveDirectory(java.io.File,
     * java.io.File) setAutoMoveDirectory()}/{@link
     * DirectoryPoller#getAutoMoveDirectory(java.io.File) getAutoMoveDirectory()}
     * (see also class description).
     *
     * @param v if <b>true</b>, the poller will automatically move
     *          selected files in the "received" directory associated
     *          to each directory under control
     */
    public void setAutoMove(boolean v) {
        autoMove=v;
    }

    /**
     * Verify the autoMove mode (see {@link DirectoryPoller#setAutoMove(boolean)
     * setAutoMove()} and class description).
     *
     * @return <b>true</b> if autoMove mode is active
     */
    public boolean getAutoMove() {
        return autoMove;
    }

    /**
     * Returns the directory associated to the given controlled directory,
     * where files polled are automatically moved if the
     * autoMove mode is active (see {@link DirectoryPoller#setAutoMove(boolean)
     * setAutoMove()} and class description).
     * <p>
     * If no directory is associated by {@link DirectoryPoller#setAutoMoveDirectory(java.io.File,
     * java.io.File) setAutoMoveDirectory()}, the subdirectory {@link
     * DirectoryPoller#DEFAULT_AUTOMOVE_DIRECTORY DEFAULT_AUTOMOVE_DIRECTORY} is associated
     * automatically.
     *
     * @param directory the directory for which the associated "automove" directory
     *        is requested
     * @exception IllegalArgumentException if <tt>directory</tt> is not under control of
     *            the poller
     */
    public File getAutoMoveDirectory(File directory) throws IllegalArgumentException {
        directory=PathNormalizer.normalize(directory);
        File f = (File)autoMoveDirs.get(directory);
        if (f==null) {

?? 快捷鍵說(shuō)明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产精品婷婷午夜在线观看| 久久嫩草精品久久久精品一| 久久精品久久99精品久久| 国产日韩欧美精品综合| 欧美视频第二页| 成人永久看片免费视频天堂| 日韩电影免费在线看| 亚洲欧洲色图综合| 欧美精品一区二区久久婷婷| 色吊一区二区三区| 国内精品免费在线观看| 婷婷国产v国产偷v亚洲高清| 欧美国产丝袜视频| 日韩欧美第一区| 在线观看av一区| 不卡免费追剧大全电视剧网站| 美女脱光内衣内裤视频久久网站| 中文字幕中文字幕在线一区 | 亚洲综合无码一区二区| 成人午夜看片网址| 欧美国产日韩a欧美在线观看| 国产精品一区二区男女羞羞无遮挡| 精品成人a区在线观看| 国产在线精品视频| 午夜精品在线看| 色哟哟日韩精品| 成人a免费在线看| 国内成人免费视频| 蜜臀av一级做a爰片久久| 亚洲国产精品综合小说图片区| 欧美精彩视频一区二区三区| 久久视频一区二区| 精品剧情v国产在线观看在线| 91久久线看在观草草青青| 成人一级片在线观看| 精品一区二区综合| 蜜桃一区二区三区在线观看| 婷婷中文字幕综合| 午夜伦欧美伦电影理论片| 亚洲综合在线免费观看| 亚洲女人****多毛耸耸8| 国产精品情趣视频| 国产精品美女久久久久久2018| 久久久久久久久久久电影| 精品蜜桃在线看| 26uuu亚洲综合色| 久久久久久99精品| 国产免费成人在线视频| 国产视频一区二区在线观看| 久久亚洲影视婷婷| 中文字幕精品一区| 亚洲品质自拍视频网站| 亚洲综合一区在线| 午夜视频在线观看一区| 日韩有码一区二区三区| 美女视频黄 久久| 精品一区二区三区免费视频| 韩国成人福利片在线播放| 国产麻豆91精品| 91片黄在线观看| 欧美日本一区二区三区| 日韩精品中午字幕| 国产人伦精品一区二区| 一色桃子久久精品亚洲| 亚洲一区二区三区国产| 天堂精品中文字幕在线| 美脚の诱脚舐め脚责91| 国产成人av电影在线观看| 99久精品国产| 欧美日韩精品一区二区三区四区| 日韩你懂的在线观看| 国产色婷婷亚洲99精品小说| 亚洲少妇屁股交4| 五月激情综合色| 国产一区欧美日韩| 91麻豆视频网站| 911国产精品| 久久精品日韩一区二区三区| 亚洲日本欧美天堂| 六月丁香综合在线视频| 懂色av中文一区二区三区| 91高清视频免费看| 精品盗摄一区二区三区| 中文字幕日韩av资源站| 日韩电影一区二区三区四区| 成人综合婷婷国产精品久久| 欧美在线一二三四区| 久久综合资源网| 一区二区不卡在线视频 午夜欧美不卡在 | 国产精品传媒视频| 亚洲成人一区在线| 国产美女久久久久| 欧美视频一区二区三区四区| 久久久91精品国产一区二区三区| 亚洲免费av网站| 国产揄拍国内精品对白| 在线精品视频一区二区| 26uuu成人网一区二区三区| 亚洲精品视频免费看| 激情综合网最新| 欧美三级在线视频| 国产精品卡一卡二卡三| 蜜桃传媒麻豆第一区在线观看| 91免费看片在线观看| 2023国产精品| 日韩国产精品大片| 99re视频精品| 中文字幕精品一区二区精品绿巨人| 日韩国产精品久久久| 91久久免费观看| 国产精品久久久久久久久免费樱桃| 日韩国产高清在线| 欧美在线视频全部完| 国产精品白丝在线| 国产aⅴ精品一区二区三区色成熟| 制服丝袜中文字幕亚洲| 亚洲一区二区三区四区在线观看 | 欧美男同性恋视频网站| 亚洲三级免费观看| 成人黄色片在线观看| 精品免费视频一区二区| 日韩高清欧美激情| 欧美日韩一区久久| 亚洲狠狠丁香婷婷综合久久久| 懂色av中文一区二区三区| 精品久久国产97色综合| 日韩高清国产一区在线| 欧美日韩一区二区三区在线看 | 秋霞影院一区二区| 欧美三级韩国三级日本三斤| 亚洲欧美另类小说| 91免费观看视频| 一区二区中文视频| 91在线一区二区| 最新成人av在线| 在线亚洲一区二区| 伊人色综合久久天天人手人婷| 91麻豆精品秘密| 亚洲人被黑人高潮完整版| 一本到三区不卡视频| 亚洲精品国产视频| 欧美综合久久久| 天天影视涩香欲综合网| 91精品国产综合久久蜜臀| 日韩精品福利网| 欧美一区二区三区男人的天堂| 视频一区中文字幕| 欧美一级片在线| 国产精品亚洲人在线观看| 久久久亚洲国产美女国产盗摄| 国产在线精品一区二区夜色| 久久久久久毛片| av在线不卡网| 亚洲精品成人精品456| 欧美做爰猛烈大尺度电影无法无天| 夜夜嗨av一区二区三区网页| 欧美色图在线观看| 日韩av中文字幕一区二区| 欧美大黄免费观看| 国产一区在线观看视频| 国产喷白浆一区二区三区| 成人av网在线| 亚洲一级二级三级| 日韩免费观看高清完整版 | 99re热视频这里只精品 | 国产永久精品大片wwwapp| 久久久久久久久久久黄色| 99精品欧美一区二区三区综合在线| 亚洲品质自拍视频| 欧美一二三四区在线| 国产精品一品二品| 亚洲美女精品一区| 91精品国产综合久久福利软件 | 欧美日韩精品三区| 极品美女销魂一区二区三区免费| 国产片一区二区| 欧美美女一区二区| 国产精品一区一区三区| 亚洲另类色综合网站| 日韩美女视频一区二区在线观看| 国产91丝袜在线播放0| 亚洲午夜久久久久久久久久久 | 一区二区三区欧美久久| 日韩一区二区视频| 成人性视频网站| 天天操天天干天天综合网| 精品粉嫩aⅴ一区二区三区四区 | 91蝌蚪porny九色| 久久超碰97中文字幕| 亚洲人成网站精品片在线观看| 日韩视频一区二区三区在线播放| 国产高清久久久| 三级欧美在线一区| 中文字幕在线观看一区| 制服丝袜在线91| 色av一区二区| 国产v日产∨综合v精品视频| 视频一区视频二区中文字幕| 国产精品人人做人人爽人人添| 91精品国产综合久久香蕉麻豆 |