public class NamedResource extends Resource
Modifier and Type | Field and Description |
---|---|
protected String |
_filename
the file's name
|
_buffer, _encoding, _lastModificationDate, _mimeType, _repositoryData, _tmpFile
Constructor and Description |
---|
NamedResource()
Default constructor
|
NamedResource(RepositoryData repositoryData)
Constructor to use when reading the file from the repository
|
Modifier and Type | Method and Description |
---|---|
String |
getFilename()
Retrieves the binary's file name
|
void |
setFilename(String filename)
Sets the binary's file name
|
closeOutputStream, getEncoding, getInputStream, getLastModificationDate, getLength, getMimeType, getOutputStream, setEncoding, setInputStream, setLastModificationDate, setMimeType
public NamedResource()
public NamedResource(RepositoryData repositoryData)
repositoryData
- the repository data containing the file's datapublic String getFilename()
public void setFilename(String filename)
filename
- the file name to set