public static class AttachmentDataStream.InputStreamWrapper extends Object implements AttachmentDataStream
AttachmentDataStream implementation that wraps a raw InputStream. Note that this
implementation doesn't behave exactly as the interface sayas it should, in that it wraps an already
opened stream. As such, multiple calls to getInputStream() are not permitted.AttachmentDataStream.FileWrapper, AttachmentDataStream.InputStreamWrapper, AttachmentDataStream.RandomFileWrapper| Constructor and Description |
|---|
InputStreamWrapper(AttachmentDataStreamType dataStreamType,
InputStream inputStream) |
| Modifier and Type | Method and Description |
|---|---|
InputStream |
getInputStream()
Obtains an
InputStream for this stream. |
AttachmentDataStreamType |
getType() |
public InputStreamWrapper(AttachmentDataStreamType dataStreamType, InputStream inputStream)
public AttachmentDataStreamType getType()
getType in interface AttachmentDataStreamAttachmentDataStreamType associated with this stream.public InputStream getInputStream() throws IOException
AttachmentDataStreamInputStream for this stream. It is expected that each call creates a fresh stream.getInputStream in interface AttachmentDataStreamIOExceptionCopyright © 2003–2017 Atlassian. All rights reserved.