org.apache.james.smtpserver
Class SMTPInputStream

java.lang.Object
  |
  +--java.io.InputStream
        |
        +--java.io.FilterInputStream
              |
              +--org.apache.james.smtpserver.SMTPInputStream

public class SMTPInputStream
extends java.io.FilterInputStream

Removes the dot-stuffing happing during the SMTP DATA transport

Author:
Serge Knystautas

Field Summary
protected  int[] last
           
 
Fields inherited from class java.io.FilterInputStream
in
 
Constructor Summary
SMTPInputStream(java.io.InputStream in)
           
 
Method Summary
 int read()
          Read through the stream, checking for '\r\n.'
 int read(byte[] b, int off, int len)
          Read through the stream, checking for '\r\n.'
 
Methods inherited from class java.io.FilterInputStream
available, close, mark, markSupported, read, reset, skip
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

last

protected int[] last
Constructor Detail

SMTPInputStream

public SMTPInputStream(java.io.InputStream in)
Method Detail

read

public int read()
         throws java.io.IOException
Read through the stream, checking for '\r\n.'
Overrides:
read in class java.io.FilterInputStream

read

public int read(byte[] b,
                int off,
                int len)
         throws java.io.IOException
Read through the stream, checking for '\r\n.'
Overrides:
read in class java.io.FilterInputStream


Copyright © 2001 Apache Jakarta Project. All Rights Reserved.