Package org.apache.axiom.attachments

# Class IncomingAttachmentStreams

java.lang.Object
org.apache.axiom.attachments.IncomingAttachmentStreams

public final class IncomingAttachmentStreams extends Object
Container for AttachmentStream s. This class provides an SwA like access mechanism, allowing applications to access the streams directly. Access it intentionally restrictred to either SwA like (stream access), or MTOM like (part/data handler access via blob id), not both.

- ## Method Summary

  Modifier and Type
  Method
  Description
  `IncomingAttachmentInputStream`
  `getNextStream()`
  Returns the next attachment stream in sequence.
  `final boolean`
  `isReadyToGetNextStream()`

  ### Methods inherited from class java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Method Details

  - ### isReadyToGetNextStream

    public final boolean isReadyToGetNextStream()
    Returns:
      True if the next stream can be read, false otherwise.

  - ### getNextStream

    public IncomingAttachmentInputStream getNextStream() throws OMException
    Returns the next attachment stream in sequence.
    Returns:
      The next stream or null if no additional streams are left.
    Throws:
      `OMException`