Honestly, this is almost impossible to read and follow. Reading and following this may help a bit:
Code Conventions for the Java(TM) Programming Language: Contents
The functioning of the methods and their names are just too non-intuitive to wade through. If you can post the relevant lines where you are having difficulty, perhaps someone can help.