Overview | Package | Class | Use | Tree | Deprecated | Index | Help
| Oracle Application Server Web Services Java API Reference 10g Release 3 (10.1.3) B25988-01
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## 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

    public 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

    public 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

    public 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`

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
| Copyright © 2006, Oracle. All Rights Reserved.
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD