You are viewing a plain text version of this content. The canonical link for it is here.
Posted to server-dev@james.apache.org by "Norman Maurer (Created) (JIRA)" <ji...@apache.org> on 2011/12/23 20:42:31 UTC
[jira] [Created] (PROTOCOLS-71) LineHandler should use a read-only
ByteBuffer as paramater as replacement for byte[]
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: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org
[jira] [Resolved] (PROTOCOLS-71) LineHandler should use a read-only
ByteBuffer as paramater as replacement for byte[]
Posted by "Norman Maurer (Resolved) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/PROTOCOLS-71?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Norman Maurer resolved PROTOCOLS-71.
------------------------------------
Resolution: Fixed
done
> 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: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org