public final class PrimaveraXERFileReader extends AbstractProjectReader
| Constructor and Description |
|---|
PrimaveraXERFileReader() |
| Modifier and Type | Method and Description |
|---|---|
void |
addProjectListener(ProjectListener listener)
Add a listener to receive events as a project is being read.
|
Map<Integer,String> |
listProjects(InputStream is)
Populates a Map instance representing the IDs and names of
projects available in the current file.
|
ProjectFile |
read(InputStream is)
Read a file where the contents of the project file
are supplied via an input stream.
|
List<ProjectFile> |
readAll(InputStream is)
This is a convenience method which allows all projects in an
XER file to be read in a single pass.
|
void |
setFieldNameForUdfType(UserFieldDataType type,
String fieldName)
Override the default field name mapping for user defined types.
|
void |
setProjectID(int projectID)
Set the ID of the project to be read.
|
read, readpublic void addProjectListener(ProjectListener listener)
listener - ProjectListener instancepublic void setProjectID(int projectID)
projectID - project IDpublic ProjectFile read(InputStream is) throws MPXJException
is - InputStream instanceMPXJExceptionpublic List<ProjectFile> readAll(InputStream is) throws MPXJException
is - input streamMPXJExceptionpublic Map<Integer,String> listProjects(InputStream is) throws MPXJException
is - input stream used to read XER fileMPXJExceptionpublic void setFieldNameForUdfType(UserFieldDataType type, String fieldName)
type - target user defined data typefieldName - field nameCopyright © 2013. All Rights Reserved.