@Test public void testFromInputstream() throws FileNotFoundException, JAXBException { ToolSpec kakadu = ToolSpec.fromInputStream( ToolSpec.class.getResourceAsStream("/toolspecs/kakadu.ptspec")); System.out.println("Tools "+kakadu.getTool()); ToolSpec jhove2 = ToolSpec.fromInputStream( ToolSpec.class.getResourceAsStream("/toolspecs/jhove2.ptspec")); System.out.println("Tools "+jhove2.getTool()); ToolSpec isobuster = ToolSpec.fromInputStream( ToolSpec.class.getResourceAsStream("/toolspecs/isobuster.ptspec")); System.out.println("Tools "+isobuster.getTool()); }
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)); }  String getTool(); void setTool(String tool); Version getVersion(); void setVersion(Version version); Install getInstall(); void setInstall(Install install); List<Var> getEnv(); void setEnv(List<Var> env); List<Var> getVar(); void setVar(List<Var> var); List<Convert> getConvert(); void setConvert(List<Convert> convert); List<Validate> getValidate(); void setValidate(List<Validate> validate); 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)); }  String getTool(); void setTool(String tool); Version getVersion(); void setVersion(Version version); Install getInstall(); void setInstall(Install install); List<Var> getEnv(); void setEnv(List<Var> env); List<Var> getVar(); void setVar(List<Var> var); List<Convert> getConvert(); void setConvert(List<Convert> convert); List<Validate> getValidate(); void setValidate(List<Validate> validate); static ToolSpec fromInputStream( InputStream input );  }