@Test public void testFromInputstream() throws FileNotFoundException, JAXBException { ToolSpec kakadu = ToolSpec.fromInputStream( ToolSpec.class.getResourceAsStream(KAKADU_SPEC)); System.out.println("Tool name: "+kakadu.getTool().getName()); }
public static ToolSpec fromInputStream( InputStream input ) throws FileNotFoundException, JAXBException { Unmarshaller u = jc.createUnmarshaller(); return (ToolSpec) u.unmarshal(new StreamSource(input)); }
ToolSpec { public static ToolSpec fromInputStream( InputStream input ) throws FileNotFoundException, JAXBException { Unmarshaller u = jc.createUnmarshaller(); return (ToolSpec) u.unmarshal(new StreamSource(input)); } }
ToolSpec { public static ToolSpec fromInputStream( InputStream input ) throws FileNotFoundException, JAXBException { Unmarshaller u = jc.createUnmarshaller(); return (ToolSpec) u.unmarshal(new StreamSource(input)); }  }
ToolSpec { public static ToolSpec fromInputStream( InputStream input ) throws FileNotFoundException, JAXBException { Unmarshaller u = jc.createUnmarshaller(); return (ToolSpec) u.unmarshal(new StreamSource(input)); }  void setId(String id); String getId(); Version getVersion(); void setVersion(Version version); Tool getTool(); void setTool(Tool tool); List<Var> getEnv(); void setEnv(List<Var> env); List<Template> getTemplate(); void setTemplate(List<Template> template); Inputs getInputs(); void setInputs(Inputs parameters); List<Action> getActions(); void setActions(List<Action> actions); static ToolSpec fromInputStream( InputStream input ); }
ToolSpec { public static ToolSpec fromInputStream( InputStream input ) throws FileNotFoundException, JAXBException { Unmarshaller u = jc.createUnmarshaller(); return (ToolSpec) u.unmarshal(new StreamSource(input)); }  void setId(String id); String getId(); Version getVersion(); void setVersion(Version version); Tool getTool(); void setTool(Tool tool); List<Var> getEnv(); void setEnv(List<Var> env); List<Template> getTemplate(); void setTemplate(List<Template> template); Inputs getInputs(); void setInputs(Inputs parameters); List<Action> getActions(); void setActions(List<Action> actions); static ToolSpec fromInputStream( InputStream input ); static final String NS; }