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
-
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
-InputStream
to read from. Will be closed when this stream is closed.
-
-
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
-