Package com.sun.mail.iap
Class ResponseInputStream
- java.lang.Object
-
- com.sun.mail.iap.ResponseInputStream
-
public class ResponseInputStream extends java.lang.ObjectInputstream that is used to read a Response.
-
-
Constructor Summary
Constructors Constructor Description ResponseInputStream(java.io.InputStream in)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intavailable()How much buffered data do we have?ByteArrayreadResponse()Read a Response from the InputStream.ByteArrayreadResponse(ByteArray ba)Read a Response from the InputStream.
-
-
-
Method Detail
-
readResponse
public ByteArray readResponse() throws java.io.IOException
Read a Response from the InputStream.- Returns:
- ByteArray that contains the Response
- Throws:
java.io.IOException- for I/O errors
-
readResponse
public ByteArray readResponse(ByteArray ba) throws java.io.IOException
Read a Response from the InputStream.- Parameters:
ba- the ByteArray in which to store the response, or null- Returns:
- ByteArray that contains the Response
- Throws:
java.io.IOException- for I/O errors
-
available
public int available() throws java.io.IOExceptionHow much buffered data do we have?- Returns:
- number of bytes available
- Throws:
java.io.IOException- if the stream has been closed- Since:
- JavaMail 1.5.4
-
-