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.AnAttachmentDataStream
implementation that wraps a rawInputStream
. 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 togetInputStream()
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
Constructors Constructor Description InputStreamWrapper(AttachmentDataStreamType dataStreamType, InputStream inputStream)
Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description InputStream
getInputStream()
Deprecated.Obtains anInputStream
for this stream.AttachmentDataStreamType
getType()
Deprecated.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.atlassian.confluence.pages.persistence.dao.AttachmentDataStream
limit
-
-
-
-
Constructor Detail
-
InputStreamWrapper
public InputStreamWrapper(AttachmentDataStreamType dataStreamType, InputStream inputStream)
Deprecated.
-
-
Method Detail
-
getType
public AttachmentDataStreamType getType()
Deprecated.- Specified by:
getType
in interfaceAttachmentDataStream
- Returns:
- The
AttachmentDataStreamType
associated with this stream.
-
getInputStream
public InputStream getInputStream() throws IOException
Deprecated.Description copied from interface:AttachmentDataStream
Obtains anInputStream
for this stream. It is expected that each call creates a fresh stream.- Specified by:
getInputStream
in interfaceAttachmentDataStream
- Specified by:
getInputStream
in interfaceorg.springframework.core.io.InputStreamSource
- Throws:
IOException
-
-