com.sun.mail.iap
Class ResponseInputStream

java.lang.Object
  extended by com.sun.mail.iap.ResponseInputStream

public class ResponseInputStream
extends Object

Inputstream that is used to read a Response.

Author:
Arun Krishnan, Bill Shannon

Constructor Summary
ResponseInputStream(InputStream in)
          Constructor.
 
Method Summary
 ByteArray readResponse()
          Read a Response from the InputStream.
 ByteArray readResponse(ByteArray ba)
          Read a Response from the InputStream.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ResponseInputStream

public ResponseInputStream(InputStream in)
Constructor.

Method Detail

readResponse

public ByteArray readResponse()
                       throws IOException
Read a Response from the InputStream.

Returns:
ByteArray that contains the Response
Throws:
IOException

readResponse

public ByteArray readResponse(ByteArray ba)
                       throws IOException
Read a Response from the InputStream.

Returns:
ByteArray that contains the Response
Throws:
IOException


Copyright © 2011 Sun Microsystems, Inc.. All Rights Reserved.