public interface AttachmentDataStream
extends org.springframework.core.io.InputStreamSource
| Modifier and Type | Interface and Description |
|---|---|
static class |
AttachmentDataStream.FileWrapper
Deprecated.
since 7.14 Use
create(AttachmentDataStreamType, InputStreamSource) |
static class |
AttachmentDataStream.InputStreamWrapper
Deprecated.
since 7.14 Use
create(AttachmentDataStreamType, InputStreamSource) |
static class |
AttachmentDataStream.RandomFileWrapper
Deprecated.
since 7.14 Use
create(AttachmentDataStreamType, InputStreamSource) and limit(RangeRequest) |
| Modifier and Type | Method and Description |
|---|---|
static AttachmentDataStream |
create(AttachmentDataStreamType type,
org.springframework.core.io.InputStreamSource inputStreamSource)
|
InputStream |
getInputStream()
Obtains an
InputStream for this stream. |
AttachmentDataStreamType |
getType() |
default AttachmentDataStream |
limit(RangeRequest range)
Applies a range limit to the current
AttachmentDataStream. |
AttachmentDataStreamType getType()
AttachmentDataStreamType associated with this stream.InputStream getInputStream() throws IOException
InputStream for this stream. It is expected that each call creates a fresh stream.getInputStream in interface org.springframework.core.io.InputStreamSourceIOExceptiondefault AttachmentDataStream limit(RangeRequest range)
AttachmentDataStream.static AttachmentDataStream create(AttachmentDataStreamType type, org.springframework.core.io.InputStreamSource inputStreamSource)
Copyright © 2003–2022 Atlassian. All rights reserved.