@Deprecated public static class AttachmentDataStream.RandomFileWrapper extends Object implements AttachmentDataStream
AttachmentDataStream.FileWrapper, AttachmentDataStream.InputStreamWrapper, AttachmentDataStream.RandomFileWrapper| Constructor and Description |
|---|
RandomFileWrapper(AttachmentDataStreamType dataStreamType,
File file,
RangeRequest range)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
InputStream |
getInputStream()
Deprecated.
Obtains an
InputStream for this stream. |
AttachmentDataStreamType |
getType()
Deprecated.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcreate, limitpublic RandomFileWrapper(AttachmentDataStreamType dataStreamType, File file, RangeRequest range) throws IOException
IOExceptionpublic 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 AttachmentDataStreamgetInputStream in interface org.springframework.core.io.InputStreamSourceIOExceptionCopyright © 2003–2021 Atlassian. All rights reserved.