LOBInputStream
, PositionedStoreStream
public interface PositionedStream
This interface doesn't convey any information about how expensive it is for the stream to reposition itself.
Modifier and Type | Method | Description |
---|---|---|
java.io.InputStream |
asInputStream() |
Returns a reference to self as an
InputStream . |
long |
getPosition() |
Returns the current byte position of the stream.
|
void |
reposition(long requestedPos) |
Repositions the stream to the requested byte position.
|
java.io.InputStream asInputStream()
InputStream
.
This method is not allowed to return null
.
InputStream
reference to self.long getPosition()
void reposition(long requestedPos) throws java.io.IOException, StandardException
If the repositioning fails because the stream is exhausted, most likely
because of an invalid position specified by the user, the stream is
reset to position zero and an EOFException
is thrown.
requestedPos
- requested byte position, first position is 0
java.io.IOException
- if accessing the stream failsjava.io.EOFException
- if the requested position is equal to or
larger than the length of the streamStandardException
- if an error occurs in storeApache Derby V10.14 Internals - Copyright © 2004,2018 The Apache Software Foundation. All Rights Reserved.