|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--java.io.InputStream
|
+--com.ibm.wbi.MegInputStream
The InputStream used by a Meg to read streamed
request data.
| Constructor Summary | |
MegInputStream()
Construct a new MegInputStream. |
|
| Method Summary | |
abstract int |
available()
Determine amount of bytes currently available. |
abstract void |
close()
Close the input stream. |
abstract java.lang.String |
getRequestString()
An implementation specific string description of the request stream read from the input stream. |
abstract long |
getTimeout()
Access the timeout value for read operations. |
abstract boolean |
isClosed()
Determines if the input stream is closed. |
abstract int |
peek()
Peek a byte from the input stream. |
abstract int |
peek(byte[] buf)
Peek bytes from the input stream filling the specified byte array. |
abstract int |
peek(byte[] buf,
int offset,
int length)
Peek multiple bytes from the input stream. |
abstract int |
peek(ByteStore buf,
int length)
Peek bytes from the input stream filling the specified byte buffer. |
void |
preserveMark()
If a mark (see java.io.InputStream.mark()) is in effect on this stream, throw an IOException rather than undoing the mark if the "readlimit" is about to be passed. |
abstract int |
read()
Read a byte from the input stream. |
abstract int |
read(byte[] buf)
Read bytes from the input stream filling the specified byte array. |
abstract int |
read(byte[] buf,
int offset,
int length)
Read multiple bytes from the input stream. |
abstract int |
read(ByteStore buf,
byte[] temp)
Read bytes from the input stream filling the specified byte buffer. |
abstract int |
read(ByteStore buf,
int length)
Read bytes from the input stream filling the specified byte buffer. |
abstract void |
setTimeout(long timeout)
Set a timeout value for read operations. |
| Methods inherited from class java.io.InputStream |
mark, markSupported, reset, skip |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public MegInputStream()
MegInputStream.| Method Detail |
public abstract int read()
throws java.io.IOException
int in the range 0 to 255. If no byte is available because the
end of the stream has been reached, the value -1 is returned.read in class java.io.InputStreamjava.io.IOException - If stream closed.MarkPreservedException - If read would invalidate preserved
mark
public abstract int read(byte[] buf,
int offset,
int length)
throws java.io.IOException
read in class java.io.InputStreambuf - The byte buffer to populate.offset - The offset in buf to starting writing to.length - The amount of bytes to write.java.io.IOException - If stream closed.MarkPreservedException - If read would invalidate preserved
mark
public abstract int read(byte[] buf)
throws java.io.IOException
read in class java.io.InputStreambuf - The byte buffer to populate.java.io.IOException - If stream closed or mark would not
be preserved.MarkPreservedException - If read would invalidate preserved
mark
public abstract int read(ByteStore buf,
int length)
throws java.io.IOException
buf - The byte store to populate.length - The amount to read.java.io.IOException - If stream closed.MarkPreservedException - If read would invalidate preserved
mark
public abstract int read(ByteStore buf,
byte[] temp)
throws java.io.IOException
buf - The byte store to populate.temp - Temporary buffer of size to read.java.io.IOException - If stream closed.MarkPreservedException - If read would invalidate preserved
mark
public abstract int peek()
throws java.io.IOException
java.io.IOException - If stream closed.
public abstract int peek(byte[] buf,
int offset,
int length)
throws java.io.IOException
buf - The byte buffer to populate.offset - The offset in buf to starting writing to.length - The amount of bytes to write.java.io.IOException - If stream closed.
public abstract int peek(byte[] buf)
throws java.io.IOException
buf - The byte buffer to populate.java.io.IOException - If stream closed.
public abstract int peek(ByteStore buf,
int length)
throws java.io.IOException
buf - The byte store to populate.length - The amount to read.java.io.IOException - If stream closed.public abstract void setTimeout(long timeout)
timeout - The maximum time to block for read operations, in milliseconds.
A value of zero (the default) means to never timeout.public abstract long getTimeout()
public abstract void close()
close in class java.io.InputStreampublic abstract boolean isClosed()
true if stream closed; else false.
public abstract int available()
throws java.io.IOException
available in class java.io.InputStreamjava.io.IOException - If stream closed.public abstract java.lang.String getRequestString()
public void preserveMark()
throws java.io.IOException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||