public final class UniversalProjectReader extends AbstractProjectReader
| Modifier and Type | Class and Description |
|---|---|
static interface |
UniversalProjectReader.ProjectReaderProxy
The classes implementing this interface provide access to an instance of
the
ProjectReader class (via the getProjectReader method)
which is the class that UniversalProjectReader has determined
should be used to read the file or stream you have passed it. |
| Constructor and Description |
|---|
UniversalProjectReader() |
| Modifier and Type | Method and Description |
|---|---|
UniversalProjectReader.ProjectReaderProxy |
getProjectReaderProxy(File file)
Retrieve a
ProjectReaderProxy instance which provides access to
the ProjectReader required to read a schedule from the supplied
File instance. |
UniversalProjectReader.ProjectReaderProxy |
getProjectReaderProxy(InputStream inputStream)
Retrieve a
ProjectReaderProxy instance which provides access to
the ProjectReader required to read a schedule from the supplied
InputStream instance. |
UniversalProjectReader.ProjectReaderProxy |
getProjectReaderProxy(String fileName)
Retrieve a
ProjectReaderProxy instance which provides access to
the ProjectReader required to read a schedule from the named file. |
ProjectFile |
read(File file)
Read a single schedule from a file where a File instance is supplied.
|
ProjectFile |
read(InputStream inputStream)
Read a single schedule from a file where the contents of the project file
are supplied via an input stream.
|
ProjectFile |
read(String fileName)
Read a single schedule from a file where the file name is supplied.
|
List<ProjectFile> |
readAll(File file)
Read all schedules from a file where a File instance is supplied.
|
List<ProjectFile> |
readAll(InputStream inputStream)
Read all schedules from a file where the contents of the project file
are supplied via an input stream.
|
List<ProjectFile> |
readAll(String fileName)
Read all schedules from a file where the file name is supplied.
|
addListenersToContext, addListenersToProject, addListenersToReader, addProjectListenerpublic ProjectFile read(String fileName) throws MPXJException
ProjectReaderfileName - file nameMPXJExceptionpublic List<ProjectFile> readAll(String fileName) throws MPXJException
ProjectReaderfileName - file nameMPXJExceptionpublic ProjectFile read(File file) throws MPXJException
ProjectReaderfile - File instanceMPXJExceptionpublic List<ProjectFile> readAll(File file) throws MPXJException
ProjectReaderfile - File instanceMPXJExceptionpublic ProjectFile read(InputStream inputStream) throws MPXJException
ProjectReaderinputStream - InputStream instanceMPXJExceptionpublic List<ProjectFile> readAll(InputStream inputStream) throws MPXJException
ProjectReaderinputStream - InputStream instanceMPXJExceptionpublic UniversalProjectReader.ProjectReaderProxy getProjectReaderProxy(String fileName) throws MPXJException
ProjectReaderProxy instance which provides access to
the ProjectReader required to read a schedule from the named file.fileName - name of file containing schedule dataProjectReaderProxy instance or null if no suitable reader can be foundMPXJExceptionpublic UniversalProjectReader.ProjectReaderProxy getProjectReaderProxy(File file) throws MPXJException
ProjectReaderProxy instance which provides access to
the ProjectReader required to read a schedule from the supplied
File instance.file - file containing schedule dataProjectReaderProxy instance or null if no suitable reader can be foundMPXJExceptionpublic UniversalProjectReader.ProjectReaderProxy getProjectReaderProxy(InputStream inputStream) throws MPXJException
ProjectReaderProxy instance which provides access to
the ProjectReader required to read a schedule from the supplied
InputStream instance.inputStream - stream containing schedule dataProjectReaderProxy instance or null if no suitable reader can be foundMPXJExceptionCopyright © 2000–2025 MPXJ. All rights reserved.