org.tynamo.descriptor.extension
Interface TynamoBlob
- All Superinterfaces:
- Serializable
- All Known Implementing Classes:
- TynamoBlobImpl
public interface TynamoBlob
- extends Serializable
Represents an uploaded file.
It's kind of a Tynamo clone of org.apache.tapestry.request.IUploadFile
getFileName
String getFileName()
- Returns:
- the name of the file that was uploaded. This is just the filename portion of the complete path.
setFileName
void setFileName(String fileName)
getFilePath
String getFilePath()
- Returns:
- the complete path, as reported by the client browser. Different browsers report different things here.
setFilePath
void setFilePath(String filePath)
getContentType
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(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-2009. All Rights Reserved.