Class AttachmentDataStream.InputStreamWrapper
java.lang.Object
com.atlassian.confluence.pages.persistence.dao.AttachmentDataStream.InputStreamWrapper
- All Implemented Interfaces:
AttachmentDataStream,org.springframework.core.io.InputStreamSource
- Enclosing interface:
- AttachmentDataStream
@Deprecated
public static class AttachmentDataStream.InputStreamWrapper
extends Object
implements AttachmentDataStream
Deprecated.
An
AttachmentDataStream implementation that wraps a raw InputStream. Note that this
implementation doesn't behave exactly as the interface sayas it should, in that it wraps an already
opened stream. As such, multiple calls to getInputStream() are not permitted.-
Nested Class Summary
Nested classes/interfaces inherited from interface com.atlassian.confluence.pages.persistence.dao.AttachmentDataStream
AttachmentDataStream.FileWrapper, AttachmentDataStream.InputStreamWrapper, AttachmentDataStream.RandomFileWrapper -
Constructor Summary
ConstructorsConstructorDescriptionInputStreamWrapper(AttachmentDataStreamType dataStreamType, InputStream inputStream) Deprecated. -
Method Summary
Modifier and TypeMethodDescriptionDeprecated.Obtains anInputStreamfor this stream.getType()Deprecated.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.atlassian.confluence.pages.persistence.dao.AttachmentDataStream
limit
-
Constructor Details
-
InputStreamWrapper
Deprecated.
-
-
Method Details
-
getType
Deprecated.- Specified by:
getTypein interfaceAttachmentDataStream- Returns:
- The
AttachmentDataStreamTypeassociated with this stream.
-
getInputStream
Deprecated.Description copied from interface:AttachmentDataStreamObtains anInputStreamfor this stream. It is expected that each call creates a fresh stream.- Specified by:
getInputStreamin interfaceAttachmentDataStream- Specified by:
getInputStreamin interfaceorg.springframework.core.io.InputStreamSource- Throws:
IOException
-
AttachmentDataStream.create(AttachmentDataStreamType, InputStreamSource)