use of com.blackducksoftware.integration.hub.bdio.BdioReader in project hub-docker-inspector by blackducksoftware.
the class RestClientInspector method getSimpleBdioDocument.
private SimpleBdioDocument getSimpleBdioDocument(final String bdioString) throws IOException {
final InputStream bdioInputStream = new ByteArrayInputStream(bdioString.getBytes());
SimpleBdioDocument simpleBdioDocument = null;
try (BdioReader bdioReader = new BdioReader(new Gson(), bdioInputStream)) {
simpleBdioDocument = bdioReader.readSimpleBdioDocument();
}
return simpleBdioDocument;
}
Aggregations