za.org.coefficient.util.common
Class UploadedFile

java.lang.Object
  extended by za.org.coefficient.util.common.UploadedFile
All Implemented Interfaces:
java.io.Serializable

public class UploadedFile
extends java.lang.Object
implements java.io.Serializable

An uploaded file.

See Also:
Serialized Form

Field Summary
private  byte[] content
           
private  java.lang.String contentType
           
private  java.lang.String filename
           
 
Constructor Summary
UploadedFile(java.lang.String contentType, byte[] content, java.lang.String filepath)
           
 
Method Summary
 byte[] getContent()
           
 java.lang.String getContentType()
           
 java.lang.String getFilename()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

contentType

private java.lang.String contentType

filename

private java.lang.String filename

content

private byte[] content
Constructor Detail

UploadedFile

public UploadedFile(java.lang.String contentType,
                    byte[] content,
                    java.lang.String filepath)
Parameters:
contentType - the file content type
content - the file chunk of bytes
Method Detail

getContent

public byte[] getContent()

getContentType

public java.lang.String getContentType()

getFilename

public java.lang.String getFilename()


Copyright CSIR. All Rights Reserved.