URL 클래스 특징 URL은 WWW의 자원인 Uniform Resource Locator를 나타냅니다. Resource는 파일이나 디렉토리 같은 단순한 것일 수 있고 DB같은 복잡한 개체에 대한 참조일 수 있습니다. 주요 메소드 String getAuthority() Gets the authority part of this URL. Object getContent() Gets the contents of this URL. Object getContent(Class[] classes) Gets the contents of this URL. int getDefaultPort() Gets the default port number of the protocol associated with this URL. St..
Java Collection 개념 collection은 배열과 같이 개체를 저장하는데 목적을 둔 클래스들의 집합입니다. 다만 배열과 다른점은 사용자가 편리하게 개체를 다루기 위한(추가, 삭제, 정렬 등) 메서드들을 포함하고 있습니다. 종류 List 순서대로 개체를 관리합니다. 중복을 허용합니다. null을 허용합니다. 숫자 index를 통해 접근합니다. 하위 클래스로 ArrayList, LinkedList, Vector가 있습니다. Set 중복을 허용하지 않습니다. null을 허용합니다. 하위 클래스로 HashSet, SortedSet 이 있습니다. Queue 중복을 허용합니다. head 부터 next 노드를 차례로 검색해 찾는 개체를 서치합니다. LinkedList를 구현하기도 합니다. Map key,..
InetAddress 개념 IP주소를 다루기 위한 class java.net package에 있는 class 메소드 byte[] getAddress() IP주소를 Byte배열로 반환한다. static InetAddress[] getAllByName(String host) 도메인명(host)에 지정된 모든 호스트의 IP주소를 배열에 담아 반환한다. (nslookup www.naver.com) static InetAddress getByAddress(byte[] addr) byte배열을 통해 IP주소를 얻는다. static InetAddress getByName(String host) 도메인명(host)을 통해 IP주소를 얻는다. String getCanonicalHostName() FQDN(fully qu..