Interface Stream
-
- All Superinterfaces:
AutoCloseable
,Closeable
- All Known Implementing Classes:
BundledStream
public interface Stream extends Closeable
A Stream encapsulates aSeekableInputStream
along 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 void
close()
Closes the encapsulated input stream.StreamDescriptor
getDescriptor()
Get the associatedStreamDescriptor
.com.levigo.jadice.document.io.SeekableInputStream
getInputStream()
Get the associatedSeekableInputStream
.
-
-
-
Method Detail
-
getInputStream
com.levigo.jadice.document.io.SeekableInputStream getInputStream() throws IOException
Get 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 IOException
Closes the encapsulated input stream.- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Throws:
IOException
- Since:
- jadice server 5.5.0.0
-
-