X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=src%2Fnet%2Fpterodactylus%2Ffcp%2FPersistentPutDir.java;h=47c3d8d0da19d9bb18bfb500b020235e6997e694;hb=dd605aee444057a874fabf7fb0045b8448b0d1cd;hp=569ca21276b527d6430cf80564aec8589898fc85;hpb=9dde952ed682e931c1eae508159e72dd59addb12;p=jFCPlib.git diff --git a/src/net/pterodactylus/fcp/PersistentPutDir.java b/src/net/pterodactylus/fcp/PersistentPutDir.java index 569ca21..47c3d8d 100644 --- a/src/net/pterodactylus/fcp/PersistentPutDir.java +++ b/src/net/pterodactylus/fcp/PersistentPutDir.java @@ -1,6 +1,5 @@ /* - * jSite2 - PersistentPutDir.java - - * Copyright © 2008 David Roden + * jFCPlib - PersistentPutDir.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 @@ -23,14 +22,14 @@ package net.pterodactylus.fcp; * A “PersistentPutDir” is the response to a {@link ClientPutDiskDir} message. * It is also sent as a possible response to a {@link ListPersistentRequests} * message. - * + * * @author David ‘Bombe’ Roden <bombe@freenetproject.org> */ public class PersistentPutDir extends BaseMessage { /** * Creates a new “PersistentPutDir” message that wraps the received message. - * + * * @param receivedMessage * The received message */ @@ -40,7 +39,7 @@ public class PersistentPutDir extends BaseMessage { /** * Returns the identifier of the request. - * + * * @return The identifier of the request */ public String getIdentifier() { @@ -49,7 +48,7 @@ public class PersistentPutDir extends BaseMessage { /** * Returns the URI of the request. - * + * * @return The URI of the request */ public String getURI() { @@ -58,7 +57,7 @@ public class PersistentPutDir extends BaseMessage { /** * Returns the verbosity of the request. - * + * * @return The verbosity of the request */ public Verbosity getVerbosity() { @@ -67,7 +66,7 @@ public class PersistentPutDir extends BaseMessage { /** * Returns the priority of the request. - * + * * @return The priority of the request */ public Priority getPriority() { @@ -76,7 +75,7 @@ public class PersistentPutDir extends BaseMessage { /** * Returns whether the request is on the global queue. - * + * * @return true if the request is on the global queue, * false if it is on the client-local queue */ @@ -86,7 +85,7 @@ public class PersistentPutDir extends BaseMessage { /** * Returns the maximum number of retries for failed blocks. - * + * * @return The maximum number of retries, or -1 for endless * retries, or -2 if the number could not be parsed */ @@ -96,15 +95,13 @@ public class PersistentPutDir extends BaseMessage { /** * Returns the number of files in the request. - * + * * @return The number of files in the request */ public int getFileCount() { int fileCount = -1; - while (getField("Files." + ++fileCount + ".UploadFrom") != null) { /* - * do - * nothing. - */ + while (getField("Files." + ++fileCount + ".UploadFrom") != null) { + /* do nothing. */ } return fileCount; } @@ -112,7 +109,7 @@ public class PersistentPutDir extends BaseMessage { /** * Returns the name of the file at the given index. The index is counted * from 0. - * + * * @param fileIndex * The index of the file * @return The name of the file at the given index @@ -124,7 +121,7 @@ public class PersistentPutDir extends BaseMessage { /** * Returns the length of the file at the given index. The index is counted * from 0. - * + * * @param fileIndex * The index of the file * @return The length of the file at the given index @@ -136,7 +133,7 @@ public class PersistentPutDir extends BaseMessage { /** * Returns the upload source of the file at the given index. The index is * counted from 0. - * + * * @param fileIndex * The index of the file * @return The upload source of the file at the given index @@ -148,7 +145,7 @@ public class PersistentPutDir extends BaseMessage { /** * Returns the content type of the file at the given index. The index is * counted from 0. - * + * * @param fileIndex * The index of the file * @return The content type of the file at the given index @@ -161,7 +158,7 @@ public class PersistentPutDir extends BaseMessage { * Returns the filename of the file at the given index. This value is only * returned if {@link #getFileUploadFrom(int)} is returning * {@link UploadFrom#disk}. The index is counted from 0. - * + * * @param fileIndex * The index of the file * @return The filename of the file at the given index