telnet is almost bare tcp. you can probably make a socket connection, write commands, read responses.
well - telnet does have some control commands that can be mixed with data stream. you can probably program to ignore them. or, to be perfectly protocol aware, use a java telnet client package.