org.trails.descriptor.extension
Interface ITrailsBlob
- All Superinterfaces:
- java.io.Serializable
- All Known Implementing Classes:
- TrailsBlobImpl
public interface ITrailsBlob
- extends java.io.Serializable
Represents an uploaded file.
It's kind of a Trails clone of IUploadFile
getFileName
java.lang.String getFileName()
- Returns:
- the name of the file that was uploaded. This is just the filename portion of the complete path.
setFileName
void setFileName(java.lang.String fileName)
getFilePath
java.lang.String getFilePath()
- Returns:
- the complete path, as reported by the client browser. Different browsers report different things here.
setFilePath
void setFilePath(java.lang.String filePath)
getContentType
java.lang.String getContentType()
- Returns:
- the MIME type specified when the file was uploaded. May return null if the content type is not known.
setContentType
void setContentType(java.lang.String contentType)
getBytes
byte[] getBytes()
- Returns:
- the actual file contents
setBytes
void setBytes(byte[] bytes)
reset
void reset()
- Clean and reset the internal state to leave it as a newly created object.
Copyright © 2004-2008. All Rights Reserved.