net.sf.mpxj.mspdi
Class MSPDIReader

java.lang.Object
  extended by net.sf.mpxj.reader.AbstractProjectReader
      extended by net.sf.mpxj.mspdi.MSPDIReader
All Implemented Interfaces:
ProjectReader

public final class MSPDIReader
extends AbstractProjectReader

This class creates a new ProjectFile instance by reading an MSPDI file.


Constructor Summary
MSPDIReader()
           
 
Method Summary
 void addProjectListener(ProjectListener listener)
          Add a listener to receive events as a project is being read.
 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 file where the contents of the project file are supplied via an input stream.
 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.
 
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

MSPDIReader

public MSPDIReader()
Method Detail

addProjectListener

public void addProjectListener(ProjectListener listener)
Add a listener to receive events as a project is being read.

Parameters:
listener - ProjectListener instance

read

public ProjectFile read(InputStream stream)
                 throws MPXJException
Read a file where the contents of the project file are supplied via an input stream.

Parameters:
stream - InputStream instance
Returns:
ProjectFile instance
Throws:
MPXJException

setMicrosoftProjectCompatibleInput

public 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. This behaviour matches that of Microsoft Project when reading the same data.

Parameters:
flag - input compatibility flag

getMicrosoftProjectCompatibleInput

public boolean getMicrosoftProjectCompatibleInput()
Retrieves a flag indicating that this class will attempt to correct and read XML which is not compliant with the XML Schema. This behaviour matches that of Microsoft Project when reading the same data.

Returns:
Boolean flag


Copyright © 2012. All Rights Reserved.