@Deprecated public static class AttachmentDataStream.FileWrapper extends Object implements AttachmentDataStream
AttachmentDataStream implementation that wraps a single File.AttachmentDataStream.FileWrapper, AttachmentDataStream.InputStreamWrapper, AttachmentDataStream.RandomFileWrapper| Constructor and Description |
|---|
FileWrapper(AttachmentDataStreamType dataStreamType,
File file)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
File |
getFile()
Deprecated.
|
InputStream |
getInputStream()
Deprecated.
Obtains an
InputStream for this stream. |
AttachmentDataStreamType |
getType()
Deprecated.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcreate, limitpublic FileWrapper(AttachmentDataStreamType dataStreamType, File file)
public 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.InputStreamSourceIOExceptionpublic File getFile()
Copyright © 2003–2021 Atlassian. All rights reserved.