net.sf.mmapps.commons.util
Class UploadUtil.BinaryData

java.lang.Object
  extended by net.sf.mmapps.commons.util.UploadUtil.BinaryData
Enclosing class:
UploadUtil

public static class UploadUtil.BinaryData
extends java.lang.Object


Constructor Summary
UploadUtil.BinaryData()
           
 
Method Summary
 java.lang.String getContentType()
           
 byte[] getData()
          get the binary data cached by this class
 java.io.InputStream getInputStream()
           
 int getLength()
           
 java.lang.String getOriginalFileName()
          get original file name. the return value only contains the file name, the directory path is not include in return value.
 java.lang.String getOriginalFilePath()
          get original file name, it is the path in the client in which upload the file.
 void setContentType(java.lang.String contentType)
           
 void setData(byte[] data)
          set the binary data into this class to cache.
 void setOriginalFilePath(java.lang.String originalFilePath)
          set original file name, it is the path in the client in which upload the file.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UploadUtil.BinaryData

public UploadUtil.BinaryData()
Method Detail

setData

public void setData(byte[] data)
set the binary data into this class to cache.

Parameters:
data -

getData

public byte[] getData()
get the binary data cached by this class

Returns:
binary data

getOriginalFilePath

public java.lang.String getOriginalFilePath()
get original file name, it is the path in the client in which upload the file.

Returns:
Returns the originalFilePath.

setOriginalFilePath

public void setOriginalFilePath(java.lang.String originalFilePath)
set original file name, it is the path in the client in which upload the file.

Parameters:
originalFilePath - The originalFilePath to set.

getOriginalFileName

public java.lang.String getOriginalFileName()
get original file name. the return value only contains the file name, the directory path is not include in return value.

Returns:
original file name

getLength

public int getLength()

getContentType

public java.lang.String getContentType()

setContentType

public void setContentType(java.lang.String contentType)

getInputStream

public java.io.InputStream getInputStream()


Copyright © 2003-2006 mmapps. All Rights Reserved.