net.sf.mpxj.mpx
Class MPXWriter

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

public final class MPXWriter
extends AbstractProjectWriter

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


Constructor Summary
MPXWriter()
           
 
Method Summary
 Locale getLocale()
          This method returns the locale used by this MPX file.
 Locale[] getSupportedLocales()
          Retrieves an array of locales supported by this class.
 boolean getUseLocaleDefaults()
          Retrieves a flag indicating if the default settings for the locale should override any project settings.
 void setLocale(Locale locale)
          This method sets the locale to be used by this MPX file.
 void setUseLocaleDefaults(boolean useLocaleDefaults)
          Sets a flag indicating if the default settings for the locale should override any project settings.
 void write(ProjectFile projectFile, OutputStream out)
          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

MPXWriter

public MPXWriter()
Method Detail

write

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

Parameters:
projectFile - project file instance
out - OutputStream instance
Throws:
IOException

getLocale

public Locale getLocale()
This method returns the locale used by this MPX file.

Returns:
current locale

setLocale

public void setLocale(Locale locale)
This method sets the locale to be used by this MPX file.

Parameters:
locale - locale to be used

getUseLocaleDefaults

public boolean getUseLocaleDefaults()
Retrieves a flag indicating if the default settings for the locale should override any project settings.

Returns:
boolean flag.

setUseLocaleDefaults

public void setUseLocaleDefaults(boolean useLocaleDefaults)
Sets a flag indicating if the default settings for the locale should override any project settings.

Parameters:
useLocaleDefaults - boolean flag

getSupportedLocales

public Locale[] getSupportedLocales()
Retrieves an array of locales supported by this class.

Returns:
array of supported locales


Copyright © 2012. All Rights Reserved.