일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | |||
5 | 6 | 7 | 8 | 9 | 10 | 11 |
12 | 13 | 14 | 15 | 16 | 17 | 18 |
19 | 20 | 21 | 22 | 23 | 24 | 25 |
26 | 27 | 28 | 29 | 30 | 31 |
- ssh
- plugin
- vscode
- JavaScript
- Windows 10
- Windows
- IntelliJ
- GIT
- port
- Eclipse
- 단축키
- maVen
- bash
- import
- resource
- grep
- netsh
- 네트워크
- xargs
- 줄바꿈 문자
- find
- context
- Mac
- Quartz
- Source
- web.xml
- VirtualBox
- tomcat
- profile
- lsof
- Today
- Total
목록분류 전체보기 (1764)
develog
code // remove style block str = str.replaceAll("",""); // remove script block str = str.replaceAll("",""); // remove html tag str = str.replaceAll("]*>",""); // remove html entity str = str.replaceAll("&[^;]+;",""); before 본문 영역으로 바로가기 after 본문 영역으로 바로가기
public class CollectionUtil { public static void sort(List list, String keyNm) { sort(list, keyNm, false); } public static void sort(List list, String keyNm, boolean descOrder) { Comparator comparator = new ListMapComparator(keyNm); Collections.sort(list, comparator); if (descOrder) { Collections.reverse(list); } }} class ListMapComparator implements Comparator { private String keyNm; public Lis..
Web scraper open sourcehttp://thewebscraping.com/web-scraper-open-source-3/ Web Page Scraping using Javahttp://half-wit4u.blogspot.kr/2011/01/web-scraping-using-java-api.html
public class CollectionUtil { public static void sort(List list, String keyNm) { sort(list, keyNm, false); } public static void sort(List list, String keyNm, boolean descOrder) { Comparator comparator = new ListMapComparator(keyNm); Collections.sort(list, comparator); if (descOrder) { Collections.reverse(list); } } } class ListMapComparator implements Comparator { private String keyNm; public Li..
Java API for RESTful Web Serviceshttp://en.wikipedia.org/wiki/Java_API_for_RESTful_Web_Services
public void sendGet() throws Exception { System.out.println(">> sendGet()"); String requestURL = "http://testdomain.com/test.jsp?enc_id=AA&enc_pw=BB"; URL url = new URL(requestURL); URLConnection urlConn = url.openConnection(); urlConn.setUseCaches(false); urlConn.setDoInput(true); urlConn.setDoOutput(false); BufferedReader br = new BufferedReader(new InputStreamReader(urlConn.getInputStream()))..