net.sf.mpxj.planner
Class PlannerWriter
java.lang.Object
net.sf.mpxj.writer.AbstractProjectWriter
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.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PlannerWriter
public PlannerWriter()
write
public void write(ProjectFile projectFile,
OutputStream stream)
throws IOException
- Create a project file using the supplied OutputStream instance.
- Parameters:
projectFile - project file instancestream - 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.