com.geekologue.md4j.dto
Class File
java.lang.Object
com.geekologue.md4j.dto.File
public class File
- extends java.lang.Object
Bundle of a file and information for it in a single object usefull for data
transfer. Used as a DTO in web to business communication instead of framework specific classes (e.g. Struts' FormFile)
- Author:
- manos
Constructor Summary |
File()
Default constructor |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
File
public File()
- Default constructor
getContentType
public final java.lang.String getContentType()
- Returns:
- Returns the contentType.
setContentType
public final void setContentType(java.lang.String contentType)
- Parameters:
contentType
- The contentType to set.
getFileName
public final java.lang.String getFileName()
- Returns:
- Returns the fileName.
setFileName
public final void setFileName(java.lang.String fileName)
- Parameters:
fileName
- The fileName to set.
getFileSize
public final int getFileSize()
- Returns:
- Returns the fileSize.
setFileSize
public final void setFileSize(int fileSize)
- Parameters:
fileSize
- The fileSize to set.
getInputStream
public final java.io.InputStream getInputStream()
- Returns:
- Returns the inputStream.
setInputStream
public final void setInputStream(java.io.InputStream inputStream)
- Parameters:
inputStream
- The inputStream to set.
Copyright © 2003-2007 Manos Batsis. All Rights Reserved.