org.codelabor.system.file.util
Class UploadUtils

java.lang.Object
  extended by org.codelabor.system.file.util.UploadUtils

public class UploadUtils
extends java.lang.Object

업로드 유티릴티

Author:
Shin Sang-jae

Field Summary
static org.slf4j.Logger logger
          로거
 
Constructor Summary
UploadUtils()
           
 
Method Summary
static void processFile(RepositoryType repositoryType, java.io.InputStream inputStream, FileDTO fileDTO)
          파일을 처리한다.
static void processFile(RepositoryType repositoryType, java.io.InputStream inputStream, java.util.List<FileDTO> fileDTOList)
          파일을 처리한다.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logger

public static final org.slf4j.Logger logger
로거

Constructor Detail

UploadUtils

public UploadUtils()
Method Detail

processFile

public static void processFile(RepositoryType repositoryType,
                               java.io.InputStream inputStream,
                               java.util.List<FileDTO> fileDTOList)
                        throws java.lang.Exception
파일을 처리한다.
파일 저장 방식이 FILE_SYSTEM인 경우, 디스크에 저장하고 DATABASE인 경우 byte[]로 변환하여 DTO에 담는다.

Parameters:
repositoryType - 파일 저장 방식
inputStream - 입력 스트림
fileDTOList - 파일 DTO List
Throws:
java.lang.Exception - 예외

processFile

public static void processFile(RepositoryType repositoryType,
                               java.io.InputStream inputStream,
                               FileDTO fileDTO)
                        throws java.lang.Exception
파일을 처리한다.
파일 저장 방식이 FILE_SYSTEM인 경우, 디스크에 저장하고 DATABASE인 경우 byte[]로 변환하여 DTO에 담는다.

Parameters:
repositoryType - 파일 저장 방식
inputStream - 입력 스트림
fileDTO - 파일 DTO
Throws:
java.lang.Exception - 예외


Copyright © 2011 CODELABOR. All Rights Reserved.