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, readAll
addListenersToProject, addListenersToReader, addProjectListener
public void setCharset(Charset charset)
setCharset
in interface HasCharset
charset
- Charset used when reading the filepublic Charset getCharset()
getCharset
in interface HasCharset
public ProjectFile read(InputStream stream) throws MPXJException
ProjectReader
read
in interface 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.