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 SummaryNested ClassesModifier and TypeInterfaceDescriptionstatic classDeprecated.static classDeprecated.since 7.14 Usecreate(AttachmentDataStreamType, InputStreamSource)static classDeprecated.since 7.14 Usecreate(AttachmentDataStreamType, InputStreamSource)andlimit(RangeRequest)
- 
Method SummaryModifier 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- 
getTypeAttachmentDataStreamType getType()- Returns:
- The AttachmentDataStreamTypeassociated with this stream.
 
- 
getInputStreamObtains anInputStreamfor this stream. It is expected that each call creates a fresh stream.- Specified by:
- getInputStreamin interface- org.springframework.core.io.InputStreamSource
- Throws:
- IOException
 
- 
limitApplies a range limit to the currentAttachmentDataStream.- Since:
- 7.14
 
- 
createstatic AttachmentDataStream create(AttachmentDataStreamType type, org.springframework.core.io.InputStreamSource inputStreamSource) - Since:
- 7.14
 
 
- 
create(AttachmentDataStreamType, InputStreamSource)