com.atlassian.confluence.pages.persistence.dao
Class AttachmentDataStream.FileWrapper

java.lang.Object
  extended by com.atlassian.confluence.pages.persistence.dao.AttachmentDataStream.FileWrapper
All Implemented Interfaces:
AttachmentDataStream
Enclosing interface:
AttachmentDataStream

public static class AttachmentDataStream.FileWrapper
extends java.lang.Object
implements AttachmentDataStream

An AttachmentDataStream implementation that wraps a single File.


Nested Class Summary
 
Nested classes/interfaces inherited from interface com.atlassian.confluence.pages.persistence.dao.AttachmentDataStream
AttachmentDataStream.FileWrapper, AttachmentDataStream.InputStreamWrapper
 
Constructor Summary
AttachmentDataStream.FileWrapper(AttachmentDataStreamType dataStreamType, java.io.File file)
           
 
Method Summary
 java.io.InputStream getInputStream()
          Obtains an InputStream for this stream.
 AttachmentDataStreamType getType()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AttachmentDataStream.FileWrapper

public AttachmentDataStream.FileWrapper(AttachmentDataStreamType dataStreamType,
                                        java.io.File file)
Method Detail

getType

public AttachmentDataStreamType getType()
Specified by:
getType in interface AttachmentDataStream
Returns:
The AttachmentDataStreamType associated with this stream.

getInputStream

public java.io.InputStream getInputStream()
                                   throws java.io.IOException
Description copied from interface: AttachmentDataStream
Obtains an InputStream for this stream. It is expected that each call creates a fresh stream.

Specified by:
getInputStream in interface AttachmentDataStream
Throws:
java.io.IOException


Copyright © 2003-2014 Atlassian. All Rights Reserved.