com.atlassian.confluence.pages.persistence.dao
Interface AttachmentDataStream

All Known Implementing Classes:
AttachmentDataStream.FileWrapper, AttachmentDataStream.InputStreamWrapper

public interface AttachmentDataStream

Represents the data for an attachment.

Since:
v5.5

Nested Class Summary
static class AttachmentDataStream.FileWrapper
          An AttachmentDataStream implementation that wraps a single File.
static class AttachmentDataStream.InputStreamWrapper
          An AttachmentDataStream implementation that wraps a raw InputStream.
 
Method Summary
 InputStream getInputStream()
          Obtains an InputStream for this stream.
 AttachmentDataStreamType getType()
           
 

Method Detail

getType

AttachmentDataStreamType getType()
Returns:
The AttachmentDataStreamType associated with this stream.

getInputStream

InputStream getInputStream()
                           throws IOException
Obtains an InputStream for this stream. It is expected that each call creates a fresh stream.

Throws:
IOException


Copyright © 2003–2015 Atlassian. All rights reserved.