public final class UniversalProjectWriter extends Object implements ProjectWriter
new UniversalProjectWriter(ProjectWriterFileFormat.MPX).write(projectFile, fileName)
Constructor and Description |
---|
UniversalProjectWriter(FileFormat format)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
write(ProjectFile projectFile,
File file)
Create a project file using the supplied File instance.
|
void |
write(ProjectFile projectFile,
OutputStream outputStream)
Write a project file's content to the supplied OutputStream instance.
|
void |
write(ProjectFile projectFile,
String fileName)
Create a project file using the supplied file name.
|
public UniversalProjectWriter(FileFormat format)
format
- desired file formatpublic void write(ProjectFile projectFile, String fileName) throws IOException
ProjectWriter
write
in interface ProjectWriter
projectFile
- project file instancefileName
- file nameIOException
public void write(ProjectFile projectFile, File file) throws IOException
ProjectWriter
write
in interface ProjectWriter
projectFile
- project file instancefile
- File instanceIOException
public void write(ProjectFile projectFile, OutputStream outputStream) throws IOException
ProjectWriter
write
in interface ProjectWriter
projectFile
- project file instanceoutputStream
- OutputStream instanceIOException
Copyright © 2000–2024 Packwood Software. All rights reserved.