@Test public void testEmptyStringAssemblyFrameworks() throws NugetFormatException { InputStream inputStream = NugetTestResourceUtil.getAsStream("nuspec/DockPanelSuite.nuspec.xml"); Nuspec nuspecFile = Nuspec.parse(inputStream); assertThat(nuspecFile).isNotNull(); }
public static Nuspec parse(InputStream inputStream) throws NugetFormatException { try { JAXBContext context = JAXBContext.newInstance(Nuspec.class); Unmarshaller unmarshaller = context.createUnmarshaller(); unmarshaller.setEventHandler(new NuspecXmlValidationEventHandler()); XMLReader reader = XMLReaderFactory.createXMLReader(); NugetNamespaceFilter inFilter = new NugetNamespaceFilter(); inFilter.setParent(reader); InputSource inputSource = new InputSource(inputStream); SAXSource saxSource = new SAXSource(inFilter, inputSource); Nuspec result = (Nuspec) unmarshaller.unmarshal(saxSource); return result; } catch (JAXBException | SAXException e) { throw new NugetFormatException("Can not read nuspec from XML stream", e); } }
Nuspec implements Serializable { public static Nuspec parse(InputStream inputStream) throws NugetFormatException { try { JAXBContext context = JAXBContext.newInstance(Nuspec.class); Unmarshaller unmarshaller = context.createUnmarshaller(); unmarshaller.setEventHandler(new NuspecXmlValidationEventHandler()); XMLReader reader = XMLReaderFactory.createXMLReader(); NugetNamespaceFilter inFilter = new NugetNamespaceFilter(); inFilter.setParent(reader); InputSource inputSource = new InputSource(inputStream); SAXSource saxSource = new SAXSource(inFilter, inputSource); Nuspec result = (Nuspec) unmarshaller.unmarshal(saxSource); return result; } catch (JAXBException | SAXException e) { throw new NugetFormatException("Can not read nuspec from XML stream", e); } } }
Nuspec implements Serializable { public static Nuspec parse(InputStream inputStream) throws NugetFormatException { try { JAXBContext context = JAXBContext.newInstance(Nuspec.class); Unmarshaller unmarshaller = context.createUnmarshaller(); unmarshaller.setEventHandler(new NuspecXmlValidationEventHandler()); XMLReader reader = XMLReaderFactory.createXMLReader(); NugetNamespaceFilter inFilter = new NugetNamespaceFilter(); inFilter.setParent(reader); InputSource inputSource = new InputSource(inputStream); SAXSource saxSource = new SAXSource(inFilter, inputSource); Nuspec result = (Nuspec) unmarshaller.unmarshal(saxSource); return result; } catch (JAXBException | SAXException e) { throw new NugetFormatException("Can not read nuspec from XML stream", e); } }  }
Nuspec implements Serializable { public static Nuspec parse(InputStream inputStream) throws NugetFormatException { try { JAXBContext context = JAXBContext.newInstance(Nuspec.class); Unmarshaller unmarshaller = context.createUnmarshaller(); unmarshaller.setEventHandler(new NuspecXmlValidationEventHandler()); XMLReader reader = XMLReaderFactory.createXMLReader(); NugetNamespaceFilter inFilter = new NugetNamespaceFilter(); inFilter.setParent(reader); InputSource inputSource = new InputSource(inputStream); SAXSource saxSource = new SAXSource(inFilter, inputSource); Nuspec result = (Nuspec) unmarshaller.unmarshal(saxSource); return result; } catch (JAXBException | SAXException e) { throw new NugetFormatException("Can not read nuspec from XML stream", e); } }  static Nuspec parse(InputStream inputStream); Metadata getMetadata(); List<NugetFile> getFiles(); String getId(); SemanticVersion getVersion(); String getTitle(); String getAuthors(); String getOwners(); boolean isRequireLicenseAcceptance(); String getDescription(); String getLicenseUrl(); String getProjectUrl(); String getProjectSourceUrl(); String getPackageSourceUrl(); String getDocsUrl(); String getMailingListUrl(); String getBugTrackerUrl(); String getIconUrl(); String getReleaseNotes(); void setReleaseNotes(String releaseNotes); String getSummary(); String getCopyright(); String getLanguage(); List<String> getTags(); List<Reference> getReferences(); List<Dependency> getDependencies(); List<DependenciesGroup> getDependenciesGroups(); List<FrameworkAssembly> getFrameworkAssembly(); void setFrameworkAssembly(List<FrameworkAssembly> frameworkAssembly); void saveTo(OutputStream outputStream); }
Nuspec implements Serializable { public static Nuspec parse(InputStream inputStream) throws NugetFormatException { try { JAXBContext context = JAXBContext.newInstance(Nuspec.class); Unmarshaller unmarshaller = context.createUnmarshaller(); unmarshaller.setEventHandler(new NuspecXmlValidationEventHandler()); XMLReader reader = XMLReaderFactory.createXMLReader(); NugetNamespaceFilter inFilter = new NugetNamespaceFilter(); inFilter.setParent(reader); InputSource inputSource = new InputSource(inputStream); SAXSource saxSource = new SAXSource(inFilter, inputSource); Nuspec result = (Nuspec) unmarshaller.unmarshal(saxSource); return result; } catch (JAXBException | SAXException e) { throw new NugetFormatException("Can not read nuspec from XML stream", e); } }  static Nuspec parse(InputStream inputStream); Metadata getMetadata(); List<NugetFile> getFiles(); String getId(); SemanticVersion getVersion(); String getTitle(); String getAuthors(); String getOwners(); boolean isRequireLicenseAcceptance(); String getDescription(); String getLicenseUrl(); String getProjectUrl(); String getProjectSourceUrl(); String getPackageSourceUrl(); String getDocsUrl(); String getMailingListUrl(); String getBugTrackerUrl(); String getIconUrl(); String getReleaseNotes(); void setReleaseNotes(String releaseNotes); String getSummary(); String getCopyright(); String getLanguage(); List<String> getTags(); List<Reference> getReferences(); List<Dependency> getDependencies(); List<DependenciesGroup> getDependenciesGroups(); List<FrameworkAssembly> getFrameworkAssembly(); void setFrameworkAssembly(List<FrameworkAssembly> frameworkAssembly); void saveTo(OutputStream outputStream); static final String NUSPEC_XML_NAMESPACE_2012; static final String NUSPEC_XML_NAMESPACE_2013; static final String NUSPEC_XML_NAMESPACE_2016; static final String NUSPEC_XML_NAMESPACE_2013_01; static final String NUSPEC_XML_NAMESPACE_2011; static final String NUSPEC_XML_NAMESPACE_2010; static final String NUSPEC_XML_NAMESPACE_2017; static final String NUSPEC_XML_NAMESPACE_EMPTY; static final String DEFAULT_FILE_EXTENSION; }