Package 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.
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
DEFAULT_LANGUAGE
static java.lang.String
PATH_SEPARATOR
protected static java.lang.String
PROP_USERLANGUAGE
-
Constructor Summary
Constructors Constructor Description Loader()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description 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)
-
-
-
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
-
-
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
-
-