de.intarsys.tools.file
Class Loader
java.lang.Object
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.
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 |
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
Loader
public Loader()
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