public final class MSPDIReader extends AbstractProjectStreamReader
Constructor and Description |
---|
MSPDIReader() |
Modifier and Type | Method and Description |
---|---|
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)
Alternative way to set the file encoding.
|
void |
setEncoding(String encoding)
Sets the character encoding used when reading an MSPDI 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, readAll
addListenersToProject, addListenersToReader, addProjectListener, setProperties
public void setEncoding(String encoding)
encoding
- encoding namepublic void setCharset(Charset charset)
setCharset
in interface ProjectReader
setCharset
in class AbstractProjectReader
charset
- Charset used when reading the filepublic ProjectFile read(InputStream stream) throws MPXJException
ProjectReader
stream
- InputStream instanceMPXJException
public 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–2024 Packwood Software. All rights reserved.