Class JsonArrayCveItemSource
- java.lang.Object
-
- org.owasp.dependencycheck.data.update.nvd.api.JsonArrayCveItemSource
-
- All Implemented Interfaces:
java.lang.AutoCloseable,CveItemSource<io.github.jeremylong.openvulnerability.client.nvd.DefCveItem>
public class JsonArrayCveItemSource extends java.lang.Object implements CveItemSource<io.github.jeremylong.openvulnerability.client.nvd.DefCveItem>
-
-
Constructor Summary
Constructors Constructor Description JsonArrayCveItemSource(java.io.InputStream inputStream)Constructs a new Item Source.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()booleanhasNext()Returns whether there is another item.io.github.jeremylong.openvulnerability.client.nvd.DefCveItemnext()Returns the next item.
-
-
-
Constructor Detail
-
JsonArrayCveItemSource
public JsonArrayCveItemSource(java.io.InputStream inputStream) throws java.io.IOExceptionConstructs a new Item Source.- Parameters:
inputStream- the input stream to read from- Throws:
java.io.IOException- thrown if there is a problem reading from the input stream
-
-
Method Detail
-
close
public void close() throws java.lang.Exception- Specified by:
closein interfacejava.lang.AutoCloseable- Throws:
java.lang.Exception
-
hasNext
public boolean hasNext()
Description copied from interface:CveItemSourceReturns whether there is another item.- Specified by:
hasNextin interfaceCveItemSource<io.github.jeremylong.openvulnerability.client.nvd.DefCveItem>- Returns:
truefalse.
-
next
public io.github.jeremylong.openvulnerability.client.nvd.DefCveItem next() throws java.io.IOExceptionDescription copied from interface:CveItemSourceReturns the next item.- Specified by:
nextin interfaceCveItemSource<io.github.jeremylong.openvulnerability.client.nvd.DefCveItem>- Returns:
- the next item
- Throws:
java.io.IOException- thrown if there is an error reading from the source
-
-