Package org.apache.axiom.attachments
Class IncomingAttachmentStreams
java.lang.Object
org.apache.axiom.attachments.IncomingAttachmentStreams
- Direct Known Subclasses:
MultipartAttachmentStreams
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.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected booleanBoolean indicating weather or not the next stream can be read (next stream cannot be read until previous is consumed -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract IncomingAttachmentInputStreamReturns the next attachment stream in sequence.final booleanprotected final voidsetReadyToGetNextStream(boolean ready) Set the ready flag.
-
Field Details
-
_readyToGetNextStream
protected boolean _readyToGetNextStreamBoolean indicating weather or not the next stream can be read (next stream cannot be read until previous is consumed
-
-
Constructor Details
-
IncomingAttachmentStreams
public IncomingAttachmentStreams()
-
-
Method Details
-
isReadyToGetNextStream
public final boolean isReadyToGetNextStream()- Returns:
- True if the next stream can be read, false otherwise.
-
setReadyToGetNextStream
protected final void setReadyToGetNextStream(boolean ready) Set the ready flag. Intended for the inner class to use.- Parameters:
ready-
-
getNextStream
Returns the next attachment stream in sequence.- Returns:
- The next stream or null if no additional streams are left.
- Throws:
OMException
-