|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--java.io.OutputStream
|
+--com.ibm.wbi.MegOutputStream
The OutputStream used by a Meg to write streamed request data. The
RequestInfo object is cloned and the next Meg is dispatched when the
first write() call is made. The RequestInfo must be modified
before then to have an affect on the rules engine.
| Constructor Summary | |
MegOutputStream()
Constructs a new MegOutputStream. |
|
| Method Summary | |
abstract void |
close()
Close the meg output stream. |
abstract void |
flush()
Flush the output stream. |
abstract ByteStore |
getByteStore()
Get internal ByteStore object buffering bytes between Megs. |
abstract long |
getTimeout()
Access the timeout value for read operations. |
abstract boolean |
isClosed()
Determine if the meg output stream is closed. |
abstract void |
setTimeout(long timeout)
Set a timeout value for write operations. |
abstract void |
write(byte[] buf)
Write a byte array to the stream. |
abstract void |
write(byte[] buf,
int offset,
int length)
Write a portion of the passed byte buffer array. |
abstract void |
write(ByteStore byteBuf)
Write the bytes from the ByteStore to the stream. |
abstract void |
write(java.io.InputStream in)
Write the data from the input stream. |
abstract void |
write(int iByte)
Write a byte to the stream. |
abstract void |
write(java.lang.String buf)
Deprecated. Use a MegWriter instead. |
abstract void |
write(java.lang.String buf,
int offset,
int length)
Deprecated. Use a MegWriter instead. |
abstract void |
write(java.lang.String buf,
int offset,
int length,
java.lang.String enc)
Deprecated. Use a MegWriter instead. |
abstract void |
write(java.lang.String buf,
java.lang.String enc)
Deprecated. Use a MegWriter instead. |
abstract void |
writeLine(byte[] buf)
Write the byte array to the stream followed by the end of line sequence. |
abstract void |
writeLine(byte[] buf,
int offset,
int length)
Write a portion of the passed byte buffer array followed by the end of line sequence. |
abstract void |
writeLine(ByteStore buf)
Deprecated. Use a MegWriter instead. |
abstract void |
writeLine(java.lang.String buf)
Deprecated. Use a MegWriter instead. |
abstract void |
writeLine(java.lang.String buf,
int offset,
int length)
Deprecated. Use a MegWriter instead. |
abstract void |
writeLine(java.lang.String buf,
int offset,
int length,
java.lang.String enc)
Deprecated. Use a MegWriter instead. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public MegOutputStream()
| Method Detail |
public abstract ByteStore getByteStore()
public abstract void write(byte[] buf,
int offset,
int length)
throws java.io.IOException
write in class java.io.OutputStreambuf - The byte buffer array.offset - Offset in the array to start writing from.length - The amount from offset to write.java.io.IOException - If unable to write to stream.
public abstract void write(int iByte)
throws java.io.IOException
write in class java.io.OutputStreamiByte - The byte to write.java.io.IOException - If unable to write to stream.
public abstract void write(byte[] buf)
throws java.io.IOException
write in class java.io.OutputStreambuf - The byte array to write.java.io.IOException - If unable to write to stream.
public abstract void write(java.lang.String buf)
throws java.io.IOException
MegWriter instead.
buf - The string to write using (8859_1 encoding).java.io.IOException - If unable to write to stream.
public abstract void write(java.lang.String buf,
java.lang.String enc)
throws java.io.IOException,
java.io.UnsupportedEncodingException
MegWriter instead.
buf - The string to write.enc - The encoding to use.java.io.IOException - If unable to write to stream.java.io.UnsupportedEncodingException - If the encoding is
not supported.
public abstract void write(ByteStore byteBuf)
throws java.io.IOException
byteBuf - The ByteStore.java.io.IOException - If unable to write to stream.
public abstract void write(java.lang.String buf,
int offset,
int length)
throws java.io.IOException
MegWriter instead.
buf - The string.offset - Offset in the string to start writing.length - The length from offset to write.java.io.IOException - If unable to write to stream.
public abstract void write(java.lang.String buf,
int offset,
int length,
java.lang.String enc)
throws java.io.IOException,
java.io.UnsupportedEncodingException
MegWriter instead.
buf - The string.offset - Offset in the string to start writing.length - The length from offset to write.enc - The encoding of the string.java.io.IOException - If unable to write to stream.java.io.UnsupportedEncodingException - If the encoding is
not supported.
public abstract void write(java.io.InputStream in)
throws java.io.IOException
in - The input stream.java.io.IOException - An error occurs.
public abstract void writeLine(byte[] buf)
throws java.io.IOException
buf - The byte array.java.io.IOException - If unable to write to stream.
public abstract void writeLine(byte[] buf,
int offset,
int length)
throws java.io.IOException
buf - The byte buffer array.offset - Offset in the array to start writing from.length - The amount from offset to write.java.io.IOException - If unable to write to stream.
public abstract void writeLine(java.lang.String buf)
throws java.io.IOException
MegWriter instead.
buf - The string to write using (8859_1 encoding).java.io.IOException - If unable to write to stream.
public abstract void writeLine(ByteStore buf)
throws java.io.IOException
MegWriter instead.
buf - The ByteStore.java.io.IOException - If unable to write to stream.
public abstract void writeLine(java.lang.String buf,
int offset,
int length)
throws java.io.IOException
MegWriter instead.
buf - The string.offset - Offset in the string to start writing.length - The length from offset to write.java.io.IOException - If unable to write to stream.
public abstract void writeLine(java.lang.String buf,
int offset,
int length,
java.lang.String enc)
throws java.io.IOException,
java.io.UnsupportedEncodingException
MegWriter instead.
buf - The string.offset - Offset in the string to start writing.length - The length from offset to write.enc - The encoding of the string.java.io.IOException - If unable to write to stream.java.io.UnsupportedEncodingException - If the encoding is
not supported.public abstract void setTimeout(long timeout)
timeout - The maximum time to block for write operations, in milliseconds.
A value of zero (the default) means to never timeout.public abstract long getTimeout()
public abstract void close()
throws java.io.IOException
close in class java.io.OutputStreamjava.io.IOException - If error occurred closing stream.public abstract boolean isClosed()
true if closed.
public abstract void flush()
throws java.io.IOException
flush in class java.io.OutputStream
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||