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 boolean
protected boolean
basicLoadDirectory
(File file, boolean readOnly, boolean recursive, String path) protected abstract boolean
basicLoadFile
(File file, boolean readOnly, String path) boolean
boolean
boolean
boolean
-
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
-