public final class P3DatabaseReader extends AbstractProjectFileReader
Constructor and Description |
---|
P3DatabaseReader() |
Modifier and Type | Method and Description |
---|---|
static List<String> |
listProjectNames(File directory)
Retrieve a list of the available P3 project names from a directory.
|
static List<String> |
listProjectNames(String directory)
Retrieve a list of the available P3 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 P3 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 P3 databaseMPXJException
public static final List<String> listProjectNames(String directory)
directory
- name of the directory containing P3 filespublic static final List<String> listProjectNames(File directory)
directory
- directory containing P3 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.