Package de.intarsys.tools.file
Class Loader
- java.lang.Object
-
- de.intarsys.tools.file.Loader
-
public abstract class Loader extends java.lang.ObjectA utility class to simplify the task of loading files and / or directories.
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringDEFAULT_LANGUAGEstatic java.lang.StringPATH_SEPARATORprotected static java.lang.StringPROP_USERLANGUAGE
-
Constructor Summary
Constructors Constructor Description Loader()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected booleanbasicLoad(java.io.File file, boolean readOnly, boolean recursive, java.lang.String path)protected booleanbasicLoadDirectory(java.io.File file, boolean readOnly, boolean recursive, java.lang.String path)protected abstract booleanbasicLoadFile(java.io.File file, boolean readOnly, java.lang.String path)booleanload(java.io.File file, boolean readOnly, boolean recursive)booleanload(java.io.File parent, java.lang.String filename, boolean readOnly, boolean recursive)booleanloadNLS(java.io.File file, boolean readOnly, boolean recursive)booleanloadNLS(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
-
-