Return-Path: X-Original-To: apmail-db-derby-dev-archive@www.apache.org Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 43F212CCF for ; Fri, 29 Apr 2011 10:54:44 +0000 (UTC) Received: (qmail 20016 invoked by uid 500); 29 Apr 2011 10:54:44 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 19988 invoked by uid 500); 29 Apr 2011 10:54:44 -0000 Mailing-List: contact derby-dev-help@db.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: Delivered-To: mailing list derby-dev@db.apache.org Received: (qmail 19981 invoked by uid 99); 29 Apr 2011 10:54:44 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 29 Apr 2011 10:54:44 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 29 Apr 2011 10:54:41 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 21BA1B9229 for ; Fri, 29 Apr 2011 10:54:03 +0000 (UTC) Date: Fri, 29 Apr 2011 10:54:03 +0000 (UTC) From: "Knut Anders Hatlen (JIRA)" To: derby-dev@db.apache.org Message-ID: <2007691169.11431.1304074443134.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Created] (DERBY-5210) Use java.nio.ByteBuffer in client.net.Request MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org Use java.nio.ByteBuffer in client.net.Request --------------------------------------------- Key: DERBY-5210 URL: https://issues.apache.org/jira/browse/DERBY-5210 Project: Derby Issue Type: Improvement Components: Network Client Affects Versions: 10.9.0.0 Reporter: Knut Anders Hatlen Assignee: Knut Anders Hatlen We should see if we could use a java.nio.ByteBuffer instead of a byte array in org.apache.derby.client.net.Request, similar to what we did for DDMWriter in DERBY-2936. ByteBuffer provides some helper methods that allows us to simplify the code that puts multi-byte values into the buffer (like ByteBuffer.putShort(), putInt(), putLong()). It may also be a first step on the way to using a CharsetEncoder to encode strings without going via an intermediate throw-away byte array (see DERBY-5068 for details). -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira