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) |
| Modifier and Type | Method and Description |
|---|---|
File |
getFile() |
InputStream |
getInputStream()
Obtains an
InputStream for this stream. |
AttachmentDataStreamType |
getType() |
public 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 AttachmentDataStreamIOExceptionpublic File getFile()
Copyright © 2003–2021 Atlassian. All rights reserved.