[Java] InetAddress 이야기 자바, InetAddress 이야기 InetAddress 클래스는 특정 IP 주소를 다루기 위해 고안된 class 이다.이 녀석은 factory method 들을 제공하며, 생성자로 만들 수 없다. InetAddress[] getAllByName( String host )InetAddress getByAddress( byte[] addr )addr[0] = (byte) 192addr[1] = (byte) 128addr[2] = (byte) 1addr[3] = (byte) 121InetAddress getByAddress( String host, byte[] addr )InetAddress getByName( String host )InetAddress getLocalHost() addr, factory .. 2013. 8. 22. 반응형 이전 1 다음