javanetwork class