public class RDFXMLWriter extends Object implements WorkflowBundleWriter
Modifier and Type | Field and Description |
---|---|
protected static String |
PROFILE |
protected static String |
RDF |
protected static String |
WORKFLOW |
protected static String |
WORKFLOW_BUNDLE_RDF |
Constructor and Description |
---|
RDFXMLWriter() |
Modifier and Type | Method and Description |
---|---|
Set<String> |
getMediaTypes()
Returns the media types that this writer can handle.
|
static URITools |
getUriTools() |
protected UCFPackage |
makeUCFPackage(WorkflowBundle wfBundle) |
static void |
setUriTools(URITools uriTools) |
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. |
protected static final String RDF
protected static final String WORKFLOW
protected static final String PROFILE
protected static final String WORKFLOW_BUNDLE_RDF
public static final URITools getUriTools()
public static final void setUriTools(URITools uriTools)
public Set<String> getMediaTypes()
WorkflowBundleWriter
getMediaTypes
in interface WorkflowBundleWriter
public void writeBundle(WorkflowBundle wfBundle, File destination, String mediaType) throws WriterException, IOException
WorkflowBundleWriter
WorkflowBundle
to a file with specified media type.writeBundle
in interface WorkflowBundleWriter
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 fileprotected UCFPackage makeUCFPackage(WorkflowBundle wfBundle) throws IOException, WriterException
IOException
WriterException
public void writeBundle(WorkflowBundle wfBundle, OutputStream output, String mediaType) throws WriterException, IOException
WorkflowBundleWriter
WorkflowBundle
to a stream with specified media type.writeBundle
in interface WorkflowBundleWriter
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 © 2013 myGrid. All rights reserved.