LineHandler should use a read-only ByteBuffer as paramater as replacement for 
byte[]
------------------------------------------------------------------------------------

                 Key: PROTOCOLS-71
                 URL: https://issues.apache.org/jira/browse/PROTOCOLS-71
             Project: JAMES Protocols
          Issue Type: Improvement
          Components: api
    Affects Versions: 1.6.0-RC1
            Reporter: Norman Maurer
            Assignee: Norman Maurer
             Fix For: 1.6.0


At the moment we use a byte[] as parameter for the LineHandler. This as many 
downsides:
* It may need an extra byte[] copy as if you use nio which is backed by 
ByteBuffer's the backed array of them may be bigger thn the actual content. So 
you may end up having byte[] instances which contains null values
* The byte[] is mutable
* Its not easy to combine byte[] instances

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to