Class CveApiJson20CveItemSource
- java.lang.Object
-
- org.owasp.dependencycheck.data.update.nvd.api.CveApiJson20CveItemSource
-
- All Implemented Interfaces:
java.lang.AutoCloseable,CveItemSource<io.github.jeremylong.openvulnerability.client.nvd.DefCveItem>
public class CveApiJson20CveItemSource extends java.lang.Object implements CveItemSource<io.github.jeremylong.openvulnerability.client.nvd.DefCveItem>
-
-
Constructor Summary
Constructors Constructor Description CveApiJson20CveItemSource(java.io.InputStream inputStream)Constructs a CVE Item Source record.
-
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
-
CveApiJson20CveItemSource
public CveApiJson20CveItemSource(java.io.InputStream inputStream) throws java.io.IOExceptionConstructs a CVE Item Source record.- Parameters:
inputStream- the input source to read from- Throws:
java.io.IOException- thrown if there is an issue 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
-
-