java.lang.Object
java.io.InputStream
org.shredzone.acme4j.connector.TrimmingInputStream
- All Implemented Interfaces:
Closeable,AutoCloseable
Normalizes line separators in an InputStream. Converts all line separators to '\n'.
Multiple line separators are compressed to a single line separator. Leading line
separators are removed. Trailing line separators are compressed to a single separator.
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.io.InputStream
mark, markSupported, nullInputStream, read, read, readAllBytes, readNBytes, readNBytes, reset, skip, skipNBytes, transferTo
-
Constructor Details
-
TrimmingInputStream
Creates a newTrimmingInputStream.- Parameters:
in-InputStreamto read from. Will be closed when this stream is closed.
-
-
Method Details
-
read
- Specified by:
readin classInputStream- Throws:
IOException
-
available
- Overrides:
availablein classInputStream- Throws:
IOException
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Overrides:
closein classInputStream- Throws:
IOException
-