org.tynamo.blob
Class TynamoBlobImpl

java.lang.Object
  extended by org.tynamo.blob.TynamoBlobImpl
All Implemented Interfaces:
Serializable, TynamoBlob

public class TynamoBlobImpl
extends Object
implements TynamoBlob

See Also:
Serialized Form

Constructor Summary
TynamoBlobImpl()
           
 
Method Summary
 byte[] getBytes()
           
 String getContentType()
           
 String getFileName()
           
 String getFilePath()
           
 void reset()
          Clean and reset the internal state to leave it as a newly created object.
 void setBytes(byte[] bytes)
           
 void setContentType(String contentType)
           
 void setFileName(String fileName)
           
 void setFilePath(String filePath)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TynamoBlobImpl

public TynamoBlobImpl()
Method Detail

getFileName

public String getFileName()
Specified by:
getFileName in interface TynamoBlob
Returns:
the name of the file that was uploaded. This is just the filename portion of the complete path.

setFileName

public void setFileName(String fileName)
Specified by:
setFileName in interface TynamoBlob

getFilePath

public String getFilePath()
Specified by:
getFilePath in interface TynamoBlob
Returns:
the complete path, as reported by the client browser. Different browsers report different things here.

setFilePath

public void setFilePath(String filePath)
Specified by:
setFilePath in interface TynamoBlob

getContentType

public String getContentType()
Specified by:
getContentType in interface TynamoBlob
Returns:
the MIME type specified when the file was uploaded. May return null if the content type is not known.

setContentType

public void setContentType(String contentType)
Specified by:
setContentType in interface TynamoBlob

getBytes

public byte[] getBytes()
Specified by:
getBytes in interface TynamoBlob
Returns:
the actual file contents

setBytes

public void setBytes(byte[] bytes)
Specified by:
setBytes in interface TynamoBlob

reset

public void reset()
Description copied from interface: TynamoBlob
Clean and reset the internal state to leave it as a newly created object.

Specified by:
reset in interface TynamoBlob


Copyright © 2004-2012. All Rights Reserved.