mina-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From peter royal <pro...@apache.org>
Subject Re: ByteBuffer.getString
Date Tue, 30 May 2006 20:38:16 GMT
On May 25, 2006, at 10:03 AM, Johannes U. Jensen wrote:
> I just started using MINA and noticed that you cannot just extract  
> a string from a bytebuffer if it contains a null. It is possible to  
> get a string with a maximum number of characters but I need an  
> absolute number of characters even if it contains a null. It seems  
> like a strange requirement to me that it has to end in null but are  
> there any easy ways to ignore this or would it be easier to  
> implement my own method?

I think ByteBuffer.get/setPrefixedString might work in your situation?
-pete

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



Mime
View raw message