Package de.intarsys.tools.file
Class Loader
java.lang.Object
de.intarsys.tools.file.Loader
A utility class to simplify the task of loading files and / or directories.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanprotected booleanbasicLoadDirectory(File file, boolean readOnly, boolean recursive, String path) protected abstract booleanbasicLoadFile(File file, boolean readOnly, String path) booleanbooleanbooleanboolean
-
Field Details
-
PATH_SEPARATOR
- See Also:
-
DEFAULT_LANGUAGE
- See Also:
-
PROP_USERLANGUAGE
- See Also:
-
-
Constructor Details
-
Loader
public Loader()
-
-
Method Details
-
basicLoadFile
protected abstract boolean basicLoadFile(File file, boolean readOnly, String path) throws IOException - Throws:
IOException
-
load
- Throws:
IOException
-
basicLoad
protected boolean basicLoad(File file, boolean readOnly, boolean recursive, String path) throws IOException - Throws:
IOException
-
basicLoadDirectory
protected boolean basicLoadDirectory(File file, boolean readOnly, boolean recursive, String path) throws IOException - Throws:
IOException
-
load
public boolean load(File parent, String filename, boolean readOnly, boolean recursive) throws IOException - Throws:
IOException
-
loadNLS
- Throws:
IOException
-
loadNLS
public boolean loadNLS(File parent, String filename, boolean readOnly, boolean recursive) throws IOException - Throws:
IOException
-