You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@mina.apache.org by "Mark Webb (JIRA)" <ji...@apache.org> on 2007/07/16 04:30:06 UTC

[jira] Closed: (DIRMINA-397) Add convenience constructor for specifying linedelimiter in TextLineCodecFactory

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

Mark Webb closed DIRMINA-397.
-----------------------------

       Resolution: Fixed
    Fix Version/s: 2.0.0-M1
         Assignee: Mark Webb

Added the constructor that was requested.  Also updated the javadoc for the constructor that takes in a Charset object.

> 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
>            Assignee: Mark Webb
>            Priority: Minor
>             Fix For: 2.0.0-M1
>
>
> 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.