|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.io.InputStream
microsoft.exchange.webservices.data.misc.HangingTraceStream
public class HangingTraceStream
A stream that traces everything it returns from its Read() call. That trace may be retrieved at the end of the stream.
| Constructor Summary | |
|---|---|
HangingTraceStream(InputStream stream,
ExchangeService service)
Initializes a new instance of the HangingTraceStream class. |
|
| Method Summary | |
|---|---|
boolean |
getCanRead()
Gets a value indicating whether the current stream supports reading. |
boolean |
getCanSeek()
Gets a value indicating whether the current stream supports seeking. |
boolean |
getCanWrite()
Gets a value indicating whether the current stream supports writing. |
int |
read()
|
int |
read(byte[] buffer,
int offset,
int count)
When overridden in a derived class, reads a sequence of bytes from the current stream and advances the position within the stream by the number of bytes read. |
void |
setResponseCopy(ByteArrayOutputStream responseCopy)
Sets the response copy. |
| Methods inherited from class java.io.InputStream |
|---|
available, close, mark, markSupported, read, reset, skip |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public HangingTraceStream(InputStream stream,
ExchangeService service)
stream - The stream.service - the service.| Method Detail |
|---|
public boolean getCanRead()
public boolean getCanSeek()
public boolean getCanWrite()
public int read(byte[] buffer,
int offset,
int count)
throws IOException
read in class InputStreambuffer - An array of bytes. When this method returns, the buffer
contains the specified byte array with the values betweenoffset - The zero-based byte offset in at which to
begin storing the data read from the current stream.count - The maximum number of bytes to be read from the current stream.
IOException - The sum of offset and count is larger than the buffer length.public void setResponseCopy(ByteArrayOutputStream responseCopy)
responseCopy - a copy of response
public int read()
throws IOException
read in class InputStreamIOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||