SilverTunnel-NG is able to provide access to the Tor Network on a Socket level.
You can checkout the Sample code here
The easiest way is to use maven and include the following dependency into your pom.xml:
<dependency>
<groupId>org.silvertunnel-ng</groupId>
<artifactId>netlib</artifactId>
<version>0.0.4</version>
</dependency>