db-derby-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Kristian Waagan (JIRA)" <j...@apache.org>
Subject [jira] Updated: (DERBY-3936) Add CharacterStreamDescriptor
Date Tue, 02 Dec 2008 10:22:44 GMT

     [ https://issues.apache.org/jira/browse/DERBY-3936?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel

Kristian Waagan updated DERBY-3936:

    Attachment: derby-3936-4a-streamref_and_copy.diff

'derby-3936-4a-streamref_and_copy.diff' adds the following new "features";
 o adds a stream reference to the descriptor
 o adds a method to return a PositionedStream reference to the InputStream
 o adds a method to the builder to copy the values of another builder
 o adds a few more sanity checks (sane builds only)
 o updated tests

I think the descriptor is getting close to finished now. Optimization information described
in DERBY-3907 might be added later.

Patch ready for review.

> Add CharacterStreamDescriptor
> -----------------------------
>                 Key: DERBY-3936
>                 URL: https://issues.apache.org/jira/browse/DERBY-3936
>             Project: Derby
>          Issue Type: Sub-task
>          Components: JDBC
>    Affects Versions:
>            Reporter: Kristian Waagan
>            Assignee: Kristian Waagan
>            Priority: Minor
>             Fix For:
>         Attachments: derby-3936-1a-CharacterStreamDescriptor.diff, derby-3936-1b-CharacterStreamDescriptor.diff,
derby-3936-2a-temp_fix.diff, derby-3936-3a-javadoc-1.diff, derby-3936-4a-streamref_and_copy.diff
> A set of state information is required about byte streams representing characters to
be able to handle them properly.
> The basic pieces of information are:
>  - is bufferable
>  - is position aware
>  - data offset
>  - current byte position
>  - current char position
>  - byte length
>  - char length
> Additional info:
>  - encoding
>  - max allowed length
>  - bytes per char information
> The information is chosen with UTF8Reader in mind, and the plan is to pass a CharacterStreamDescriptor
instance to the constructor to allow the reader to configure itself appropriately. The information
is expected to be valid only at a specific point in time, as some of it will change as soon
as the reader starts working with the underlying stream.

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message