CATEGORY

superman (30)
프로그래밍 (17)
jsp (2)
java (4)
Database (2)
WAS (0)
WEB (4)
LINUX (3)
jQuery (2)
개발 프로그램 (0)
안드로이드 (0)
Utility (1)
Mail (1)
개인정보 (1)
Complete Program (0)
Entertain (6)
IT news (2)
Oracle (0)
컴퓨터 (1)

RECENT ARTICLE

RECENT COMMENT

RECENT TRACKBACK

ARCHIVE



  1. 2010.12.28
    현재시간 생성
  2. 2010.12.28
    CLOB 데이터 처리
  3. 2010.12.28
    Junit 사용법
  4. 2010.12.28
    GC 로그 생성 및 HPJtune

간단한 현재시간 찍기
  long startTime = System.currentTimeMillis();    
  System.out.println("Job 시작 시간 : "+ new Timestamp(startTime));

현재시간 가져오기 : SimpleDateFormat 이용
 Calendar calendar = Calendar.getInstance();
 SimpleDateFormat dateFormat = new SimpleDateFormat("yyyyMMddHHmmssSSS");
 System.out.println("현재 시간 : " + dateFormat.format(calendar.getTime())); 

'프로그래밍 > java' 카테고리의 다른 글

CLOB 데이터 처리  (0) 2010.12.28
Junit 사용법  (0) 2010.12.28
GC 로그 생성 및 HPJtune  (0) 2010.12.28
And

public static String readClobData(Reader reader) throws IOException {
        StringBuffer data = new StringBuffer();
        char[] buf = new char[1024];
        int cnt = 0;
        if (null != reader) {
            while ( (cnt = reader.read(buf)) != -1) {
                data.append(buf, 0, cnt);
               
            }
        }
        return data.toString();
    }


if(rs.next()){
   String clobData = readClobData(rs.getCharacterStream("CONTENT"));
   content = new String(clobData.getBytes("utf-8"), "utf-8");
   actionForm.setContent(content);
  }
  //GET LOB DATA

'프로그래밍 > java' 카테고리의 다른 글

현재시간 생성  (0) 2010.12.28
Junit 사용법  (0) 2010.12.28
GC 로그 생성 및 HPJtune  (0) 2010.12.28
And
문서참조

'프로그래밍 > java' 카테고리의 다른 글

현재시간 생성  (0) 2010.12.28
CLOB 데이터 처리  (0) 2010.12.28
GC 로그 생성 및 HPJtune  (0) 2010.12.28
And

* XLogGC 생성
-Xloggc="D:/gc_log.log"

* HP Jtune 사용
java -cp HPjtune.jar HPjtune

참고 사이트
1) http://blog.naver.com/econopark?Redirect=Log&logNo=110010056656



'프로그래밍 > java' 카테고리의 다른 글

현재시간 생성  (0) 2010.12.28
CLOB 데이터 처리  (0) 2010.12.28
Junit 사용법  (0) 2010.12.28
And