/**
* Container class for file entry data.
- *
+ *
* @see ClientPutComplexDir#addFileEntry(FileEntry)
* @author David ‘Bombe’ Roden <bombe@freenetproject.org>
*/
/**
* Creates a new file entry with the given name and upload source.
- *
+ *
* @param name
* The name of the file
* @param uploadFrom
/**
* Creates a new file entry for a file that should be transmitted to the
* node in the payload of the message.
- *
+ *
* @param name
* The name of the file
* @param contentType
/**
* Creates a new file entry for a file that should be uploaded from disk.
- *
+ *
* @param name
* The name of the file
* @param filename
/**
* Creates a new file entry for a file that redirects to another URI.
- *
+ *
* @param name
* The name of the file
* @param targetURI
/**
* Returns the fields for this file entry.
- *
+ *
* @return The fields for this file entry
*/
abstract Map<String, String> getFields();
/**
* A file entry for a file that should be transmitted in the payload of the
* {@link ClientPutComplexDir} message.
- *
+ *
* @author David ‘Bombe’ Roden <bombe@freenetproject.org>
*/
static class DirectFileEntry extends FileEntry {
/**
* Creates a new direct file entry with content type auto-detection.
- *
+ *
* @param name
* The name of the file
* @param length
/**
* Creates a new direct file entry.
- *
+ *
* @param name
* The name of the file
* @param contentType
/**
* Returns the input stream of the file.
- *
+ *
* @return The input stream of the file
*/
InputStream getInputStream() {
/**
* A file entry for a file that should be uploaded from the disk.
- *
+ *
* @author David ‘Bombe’ Roden <bombe@freenetproject.org>
*/
static class DiskFileEntry extends FileEntry {
/**
* Creates a new disk file entry.
- *
+ *
* @param name
* The name of the file
* @param filename
/**
* Creates a new disk file entry.
- *
+ *
* @param name
* The name of the file
* @param filename
/**
* A file entry for a file that redirects to another URI.
- *
+ *
* @author David ‘Bombe’ Roden <bombe@freenetproject.org>
*/
static class RedirectFileEntry extends FileEntry {
/**
* Creates a new redirect file entry.
- *
+ *
* @param name
* The name of the file
* @param targetURI