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 AttachmentDataStream
AttachmentDataStreamType
associated with this stream.public InputStream getInputStream() throws IOException
AttachmentDataStream
InputStream
for this stream. It is expected that each call creates a fresh stream.getInputStream
in interface AttachmentDataStream
IOException
Copyright © 2003–2018 Atlassian. All rights reserved.