net.kldp.beat.upload
Class FormFileImpl

java.lang.Object
  extended by java.io.File
      extended by net.kldp.beat.upload.FormFileImpl
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<java.io.File>, FormFile

public class FormFileImpl
extends java.io.File
implements FormFile

See Also:
Serialized Form

Field Summary
private  java.lang.String contentType
           
private  java.lang.String fieldName
           
private  java.io.File file
           
private static long serialVersionUID
           
 
Fields inherited from class java.io.File
pathSeparator, pathSeparatorChar, separator, separatorChar
 
Constructor Summary
FormFileImpl(java.io.File file)
           
 
Method Summary
 java.lang.String getContentType()
          업로드 파일의 컨텐츠 타입을 돌려준다.
 java.lang.String getFieldName()
          Form내에서의 필드명을 돌려준다.
 java.lang.String getFileName()
          업로드 파일명을 돌려준다.
 int getFileSize()
          업로드 파일 크기를 돌려준다.
 java.lang.String getFileSuffix()
          파일 확장자를 돌려준다.
 void setContentType(java.lang.String contentType)
           
 void setFieldName(java.lang.String fieldName)
           
 
Methods inherited from class java.io.File
canExecute, canRead, canWrite, compareTo, createNewFile, createTempFile, createTempFile, delete, deleteOnExit, equals, exists, getAbsoluteFile, getAbsolutePath, getCanonicalFile, getCanonicalPath, getFreeSpace, getName, getParent, getParentFile, getPath, getTotalSpace, getUsableSpace, hashCode, isAbsolute, isDirectory, isFile, isHidden, lastModified, length, list, list, listFiles, listFiles, listFiles, listRoots, mkdir, mkdirs, renameTo, setExecutable, setExecutable, setLastModified, setReadable, setReadable, setReadOnly, setWritable, setWritable, toString, toURI, toURL
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

serialVersionUID

private static final long serialVersionUID
See Also:
Constant Field Values

file

private java.io.File file

fieldName

private java.lang.String fieldName

contentType

private java.lang.String contentType
Constructor Detail

FormFileImpl

public FormFileImpl(java.io.File file)
Method Detail

getFieldName

public java.lang.String getFieldName()
Description copied from interface: FormFile
Form내에서의 필드명을 돌려준다.

Specified by:
getFieldName in interface FormFile
Returns:
String fieldName;

setFieldName

public void setFieldName(java.lang.String fieldName)

setContentType

public void setContentType(java.lang.String contentType)

getContentType

public java.lang.String getContentType()
Description copied from interface: FormFile
업로드 파일의 컨텐츠 타입을 돌려준다.

Specified by:
getContentType in interface FormFile
Returns:
String ContentType

getFileName

public java.lang.String getFileName()
Description copied from interface: FormFile
업로드 파일명을 돌려준다.

Specified by:
getFileName in interface FormFile
Returns:
String fileName

getFileSize

public int getFileSize()
Description copied from interface: FormFile
업로드 파일 크기를 돌려준다.

Specified by:
getFileSize in interface FormFile
Returns:
int fileSize;

getFileSuffix

public java.lang.String getFileSuffix()
Description copied from interface: FormFile
파일 확장자를 돌려준다.

Specified by:
getFileSuffix in interface FormFile
Returns:
String suffix;