Review completely the javalib

`createX` is no better: it does not create anything either.

`needMoreSpaceInOutBuf`? `makeRoomInOutBuf`?