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.
|
addListenersToProject, addListenersToReader, addProjectListener
public ProjectFile read(String fileName) throws MPXJException
ProjectReader
fileName
- file nameMPXJException
public List<ProjectFile> readAll(String fileName) throws MPXJException
ProjectReader
fileName
- file nameMPXJException
public ProjectFile read(File file) throws MPXJException
ProjectReader
file
- File instanceMPXJException
public List<ProjectFile> readAll(File file) throws MPXJException
ProjectReader
file
- File instanceMPXJException
public ProjectFile read(InputStream inputStream) throws MPXJException
ProjectReader
inputStream
- InputStream instanceMPXJException
public List<ProjectFile> readAll(InputStream inputStream) throws MPXJException
ProjectReader
inputStream
- InputStream instanceMPXJException
public 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 foundMPXJException
public 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 foundMPXJException
public 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 foundMPXJException
Copyright © 2000–2024 Packwood Software. All rights reserved.