public final class MPPReader extends AbstractProjectReader
| Constructor and Description |
|---|
MPPReader() |
| Modifier and Type | Method and Description |
|---|---|
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.
|
read, readpublic void addProjectListener(ProjectListener listener)
listener - ProjectListener instancepublic ProjectFile read(InputStream is) throws MPXJException
is - InputStream instanceMPXJExceptionpublic ProjectFile read(org.apache.poi.poifs.filesystem.POIFSFileSystem fs) throws MPXJException
fs - POI file streamMPXJExceptionpublic 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()
Copyright © 2013. All Rights Reserved.