de.intarsys.tools.file
Class Loader

java.lang.Object
  extended by de.intarsys.tools.file.Loader

public abstract class Loader
extends java.lang.Object

A utility class to simplify the task of loading files and / or directories.


Field Summary
static java.lang.String DEFAULT_LANGUAGE
           
static java.lang.String PATH_SEPARATOR
           
protected static java.lang.String PROP_USERLANGUAGE
           
 
Constructor Summary
Loader()
           
 
Method Summary
protected  boolean basicLoad(java.io.File file, boolean readOnly, boolean recursive, java.lang.String path)
           
protected  boolean basicLoadDirectory(java.io.File file, boolean readOnly, boolean recursive, java.lang.String path)
           
protected abstract  boolean basicLoadFile(java.io.File file, boolean readOnly, java.lang.String path)
           
 boolean load(java.io.File file, boolean readOnly, boolean recursive)
           
 boolean load(java.io.File parent, java.lang.String filename, boolean readOnly, boolean recursive)
           
 boolean loadNLS(java.io.File file, boolean readOnly, boolean recursive)
           
 boolean loadNLS(java.io.File parent, java.lang.String filename, boolean readOnly, boolean recursive)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PATH_SEPARATOR

public static final java.lang.String PATH_SEPARATOR
See Also:
Constant Field Values

DEFAULT_LANGUAGE

public static final java.lang.String DEFAULT_LANGUAGE
See Also:
Constant Field Values

PROP_USERLANGUAGE

protected static final java.lang.String PROP_USERLANGUAGE
See Also:
Constant Field Values
Constructor Detail

Loader

public Loader()
Method Detail

basicLoadFile

protected abstract boolean basicLoadFile(java.io.File file,
                                         boolean readOnly,
                                         java.lang.String path)
                                  throws java.io.IOException
Throws:
java.io.IOException

load

public boolean load(java.io.File file,
                    boolean readOnly,
                    boolean recursive)
             throws java.io.IOException
Throws:
java.io.IOException

basicLoad

protected boolean basicLoad(java.io.File file,
                            boolean readOnly,
                            boolean recursive,
                            java.lang.String path)
                     throws java.io.IOException
Throws:
java.io.IOException

basicLoadDirectory

protected boolean basicLoadDirectory(java.io.File file,
                                     boolean readOnly,
                                     boolean recursive,
                                     java.lang.String path)
                              throws java.io.IOException
Throws:
java.io.IOException

load

public boolean load(java.io.File parent,
                    java.lang.String filename,
                    boolean readOnly,
                    boolean recursive)
             throws java.io.IOException
Throws:
java.io.IOException

loadNLS

public boolean loadNLS(java.io.File file,
                       boolean readOnly,
                       boolean recursive)
                throws java.io.IOException
Throws:
java.io.IOException

loadNLS

public boolean loadNLS(java.io.File parent,
                       java.lang.String filename,
                       boolean readOnly,
                       boolean recursive)
                throws java.io.IOException
Throws:
java.io.IOException