java.lang.Object
java.io.InputStream
com.aoapps.hodgepodge.util.CommentCaptureInputStream
- All Implemented Interfaces:
Closeable
,AutoCloseable
Captures comments from any lines that begin with # (preceding space, tab, and formfeed allowed).
This class is optimized for reading Properties
files and assumes
ISO-8859-1 encoding.
Java 1.9: Read properties files via Reader
in UTF-8 format
- Author:
- AO Industries, Inc.
-
Constructor Summary
-
Method Summary
Methods inherited from class java.io.InputStream
mark, markSupported, nullInputStream, read, read, readAllBytes, readNBytes, readNBytes, reset, skip, transferTo
-
Constructor Details
-
CommentCaptureInputStream
-
-
Method Details
-
read
- Specified by:
read
in classInputStream
- Throws:
IOException
-
available
- Overrides:
available
in classInputStream
- Throws:
IOException
-
close
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Overrides:
close
in classInputStream
- Throws:
IOException
-
getComments
-