[
https://issues.apache.org/jira/browse/DERBY-3935?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Kristian Waagan updated DERBY-3935:
-----------------------------------
Attachment: derby-3935-1a-PositionedStream.diff
'derby-3935-1a-PositionedStream.diff' is the first revision of the
PositionedStream interface.
Two streams implement the interface: PositionedStoreStream and LOBInputStream.
The interface has the following methods:
- asInputStream() : convenience method to return a reference to the stream as
InputStream.
- getPosition() : returns the current position of the stream.
- reposition(long) : repositions the stream to the requested position.
Patch ready for review.
> Introduce interface for a position aware stream
> -----------------------------------------------
>
> Key: DERBY-3935
> URL: https://issues.apache.org/jira/browse/DERBY-3935
> Project: Derby
> Issue Type: Sub-task
> Components: JDBC
> Affects Versions: 10.5.0.0
> Reporter: Kristian Waagan
> Assignee: Kristian Waagan
> Priority: Minor
> Attachments: derby-3935-1a-PositionedStream.diff
>
>
> Add an interface for streams that are aware of their position and that can
> reposition itself on request.
> Initially there will be two such stream objects; PositionedStoreStream and
> LOBInputStream.
> The interface will be used to allow the Clob implementation (including
> UTF8Reader) to handle the various internal Clob representations in a
> consistent manner when it comes to positioning the underlying byte stream.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.