[자바] 문자에서 숫자 한글만 추출
public static String getOnlyDigit(String str){StringBuffer sb=new StringBuffer();if(str!=null && str.length()!=0){Pattern p = Pattern.complie("[0-9]");Matcher m = p.matcher(str);while(m.find()){sb.append(m.group());}}return sb.toString();} 한글만은 Pattern p = Pattern.complie("[가-힣]");
자바(Java)/자바UTIL
2018. 10. 23. 09:56
자바 파일 압축 방법 메소드
public static boolean createZipFile(String sourceFile, String createZip) throws IOException{boolean result=true;byte[] buf=new byte[1024];try{ZipOutputStream zipOut=new ZipOutputStream(new FileOutputStream(createZip));File inFile=new File(sourceFile);FileInputStream in=new FileInputStream(inFile);zipOut.putNextEntry(new ZipEntry(inFile.getName()));int len;while((len=in.read(buf))>0){zipOut.write..
자바(Java)/자바UTIL
2018. 10. 23. 09:37
공지사항
최근에 올라온 글
최근에 달린 댓글
- Total
- Today
- Yesterday
링크
TAG
- 스크래핑
- Python
- xe애드온
- ocjap
- JDBC
- XE
- EC
- ocajp
- 파이썬
- proc
- 문자열
- 자바 smtp
- 이클립스
- 인포믹스
- 라이믹스 모듈
- php
- esql
- 플러터
- webix
- KG
- XE3
- 오라클
- C언어
- 포인터
- xe addon
- C
- MySQL
- 자바
- 파싱
- 프로씨
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
글 보관함