org.shaker.dwu
Class ExtendedFilter

java.lang.Object
  |
  +--javax.swing.filechooser.FileFilter
        |
        +--org.shaker.dwu.ExtendedFilter
Direct Known Subclasses:
NS4Filter, NS6Filter

public abstract class ExtendedFilter
extends javax.swing.filechooser.FileFilter

This is a abstract basic class for import filters.

Author:
Philipp Bartsch (codeshaker@gmx.net), GPL License

Constructor Summary
ExtendedFilter()
           
 
Method Summary
(package private) static java.lang.String readFileToString(java.io.File file)
          Reads the content of a textual file into a String.
protected abstract  boolean resolvePropFile(java.io.File file)
          This method will extract the data out of a preferences file.
 
Methods inherited from class javax.swing.filechooser.FileFilter
accept, getDescription
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Constructor Detail

ExtendedFilter

public ExtendedFilter()
Method Detail

resolvePropFile

protected abstract boolean resolvePropFile(java.io.File file)
This method will extract the data out of a preferences file.
Parameters:
file - the file
Returns:
boolean a success flag

readFileToString

static final java.lang.String readFileToString(java.io.File file)
Reads the content of a textual file into a String.
Parameters:
file - requested file
Returns:
String the filecontent