Package org.subethamail.smtp.io
Class DotTerminatedInputStream
java.lang.Object
java.io.InputStream
org.subethamail.smtp.io.DotTerminatedInputStream
- All Implemented Interfaces:
Closeable,AutoCloseable
An InputStream class that terminates the stream when it encounters a US-ASCII
encoded dot CR LF byte sequence immediately following a CR LF line end.
-
Constructor Summary
ConstructorsConstructorDescriptionA constructor for this object that takes a stream to be wrapped and a terminating character sequence. -
Method Summary
Methods inherited from class java.io.InputStream
available, close, mark, markSupported, nullInputStream, read, read, readAllBytes, readNBytes, readNBytes, reset, skip, skipNBytes, transferTo
-
Constructor Details
-
DotTerminatedInputStream
A constructor for this object that takes a stream to be wrapped and a terminating character sequence.- Parameters:
in- theInputStreamto be wrapped- Throws:
IllegalArgumentException- if the terminator array is null or empty
-
-
Method Details
-
read
- Specified by:
readin classInputStream- Throws:
IOException
-