You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@directory.apache.org by sage bee <no...@yahoo.com> on 2006/08/18 09:36:05 UTC

[mina] MINA ByteBuffer

hi to All
  
  i m tryin to make a server  architecture that is independent of  any specific network framework ...like mina or any other. at run time  it decides to make the server according to mina architecture or to  other .... so i hav made a class 'Storage' storing the data received in  the form of ByteBuffer(java.nio.ByteBuffer).but MINA uses its own  ByteBuffer(org.apache.mina.common.ByteBuffer).
  
  is there any technique to convert  ByteBuffer(org.apache.mina.common.ByteBuffer) to  ByteBuffer(java.nio.ByteBuffer) else i have to import  'org.apache.mina.common.ByteBuffer' in my Storage class , that makes my  server architecture framework dependent ....
  
  kindly tell me any suggestion to avoid this situation .
  i dont want to store receievd data in String form due to performance issue ....
  
  
  Thanking U
  Regards
  sage
  
  
 __________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

Re: [mina] MINA ByteBuffer

Posted by peter royal <pr...@apache.org>.
On Aug 18, 2006, at 3:36 AM, sage bee wrote:
> is there any technique to convert ByteBuffer 
> (org.apache.mina.common.ByteBuffer) to ByteBuffer 
> (java.nio.ByteBuffer) else i have to import  
> 'org.apache.mina.common.ByteBuffer' in my Storage class , that  
> makes my server architecture framework dependent ....

org.apache.mina.common.ByteBuffer.buf()

-pete


-- 
proyal@apache.org - http://fotap.org/~osi