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
 java.io.InputStream getInputStream()
          Obtains an InputStream for this stream.
 AttachmentDataStreamType getType()
           
 

Method Detail

getType

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

getInputStream

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

Throws:
java.io.IOException


Copyright © 2003-2014 Atlassian. All Rights Reserved.