MPXJ: Microsoft Project Exchange

net.sf.mpxj.mspdi
Class MSPDIWriter

java.lang.Object
  extended by net.sf.mpxj.writer.AbstractProjectWriter
      extended by net.sf.mpxj.mspdi.MSPDIWriter
All Implemented Interfaces:
ProjectWriter

public final class MSPDIWriter
extends AbstractProjectWriter

This class creates a new MSPDI file from the contents of an ProjectFile instance.


Constructor Summary
MSPDIWriter()
           
 
Method Summary
(package private)  ProjectFile getProjectFile()
          Package-private accessor method used to retrieve the project file currently being processed by this writer.
 SaveVersion getSaveVersion()
          Retrieve the save version current set.
 boolean getSplitTimephasedAsDays()
          Retrieves a flag to control whether timephased assignment data is split into days.
 boolean getWriteTimephasedData()
          Retrieves the state of the flag which controls whether timephased resource assignment data is written to the file.
 void setSaveVersion(SaveVersion version)
          Set the save version to use when generating an MSPDI file.
 void setSplitTimephasedAsDays(boolean flag)
          Sets a flag to control whether timephased assignment data is split into days.
 void setWriteTimephasedData(boolean value)
          Sets a flag to control whether timephased resource assignment data is written to the file.
 void write(ProjectFile projectFile, java.io.OutputStream stream)
          Create a project file using the supplied OutputStream instance.
 
Methods inherited from class net.sf.mpxj.writer.AbstractProjectWriter
write, write
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MSPDIWriter

public MSPDIWriter()
Method Detail

setSplitTimephasedAsDays

public void setSplitTimephasedAsDays(boolean flag)
Sets a flag to control whether timephased assignment data is split into days. The default is true.

Parameters:
flag - boolean flag

getSplitTimephasedAsDays

public boolean getSplitTimephasedAsDays()
Retrieves a flag to control whether timephased assignment data is split into days. The default is true.

Returns:
boolean true

setWriteTimephasedData

public void setWriteTimephasedData(boolean value)
Sets a flag to control whether timephased resource assignment data is written to the file. The default is false.

Parameters:
value - boolean flag

getWriteTimephasedData

public boolean getWriteTimephasedData()
Retrieves the state of the flag which controls whether timephased resource assignment data is written to the file. The default is false.

Returns:
boolean flag

setSaveVersion

public void setSaveVersion(SaveVersion version)
Set the save version to use when generating an MSPDI file.

Parameters:
version - save version

getSaveVersion

public SaveVersion getSaveVersion()
Retrieve the save version current set.

Returns:
current save version

write

public void write(ProjectFile projectFile,
                  java.io.OutputStream stream)
           throws java.io.IOException
Create a project file using the supplied OutputStream instance.

Parameters:
projectFile - project file instance
stream - OutputStream instance
Throws:
java.io.IOException

getProjectFile

ProjectFile getProjectFile()
Package-private accessor method used to retrieve the project file currently being processed by this writer.

Returns:
project file instance


Copyright © 2000-2014 Packwood Software. All Rights Reserved.