public interface SimpleFileContainer
Modifier and Type | Method and Description |
---|---|
void |
attachFile(java.io.File file)
Called to attach a file to the container
|
java.util.Date |
getCreated()
Returns the creation data of the container
|
java.io.InputStream |
getFileData(java.lang.String fileName)
Returns the data of a file in this container as stream
|
java.util.List |
getFileNames()
Returns the names of all files in this container
|
long |
getFileSize(java.lang.String fileName)
Returns the size of a file in bytes
|
java.util.Date |
getLastModified()
Returns the date of the last modification of this container
|
java.lang.String |
getName()
Returns the name of this container
|
boolean |
hasFile(java.lang.String file)
Returns if a file of the given name is available
|
void |
removeFile(java.lang.String fileName)
Tells the container to remove a file
|
java.lang.String getName()
java.util.List getFileNames()
boolean hasFile(java.lang.String file)
void removeFile(java.lang.String fileName) throws WGAPIException
fileName
- The file to removeWGAPIException
void attachFile(java.io.File file) throws WGAPIException
file
- The file to attach.WGAPIException
java.io.InputStream getFileData(java.lang.String fileName) throws WGAPIException
fileName
- The file to serverWGAPIException
long getFileSize(java.lang.String fileName) throws WGAPIException
fileName
- The fileWGAPIException
java.util.Date getCreated()
java.util.Date getLastModified()