public interface BBjAdminFile extends BBjAdminPropertyWriter
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
DIRECTORY |
static java.lang.String |
FULL_PATH |
static java.lang.String |
MODIFIED |
static java.lang.String |
NAME |
static java.lang.String |
SIZE |
Modifier and Type | Method and Description |
---|---|
void |
delete()
Delete the file described by this object.
|
boolean |
exists()
Returns true if the file exists, or false otherwise.
|
byte[] |
getContents()
Returns the contents of the entire file as a byte[].
|
BBjAdminFile |
getParent()
Returns the parent directory of this file or directory.
|
BBjAdminList<BBjAdminFile> |
listFiles(boolean p_sortDirectoriesFirst)
Returns a list of the files in the directory if this is a directory or null if it is
a file.
|
boolean |
mkdirs()
Creates the directory described by this object, as well as any parent directories.
|
addType, canAddNewProperties, canClear, clear, clearProperties, clearProperty, getReadOnly, hasChanged, isReadOnly, setBoolean, setDouble, setInt, setList, setLong, setProperties, setString, setValue
checkValueEqual, contains, contains, getBoolean, getDouble, getInt, getList, getLong, getProperties, getString, getType, getTypes, getValue
static final java.lang.String FULL_PATH
static final java.lang.String NAME
static final java.lang.String DIRECTORY
static final java.lang.String MODIFIED
static final java.lang.String SIZE
BBjAdminList<BBjAdminFile> listFiles(boolean p_sortDirectoriesFirst) throws BBjAdminException
p_sortDirectoriesFirst
- True if the directories should be sorted at the beginning of the list.
If false, the directories and files will be mixed together, sorted
alphabetically (case insensitive).BBjAdminException
boolean exists() throws BBjAdminException
BBjAdminException
byte[] getContents() throws BBjAdminException
BBjAdminException
BBjAdminFile getParent() throws BBjAdminException
BBjAdminException
void delete() throws BBjAdminException
BBjAdminException
boolean mkdirs() throws BBjAdminException
BBjAdminException