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 AttachmentDataStream
AttachmentDataStreamType
associated with this stream.public InputStream getInputStream() throws IOException
AttachmentDataStream
InputStream
for this stream. It is expected that each call creates a fresh stream.getInputStream
in interface AttachmentDataStream
IOException
public File getFile()
Copyright © 2003–2019 Atlassian. All rights reserved.