public interface WorkflowBundleWriter
WorkflowBundle
s.
Implementations specify workflow bundle formats (media types) that they can
write.Modifier and Type | Method and Description |
---|---|
Set<String> |
getMediaTypes()
Returns the media types that this writer can handle.
|
void |
writeBundle(WorkflowBundle wfBundle,
File destination,
String mediaType)
Writes a
WorkflowBundle to a file with specified media type. |
void |
writeBundle(WorkflowBundle wfBundle,
OutputStream output,
String mediaType)
Writes a
WorkflowBundle to a stream with specified media
type. |
Set<String> getMediaTypes()
void writeBundle(WorkflowBundle wfBundle, File destination, String mediaType) throws WriterException, IOException
WorkflowBundle
to a file with specified media type.wfBundle
- the workflow bundle to writedestination
- the file to write the workflow bundle tomediaType
- the media type to write workflow bundle inWriterException
- if there is an error writing the workflow bundleIOException
- if there is an error writing the filevoid writeBundle(WorkflowBundle wfBundle, OutputStream output, String mediaType) throws WriterException, IOException
WorkflowBundle
to a stream with specified media
type.wfBundle
- the workflow bundle to writeoutput
- the stream to write the workflow bundle tomediaType
- the media type to write workflow bundle inWriterException
- if there is an error writing the workflow bundleIOException
- if there is an error writing to the streamCopyright © 2015–2016 The Apache Software Foundation. All rights reserved.