X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=src%2Fnet%2Fpterodactylus%2Ffcp%2FFileEntry.java;h=f939d78c7725787e33c9c007c1d1ed541498d6d5;hb=a655177a4605236e866ac7e0ce32f7cb5289cbc4;hp=baa0b6d6de3b359c2531c2d7300e937680158b07;hpb=64c2c9bd494f3ea9d1ae84f8d86827dea025bee6;p=jFCPlib.git
diff --git a/src/net/pterodactylus/fcp/FileEntry.java b/src/net/pterodactylus/fcp/FileEntry.java
index baa0b6d..f939d78 100644
--- a/src/net/pterodactylus/fcp/FileEntry.java
+++ b/src/net/pterodactylus/fcp/FileEntry.java
@@ -1,6 +1,5 @@
/*
- * jSite2 - FileEntry.java -
- * Copyright © 2008 David Roden
+ * jFCPlib - FileEntry.java - Copyright © 2008 David Roden
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -25,7 +24,7 @@ import java.util.Map;
/**
* Container class for file entry data.
- *
+ *
* @see ClientPutComplexDir#addFileEntry(FileEntry)
* @author David âBombeâ Roden <bombe@freenetproject.org>
*/
@@ -39,7 +38,7 @@ public abstract class FileEntry {
/**
* Creates a new file entry with the given name and upload source.
- *
+ *
* @param name
* The name of the file
* @param uploadFrom
@@ -53,12 +52,12 @@ public abstract class FileEntry {
/**
* 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
- * The content type of the file, or null
to let
- * the node auto-detect it
+ * The content type of the file, or null
to let the
+ * node auto-detect it
* @param length
* The length of the file
* @param dataInputStream
@@ -71,14 +70,14 @@ public abstract class FileEntry {
/**
* Creates a new file entry for a file that should be uploaded from disk.
- *
+ *
* @param name
* The name of the file
* @param filename
* The name of the file on disk
* @param contentType
- * The content type of the file, or null
to let
- * the node auto-detect it
+ * The content type of the file, or null
to let the
+ * node auto-detect it
* @param length
* The length of the file, or -1
to not specify a
* size
@@ -90,7 +89,7 @@ public abstract class FileEntry {
/**
* Creates a new file entry for a file that redirects to another URI.
- *
+ *
* @param name
* The name of the file
* @param targetURI
@@ -103,7 +102,7 @@ public abstract class FileEntry {
/**
* Returns the fields for this file entry.
- *
+ *
* @return The fields for this file entry
*/
abstract Map getFields();
@@ -111,7 +110,7 @@ public abstract class FileEntry {
/**
* 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 {
@@ -127,7 +126,7 @@ public abstract class FileEntry {
/**
* Creates a new direct file entry with content type auto-detection.
- *
+ *
* @param name
* The name of the file
* @param length
@@ -141,12 +140,12 @@ public abstract class FileEntry {
/**
* Creates a new direct file entry.
- *
+ *
* @param name
* The name of the file
* @param contentType
- * The content type of the file, or null
to
- * let the node auto-detect it
+ * The content type of the file, or null
to let
+ * the node auto-detect it
* @param length
* The length of the file
* @param inputStream
@@ -176,7 +175,7 @@ public abstract class FileEntry {
/**
* Returns the input stream of the file.
- *
+ *
* @return The input stream of the file
*/
InputStream getInputStream() {
@@ -187,7 +186,7 @@ public abstract class FileEntry {
/**
* 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 {
@@ -203,7 +202,7 @@ public abstract class FileEntry {
/**
* Creates a new disk file entry.
- *
+ *
* @param name
* The name of the file
* @param filename
@@ -217,14 +216,14 @@ public abstract class FileEntry {
/**
* Creates a new disk file entry.
- *
+ *
* @param name
* The name of the file
* @param filename
* The name of the on-disk file
* @param contentType
- * The content type of the file, or null
to
- * let the node auto-detect it
+ * The content type of the file, or null
to let
+ * the node auto-detect it
* @param length
* The length of the file
*/
@@ -257,7 +256,7 @@ public abstract class FileEntry {
/**
* A file entry for a file that redirects to another URI.
- *
+ *
* @author David âBombeâ Roden <bombe@freenetproject.org>
*/
static class RedirectFileEntry extends FileEntry {
@@ -267,7 +266,7 @@ public abstract class FileEntry {
/**
* Creates a new redirect file entry.
- *
+ *
* @param name
* The name of the file
* @param targetURI