com.jscape.inet.pop
Class PopMessageReader
java.lang.Object
java.io.Reader
java.io.InputStreamReader
com.jscape.inet.pop.PopMessageReader
- public class PopMessageReader
- extends java.io.InputStreamReader
Reads email message from POP server. A new instance of this reader is created for each message retrieved using the Pop.getMessageReader method.
- See Also:
Pop.getMessageReader(int)
|
Constructor Summary |
PopMessageReader(java.io.InputStream input)
Constructs a new PopMessageReader instance. |
|
Method Summary |
int |
read()
Reads a single character from stream skipping leading periods. |
int |
read(char[] cbuf,
int offset,
int length)
Reads characters into a portion of an array. |
| Methods inherited from class java.io.InputStreamReader |
close, getEncoding, ready |
| Methods inherited from class java.io.Reader |
mark, markSupported, read, reset, skip |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PopMessageReader
public PopMessageReader(java.io.InputStream input)
- Constructs a new PopMessageReader instance.
- Parameters:
input - the input stream to read from
read
public int read(char[] cbuf,
int offset,
int length)
throws java.io.IOException
- Reads characters into a portion of an array.
- Parameters:
cbuf - the destination bufferoffset - the offset at which to start storing characterslength - the maximum number of characters to read
- Returns:
- the number of characters read, or -1 if the end of the stream has been reached
- Throws:
java.io.IOException - if an I/O related error occurs
read
public int read()
throws java.io.IOException
- Reads a single character from stream skipping leading periods.
- Returns:
- the character read or -1 if end of stream has been reached.
- Throws:
java.io.IOException - if an I/O related error occurs
Copyright JSCAPE 1999-2008 All Rights Reserved