목록2017/04/06 (3)
낭만 프로그래머
프로그램을 하다보면 일반 문자열을 특정 형태의 문자열로 변환해야 할 때가 있다.예를 들면 Json 경우 : , -> \, 또는 ' -> \' 과 같이 문자열이 변환Html 경우 : -> > 과 같이 문자열을 변환 이를 위해서 replace를 계속 사용해야 하는데 쉽게 해주는 라이브러리가 StringEscapeUtils 이다 아래는 구현된 메소드들 이다. 이름만 봐도 뭐하는 것인지 알 것이다 escapeCsv(String input) escapeEcmaScript(String input) escapeHtml3(String input) escapeHtml4(String input) escapeJava(String input) escapeJson(String input) escapeXml..
참조 : http://svn.apache.org/repos/asf/poi/trunk/src/examples/src/org/apache/poi/xssf/usermodel/examples/BigGridDemo.java /* ==================================================================== Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. Th..
apache.commons.exec : 외부 실행 파일을 간편하게 실행하게 해주는 라이브러리 1. 라이브러리 다운로드 1.1. https://commons.apache.org/proper/commons-exec/ 접속하여 Download 클릭 1.2. commons-exec.1.3.bin.zip 클릭하여 다운로드 2. 예제 2.1. 아크로뱃을 실행 String line = "AcroRd32.exe /p /h " + file.getAbsolutePath(); CommandLine cmdLine = CommandLine.parse(line); DefaultExecutor executor = new DefaultExecutor(); executor.setExitValue(1); int exitValue = e..