Class DotTerminatedInputStream

java.lang.Object
java.io.InputStream
org.subethamail.smtp.io.DotTerminatedInputStream
All Implemented Interfaces:
Closeable, AutoCloseable

public class DotTerminatedInputStream extends InputStream
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 Details

    • DotTerminatedInputStream

      public DotTerminatedInputStream(InputStream in)
      A constructor for this object that takes a stream to be wrapped and a terminating character sequence.
      Parameters:
      in - the InputStream to be wrapped
      Throws:
      IllegalArgumentException - if the terminator array is null or empty
  • Method Details