Package org.spdx.tag
Class NoCommentInputStream
java.lang.Object
java.io.InputStream
org.spdx.tag.NoCommentInputStream
- All Implemented Interfaces:
Closeable
,AutoCloseable
Input stream which filters out any SPDX tag/value comments
Any new line which begins with a # is skipped until the end of line except
if it is within a
<text> </text>
wrapper.- Author:
- Gary O'Neall
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.io.InputStream
available, mark, markSupported, nullInputStream, read, read, readAllBytes, readNBytes, readNBytes, reset, skip, skipNBytes, transferTo
-
Constructor Details
-
NoCommentInputStream
- Parameters:
in
- Input stream containing the commented data- Throws:
IOException
-
-
Method Details
-
read
- Specified by:
read
in classInputStream
- Throws:
IOException
-
close
public void close()- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Overrides:
close
in classInputStream
-
getCurrentLineNo
public int getCurrentLineNo()line number in the current reader -
readLine
- Throws:
IOException
-