Quote:
quote:Originally posted by yc5x
On page 402 of the book, there is a statement said buf.setPosition(8*doubleBuf.getPosition());
When I wrote this code to try to run, i got error. Also I checked Java API document, no method setPosition() or getPosition() for Buffer class. I don't know why these two methods showed in the book which confused reader.
|
That surely was careless of Ivor!
You have identified the error, and you read the SDK1.4 API docs - a good thing that you do! You must be able to find the right method to accomplish the task at hand. I am sure there is an alternative approach for this.
Happy wanderings!
Francis
Netherlands