mina-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Eero Nevalainen (JIRA)" <j...@apache.org>
Subject [jira] Commented: (DIRMINA-397) Add convenience constructor for specifying linedelimiter in TextLineCodecFactory
Date Mon, 09 Jul 2007 12:47:04 GMT

    [ https://issues.apache.org/jira/browse/DIRMINA-397?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12511103
] 

Eero Nevalainen commented on DIRMINA-397:
-----------------------------------------

It seems I'm not the only one who needs to set the delimiters manually. Although TextLineEncoder
and Decoder can be used directly to the same effect this change would make my code a little
bit prettier.

> Add convenience constructor for specifying linedelimiter in TextLineCodecFactory
> --------------------------------------------------------------------------------
>
>                 Key: DIRMINA-397
>                 URL: https://issues.apache.org/jira/browse/DIRMINA-397
>             Project: MINA
>          Issue Type: Improvement
>          Components: Filter
>            Reporter: Eero Nevalainen
>            Priority: Minor
>
> Change the following
> public TextLineCodecFactory( Charset charset )
>     {
>         encoder = new TextLineEncoder( charset, LineDelimiter.UNIX );
>         decoder = new TextLineDecoder( charset, LineDelimiter.AUTO );
>     }
> to
> public TextLineCodecFactory( Charset charset )
>     {
>         this( charset, LineDelimiter.UNIX, LineDelimiter.AUTO );
>     }
> public TextLineCodecFactory( Charset charset, LineDelimiter encodingDelimiter, LineDelimiter
decodingDelimiter )
>     {
>         encoder = new TextLineEncoder( charset, encodingDelimiter );
>         decoder = new TextLineDecoder( charset, decodingDelimiter );
>     }

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


Mime
View raw message