|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.caucho.vfs.StreamImpl
com.caucho.web.webmail.MboxStream
public class MboxStream
| Field Summary |
|---|
| Fields inherited from class com.caucho.vfs.StreamImpl |
|---|
_nullPath, _path |
| Constructor Summary | |
|---|---|
MboxStream()
|
|
MboxStream(ReadStream is)
|
|
| Method Summary | |
|---|---|
boolean |
canRead()
Returns true if this is a read stream. |
java.lang.Object |
getAttribute(java.lang.String key)
Returns a read attribute from the multipart mime. |
java.util.Iterator |
getAttributeNames()
Returns the headers from the mime. |
java.lang.String |
getEncoding()
Returns the default encoding. |
void |
init(ReadStream is)
Initialize the multipart stream with a given boundary. |
ReadStream |
openRead()
Opens the next message of the mbox stream for reading. |
int |
read(byte[] buffer,
int offset,
int length)
Reads from the multipart mime buffer. |
void |
setEncoding(java.lang.String encoding)
Sets the default encoding. |
| Methods inherited from class com.caucho.vfs.StreamImpl |
|---|
canWrite, clearWrite, close, closeWrite, flush, flushBuffer, flushToDisk, getAvailable, getFlushOnNewline, getNewline, getPath, getReadBuffer, getReadPosition, hasSkip, readNonBlock, readTimeout, removeAttribute, seekEnd, seekStart, setAttribute, setPath, setWriteEncoding, skip, write, write |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MboxStream()
throws java.io.IOException
java.io.IOException
public MboxStream(ReadStream is)
throws java.io.IOException
java.io.IOException| Method Detail |
|---|
public java.lang.String getEncoding()
public void setEncoding(java.lang.String encoding)
public void init(ReadStream is)
throws java.io.IOException
init will have "--" prefixed.
is - the underlying streamheaderBoundary - the multipart/mime boundary.
java.io.IOException
public ReadStream openRead()
throws java.io.IOException
java.io.IOExceptionpublic java.lang.Object getAttribute(java.lang.String key)
getAttribute in class StreamImplkey - the attribute name.
public java.util.Iterator getAttributeNames()
getAttributeNames in class StreamImplpublic boolean canRead()
StreamImpl
canRead in class StreamImpl
public int read(byte[] buffer,
int offset,
int length)
throws java.io.IOException
read in class StreamImplbuffer - byte array receiving the data.offset - starting offset into the array.length - number of bytes to read.
java.io.IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||