How to use a ByteBuffer return from C++ to Java
===

This is almost a  repeat of question in http://stackoverflow.com/questions/2740068/how-can-i-make-swig-correctly-wrap-a-char-buffer-that-is-modified-in-c-as-a-jav ...  
Instead of Stringbuffer if I were to use a bytebuffer, what would be the change in the typemap ?
