Interface AttachmentDataStream
- All Superinterfaces:
org.springframework.core.io.InputStreamSource
- All Known Implementing Classes:
AttachmentDataStream.FileWrapper,AttachmentDataStream.InputStreamWrapper,AttachmentDataStream.RandomFileWrapper
public interface AttachmentDataStream
extends org.springframework.core.io.InputStreamSource
Represents the data for an attachment.
- Since:
- 5.5
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic classDeprecated.static classDeprecated.since 7.14 Usecreate(AttachmentDataStreamType, InputStreamSource)static classDeprecated.since 7.14 Usecreate(AttachmentDataStreamType, InputStreamSource)andlimit(RangeRequest) -
Method Summary
Modifier and TypeMethodDescriptionstatic AttachmentDataStreamcreate(AttachmentDataStreamType type, org.springframework.core.io.InputStreamSource inputStreamSource) Obtains anInputStreamfor this stream.getType()default AttachmentDataStreamlimit(RangeRequest range) Applies a range limit to the currentAttachmentDataStream.
-
Method Details
-
getType
AttachmentDataStreamType getType()- Returns:
- The
AttachmentDataStreamTypeassociated with this stream.
-
getInputStream
Obtains anInputStreamfor this stream. It is expected that each call creates a fresh stream.- Specified by:
getInputStreamin interfaceorg.springframework.core.io.InputStreamSource- Throws:
IOException
-
limit
Applies a range limit to the currentAttachmentDataStream.- Since:
- 7.14
-
create
static AttachmentDataStream create(AttachmentDataStreamType type, org.springframework.core.io.InputStreamSource inputStreamSource) - Since:
- 7.14
-
create(AttachmentDataStreamType, InputStreamSource)