RDFXMLReader implements WorkflowBundleReader { @Override public WorkflowBundle readBundle(File bundleFile, String mediaType) throws ReaderException, IOException { UCFPackage ucfPackage = new UCFPackage(bundleFile); WorkflowBundleParser deserializer = new WorkflowBundleParser(); return deserializer.readWorkflowBundle(ucfPackage, bundleFile.toURI()); }  @Override Set<String> getMediaTypes(); @Override WorkflowBundle readBundle(File bundleFile, String mediaType); @Override WorkflowBundle readBundle(InputStream inputStream, String mediaType); @Override String guessMediaTypeForSignature(byte[] firstBytes); static final String APPLICATION_VND_TAVERNA_SCUFL2_WORKFLOW_BUNDLE; static final String APPLICATION_RDF_XML; }
@Test public void readStreamNoMediaType() throws ReaderException, IOException { workflowBundle = bundleIO.readBundle(getClass().getResourceAsStream(EXAMPLE_SCUFL2), null); assertNotNull(workflowBundle); }