public final class MSPDIReader extends AbstractProjectStreamReader implements HasCharset
| Constructor and Description |
|---|
MSPDIReader() |
| Modifier and Type | Method and Description |
|---|---|
Charset |
getCharset()
Retrieve the Charset used to read the file.
|
boolean |
getIgnoreErrors()
Retrieve the flag which determines if datatype parse errors can be ignored.
|
boolean |
getMicrosoftProjectCompatibleInput()
Retrieves a flag indicating that this class will attempt to correct
and read XML which is not compliant with the XML Schema.
|
ProjectFile |
read(InputStream stream)
Read a single schedule from a file where the contents of the project file
are supplied via an input stream.
|
void |
setCharset(Charset charset)
Set the Charset used to read the file.
|
void |
setIgnoreErrors(boolean ignoreErrors)
Set a flag to determine if datatype parse errors can be ignored.
|
void |
setMicrosoftProjectCompatibleInput(boolean flag)
Sets a flag indicating that this class will attempt to correct
and read XML which is not compliant with the XML Schema.
|
read, read, readAll, readAll, readAlladdListenersToContext, addListenersToProject, addListenersToReader, addProjectListenerpublic void setCharset(Charset charset)
setCharset in interface HasCharsetcharset - Charset used when reading the filepublic Charset getCharset()
getCharset in interface HasCharsetpublic ProjectFile read(InputStream stream) throws MPXJException
ProjectReaderread in interface ProjectReaderstream - InputStream instanceMPXJExceptionpublic void setMicrosoftProjectCompatibleInput(boolean flag)
flag - input compatibility flagpublic boolean getMicrosoftProjectCompatibleInput()
public void setIgnoreErrors(boolean ignoreErrors)
ignoreErrors - pass true to ignore errorspublic boolean getIgnoreErrors()
Copyright © 2000–2025 MPXJ. All rights reserved.