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) |
Modifier and Type | Method and Description |
---|---|
InputStream |
getInputStream()
Obtains an
InputStream for this stream. |
AttachmentDataStreamType |
getType() |
public RandomFileWrapper(AttachmentDataStreamType dataStreamType, File file, RangeRequest range) throws IOException
IOException
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
Copyright © 2003–2018 Atlassian. All rights reserved.