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(List<ProjectFile> projects,
File file)
Create a file containing multiple projects using the supplied File instance.
|
void |
write(List<ProjectFile> projects,
OutputStream outputStream)
Write a file containing multiple projects to the supplied OutputStream instance.
|
void |
write(List<ProjectFile> projects,
String fileName)
Create a file containing multiple projects using the supplied file name.
|
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
ProjectWriterwrite in interface ProjectWriterprojectFile - project file instancefileName - file nameIOExceptionpublic void write(ProjectFile projectFile, File file) throws IOException
ProjectWriterwrite in interface ProjectWriterprojectFile - project file instancefile - File instanceIOExceptionpublic void write(ProjectFile projectFile, OutputStream outputStream) throws IOException
ProjectWriterwrite in interface ProjectWriterprojectFile - project file instanceoutputStream - OutputStream instanceIOExceptionpublic void write(List<ProjectFile> projects, String fileName) throws IOException
ProjectWriterwrite in interface ProjectWriterprojects - projects to writefileName - file nameIOExceptionpublic void write(List<ProjectFile> projects, File file) throws IOException
ProjectWriterwrite in interface ProjectWriterprojects - projects to writefile - File instanceIOExceptionpublic void write(List<ProjectFile> projects, OutputStream outputStream) throws IOException
ProjectWriterwrite in interface ProjectWriterprojects - projects to writeoutputStream - OutputStream instanceIOExceptionCopyright © 2000–2025 MPXJ. All rights reserved.