net.sf.mpxj.planner
Class PlannerWriter

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

public final class PlannerWriter
extends AbstractProjectWriter

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


Constructor Summary
PlannerWriter()
           
 
Method Summary
 String getEncoding()
          Retrieve the encoding used to write teh file.
 void setEncoding(String encoding)
          Set the encoding used to write the file.
 void write(ProjectFile projectFile, 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

PlannerWriter

public PlannerWriter()
Method Detail

write

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

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

setEncoding

public void setEncoding(String encoding)
Set the encoding used to write the file. By default UTF-8 is used.

Parameters:
encoding - encoding name

getEncoding

public String getEncoding()
Retrieve the encoding used to write teh file. If this value is null, UTF-8 is used.

Returns:
encoding name


Copyright © 2012. All Rights Reserved.