Package com.sun.mail.iap
Class ResponseInputStream
java.lang.Object
com.sun.mail.iap.ResponseInputStream
Inputstream that is used to read a Response.
- Author:
- Arun Krishnan, Bill Shannon
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
How much buffered data do we have?Read a Response from the InputStream.Read a Response from the InputStream.
-
Constructor Details
-
ResponseInputStream
Constructor.- Parameters:
in
- the InputStream to wrap
-
-
Method Details
-
readResponse
Read a Response from the InputStream.- Returns:
- ByteArray that contains the Response
- Throws:
IOException
- for I/O errors
-
readResponse
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:
IOException
- for I/O errors
-
available
How much buffered data do we have?- Returns:
- number of bytes available
- Throws:
IOException
- if the stream has been closed- Since:
- JavaMail 1.5.4
-