|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.mpxj.reader.AbstractProjectReader
net.sf.mpxj.primavera.PrimaveraXERFileReader
public final class PrimaveraXERFileReader
This class creates a new ProjectFile instance by reading a Primavera XER file.
| Constructor Summary | |
|---|---|
PrimaveraXERFileReader()
|
|
| Method Summary | |
|---|---|
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 |
setProjectID(int projectID)
Set the ID of the project to be read. |
| Methods inherited from class net.sf.mpxj.reader.AbstractProjectReader |
|---|
read, read |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PrimaveraXERFileReader()
| Method Detail |
|---|
public void addProjectListener(ProjectListener listener)
listener - ProjectListener instancepublic void setProjectID(int projectID)
projectID - project ID
public ProjectFile read(InputStream is)
throws MPXJException
is - InputStream instance
MPXJException
public List<ProjectFile> readAll(InputStream is)
throws MPXJException
is - input stream
MPXJException
public Map<Integer,String> listProjects(InputStream is)
throws MPXJException
is - input stream used to read XER file
MPXJException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||