Package eas.miscellaneous.system

Examples of eas.miscellaneous.system.FileNamePostfixFilter


            final String verz,
            final ParCollection params) {
        File pfad = new File(verz);
        String endungGZ = "gz";
        String endung = "xml";
        String[] gespGrGZ = pfad.list(new FileNamePostfixFilter(endungGZ));
        String[] gespGr;
       
        if (gespGrGZ == null) {
            StaticMethods.log(
                    StaticMethods.LOG_ERROR,
                    "Ungueltiges Verzeichnis: " + verz,
                    params);
            throw new RuntimeException("Ungültiges Verzeichnis.\n" + verz);
        }
       
        // Entpacke Dateien.
        // TODO: Dieser Teil muss eigentlich nur dann passieren,
        // wenn die Textdateien noch nicht existieren.
        for (String s : gespGrGZ) {
            StaticMethods.logInfo("Entpacken " + s + ".", params);
            StaticMethods.entpackeDatei(
                    verz + File.separator + s,
                    verz + File.separator + StaticMethods.datNamOhneHintErw(s),
                    true);
        }
       
        gespGr = pfad.list(new FileNamePostfixFilter(endung));
       
        XMLAufnLesen aufn;
        String sGes;
        String zusGes;
View Full Code Here


     *
     * @return  Ob die Datei akzeptiert wird.
     */
    @Override
    public boolean accept(final File arg0, final String arg1) {
        return new FileNamePostfixFilter("gra").accept(arg0, arg1)
            || new FileNamePostfixFilter("tra").accept(arg0, arg1)
            || new FileNamePostfixFilter("con").accept(arg0, arg1);
    }
View Full Code Here

TOP

Related Classes of eas.miscellaneous.system.FileNamePostfixFilter

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.