General purpose network interface in Java