Skip navigation links

Java API Reference for Oracle Infrastructure Web Services
11
Release 1 (11.1.1)

E10654-02


oracle.webservices.attachments
Interface IncomingAttachments


public interface IncomingAttachments

An object collecting incoming (server request or client response) streaming attachments.


Method Summary
 void close()
          Close the incoming attachments stream.
 boolean hasNextAttachment()
          Check if there are more attachments in this request/response.
 Attachment nextAttachment()
          Returns an Attachment object for the next attachment on the wire.

 

Method Detail

close

void close()
           throws IOException
Close the incoming attachments stream. This must be called once all attachments are read to close the connection.
Throws:
IOException

hasNextAttachment

boolean hasNextAttachment()
                          throws IOException
Check if there are more attachments in this request/response. Returns true if there are remaining, unread attachments, false otheriwse.
Returns:
true if there are attachments to be read
Throws:
IOException

nextAttachment

Attachment nextAttachment()
                          throws IOException
Returns an Attachment object for the next attachment on the wire. If there are no more attachments, throws an IOException.
Returns:
The next Attachment object
Throws:
IOException

Skip navigation links

Copyright © 2006, 2009 Oracle. All Rights Reserved.