Interface Stream
-
- All Superinterfaces:
AutoCloseable,Closeable
- All Known Implementing Classes:
BundledStream
public interface Stream extends Closeable
A Stream encapsulates aSeekableInputStreamalong with an associatedStreamDescriptor. A Stream may be subject to some kind of remoting. Therefore exceptions may be thrown when accessing its content stream.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidclose()Closes the encapsulated input stream.StreamDescriptorgetDescriptor()Get the associatedStreamDescriptor.com.levigo.jadice.document.io.SeekableInputStreamgetInputStream()Get the associatedSeekableInputStream.
-
-
-
Method Detail
-
getInputStream
com.levigo.jadice.document.io.SeekableInputStream getInputStream() throws IOExceptionGet the associatedSeekableInputStream.- Returns:
- the Stream's content
- Throws:
IOException- if an I/O error occurs accessing theInputStream
-
getDescriptor
StreamDescriptor getDescriptor()
Get the associatedStreamDescriptor.- Returns:
- the Stream's
StreamDescriptor
-
close
void close() throws IOExceptionCloses the encapsulated input stream.- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Throws:
IOException- Since:
- jadice server 5.5.0.0
-
-