public class HangingTraceStream extends InputStream
Constructor and Description |
---|
HangingTraceStream(InputStream stream,
ExchangeService service)
Initializes a new instance of the HangingTraceStream class.
|
Modifier and Type | Method and Description |
---|---|
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.
|
available, close, mark, markSupported, read, reset, skip
public HangingTraceStream(InputStream stream, ExchangeService service)
stream
- The stream.service
- the service.public boolean getCanRead()
public boolean getCanSeek()
public boolean getCanWrite()
public int read(byte[] buffer, int offset, int count) throws IOException
read
in class InputStream
buffer
- 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 responsepublic int read() throws IOException
read
in class InputStream
IOException
Copyright © 2012–2015 Microsoft. All rights reserved.