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

Emmanuel Lecharny resolved DIRMINA-655.
---------------------------------------
    Resolution: Won't Fix

I don't think it would bring a lot of benefit.

First, most of the time the protocol is simple enough to use a TestLineDecoder.

Second, using a regexp does not fit well with the very nature of NIO 
communication : we may receive the data in smal chunks, though that would 
require more than one macth to be sure we get all what we need.



> Add a more general purpose text based decoder
> ---------------------------------------------
>
>                 Key: DIRMINA-655
>                 URL: https://issues.apache.org/jira/browse/DIRMINA-655
>             Project: MINA
>          Issue Type: New Feature
>    Affects Versions: 2.0.0-M4
>         Environment: Mina 2.0.0-M4, Java 1.6, Fedora 10
>            Reporter: Matthieu Chase Heimer
>            Priority: Minor
>             Fix For: 2.0.8
>
>         Attachments: RegExDecoder.java
>
>
> There are many text based protocols who have messages that are terminated by 
> a delimiter other than an end of line. A protocol decoder that is more 
> generic than TextLineDecoder would be a nice addition. It should also be easy 
> to extend so developers can focus on coverting text messages to domain 
> objects and not on converting  and parsing IoBuffers.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to