| java.lang.Object java.io.InputStream java.io.FilterInputStream org.apache.james.util.DotStuffingInputStream
DotStuffingInputStream | public class DotStuffingInputStream extends FilterInputStream (Code) | | Removes the dot-stuffing happening during the NNTP and SMTP message
transfer
|
Field Summary | |
protected int | last An array to hold the last two bytes read off the stream. |
Method Summary | |
public int | read() | public int | read(byte[] b, int off, int len) |
last | protected int last(Code) | | An array to hold the last two bytes read off the stream.
This allows the stream to detect '\r\n' sequences even
when they occur across read boundaries.
|
read | public int read() throws IOException(Code) | | Read through the stream, checking for '\r\n.'
the byte read from the stream |
read | public int read(byte[] b, int off, int len) throws IOException(Code) | | Read through the stream, checking for '\r\n.'
Parameters: b - the byte array into which the bytes will be read Parameters: off - the offset into the byte array where the bytes will be inserted Parameters: len - the maximum number of bytes to be read off the stream the number of bytes read |
|
|