|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.io.OutputStream
org.idoox.transport.OutputMessage
org.idoox.transport.RawOutputMessage
Raw output message. This class is useful for transport implementation which needs wrap another output stream.
Field Summary | |
protected boolean |
isInited
If this stream is initialized. |
Fields inherited from interface org.idoox.transport.Message |
CT_APPLICATION_DIME, CT_MULTIPART_ALTERNATIVE, CT_MULTIPART_MIXED, CT_MULTIPART_RELATED, CT_MUTLIPART_FORMDATA, SC_ACCEPTED, SC_BAD_MESSAGE, SC_CREATED, SC_FORBIDDEN, SC_INTERNAL_ERROR, SC_METHOD_NOT_ALLOWED, SC_NO_CONTENT, SC_NOT_FOUND, SC_OK, SC_PROTOCOL_NOT_SUPPORTED, SC_REQUEST_TIMEOUT, SC_SERVICE_UNAVAILABLE, SC_SOAP_ACTION_REQUIRED, SC_UNAUTHORIZED, SC_UNSUPPORTED_MEDIA_TYPE |
Constructor Summary | |
RawOutputMessage(java.io.OutputStream stream)
Creates new raw output message. |
Method Summary | |
void |
close()
Closes the wrapped stream. |
void |
flush()
Flushes the wrapped stream. |
java.io.OutputStream |
getWrappedStream()
Gets a wrapped output stream. |
protected void |
initStream()
This method is called before the first operation with the stream is called. |
void |
setWrappedStream(java.io.OutputStream stream)
Sets new wrapped output stream. |
void |
write(byte[] b)
Writes to the wrapped stream. |
void |
write(byte[] b,
int off,
int len)
Writes to the wrapped stream. |
void |
write(int b)
Writes to the wrapped stream. |
Methods inherited from class org.idoox.transport.OutputMessage |
nextPart, setContentType, setCorrupted, setDateHeader, setIntHeader, setMultipartType, setStatusCode, setStringHeader |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected boolean isInited
Constructor Detail |
public RawOutputMessage(java.io.OutputStream stream)
stream
- the stream which is wrappedMethod Detail |
public void setWrappedStream(java.io.OutputStream stream)
stream
- wrapped streampublic java.io.OutputStream getWrappedStream()
public void write(int b) throws java.io.IOException
b
- the byte
java.io.IOException
- if an I/O error occurspublic void write(byte[] b) throws java.io.IOException
b
- the data
java.io.IOException
- if an I/O error occurspublic void write(byte[] b, int off, int len) throws java.io.IOException
b
- the dataoff
- the start offset in the datalen
- the number of bytes to write
java.io.IOException
- if an I/O error occurspublic void flush() throws java.io.IOException
java.io.IOException
- if an I/O error occurspublic void close() throws java.io.IOException
java.io.IOException
- if an I/O error occursprotected void initStream() throws java.io.IOException
java.io.IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |