public final class SureTrakDatabaseReader extends AbstractProjectFileReader
Constructor and Description |
---|
SureTrakDatabaseReader() |
Modifier and Type | Method and Description |
---|---|
static List<String> |
listProjectNames(File directory)
Retrieve a list of the available SureTrak project names from a directory.
|
static List<String> |
listProjectNames(String directory)
Retrieve a list of the available SureTrak project names from a directory.
|
ProjectFile |
read(File directory)
Read a single schedule from a file where a File instance is supplied.
|
List<ProjectFile> |
readAll(File directory)
Default implementation of readAll.
|
void |
setProjectName(String projectName)
Set the project name (file name prefix) used to identify which database is read from the directory.
|
static ProjectFile |
setProjectNameAndRead(File directory)
Convenience method which locates the first SureTrak database in a directory
and opens it.
|
read, read, readAll, readAll
addListenersToProject, addListenersToReader, addProjectListener
public static final ProjectFile setProjectNameAndRead(File directory) throws MPXJException
directory
- directory containing a SureTrak databaseMPXJException
public static final List<String> listProjectNames(String directory)
directory
- name of the directory containing SureTrak filespublic static final List<String> listProjectNames(File directory)
directory
- directory containing SureTrak filespublic void setProjectName(String projectName)
projectName
- project namepublic ProjectFile read(File directory) throws MPXJException
ProjectReader
directory
- File instanceMPXJException
public List<ProjectFile> readAll(File directory) throws MPXJException
AbstractProjectFileReader
readAll
in interface ProjectReader
readAll
in class AbstractProjectFileReader
directory
- File instanceMPXJException
Copyright © 2000–2024 Packwood Software. All rights reserved.