org.trails.component.blob
Class TrailsBlobImpl

java.lang.Object
  extended by org.trails.component.blob.TrailsBlobImpl
All Implemented Interfaces:
java.io.Serializable, ITrailsBlob

public class TrailsBlobImpl
extends java.lang.Object
implements ITrailsBlob

See Also:
Serialized Form

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

Constructor Detail

TrailsBlobImpl

public TrailsBlobImpl()
Method Detail

getFileName

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

setFileName

public void setFileName(java.lang.String fileName)
Specified by:
setFileName in interface ITrailsBlob

getFilePath

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

setFilePath

public void setFilePath(java.lang.String filePath)
Specified by:
setFilePath in interface ITrailsBlob

getContentType

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

setContentType

public void setContentType(java.lang.String contentType)
Specified by:
setContentType in interface ITrailsBlob

getBytes

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

setBytes

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

reset

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

Specified by:
reset in interface ITrailsBlob


Copyright © 2004-2008. All Rights Reserved.