|
||||||||||
| 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.mpp.MPPReader
public final class MPPReader
This class creates a new ProjectFile instance by reading an MPP file.
| Constructor Summary | |
|---|---|
MPPReader()
|
|
| Method Summary | |
|---|---|
void |
addProjectListener(ProjectListener listener)
Add a listener to receive events as a project is being read. |
boolean |
getPreserveNoteFormatting()
This method retrieves the state of the preserve note formatting flag. |
String |
getReadPassword()
Internal only. |
boolean |
getReadPresentationData()
Retrieves a flag which indicates whether presentation data will be read from the MPP file. |
boolean |
getUseRawTimephasedData()
If this flag is true, raw timephased data will be retrieved from MS Project: no normalisation will take place. |
String |
getWritePassword()
Internal only. |
ProjectFile |
read(InputStream is)
Read a file where the contents of the project file are supplied via an input stream. |
ProjectFile |
read(org.apache.poi.poifs.filesystem.POIFSFileSystem fs)
Alternative entry point allowing an MPP file to be read from a user-supplied POI file stream. |
void |
setPreserveNoteFormatting(boolean preserveNoteFormatting)
This method sets a flag to indicate whether the RTF formatting associated with notes should be preserved or removed. |
void |
setReadPassword(String password)
Set the read password for this Project file. |
void |
setReadPresentationData(boolean readPresentationData)
Flag to allow time and memory to be saved by not reading presentation data from the MPP file. |
void |
setUseRawTimephasedData(boolean useRawTimephasedData)
If this flag is true, raw timephased data will be retrieved from MS Project: no normalisation will take place. |
void |
setWritePassword(String password)
Set the write password for this Project file. |
| 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 MPPReader()
| Method Detail |
|---|
public void addProjectListener(ProjectListener listener)
listener - ProjectListener instance
public ProjectFile read(InputStream is)
throws MPXJException
is - InputStream instance
MPXJException
public ProjectFile read(org.apache.poi.poifs.filesystem.POIFSFileSystem fs)
throws MPXJException
fs - POI file stream
MPXJExceptionpublic boolean getPreserveNoteFormatting()
public void setPreserveNoteFormatting(boolean preserveNoteFormatting)
preserveNoteFormatting - boolean flagpublic boolean getUseRawTimephasedData()
public void setUseRawTimephasedData(boolean useRawTimephasedData)
useRawTimephasedData - boolean flagpublic boolean getReadPresentationData()
public void setReadPresentationData(boolean readPresentationData)
readPresentationData - set to false to prevent presentation data being readpublic void setReadPassword(String password)
password - password textpublic String getReadPassword()
public void setWritePassword(String password)
password - password textpublic String getWritePassword()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||