ClientPutCommand named(String targetFilename);
WithUri<Optional<Key>> redirectTo(String uri);
WithUri<Optional<Key>> from(File file);
- Lengthed<WithUri<Optional<Key>>> from(InputStream inputStream);
+ WithLength<WithUri<Optional<Key>>> from(InputStream inputStream);
}
}
@Override
- public Lengthed<WithUri<Optional<Key>>> from(InputStream inputStream) {
+ public WithLength<WithUri<Optional<Key>>> from(InputStream inputStream) {
payload.set(Objects.requireNonNull(inputStream, "inputStream must not be null"));
return this::length;
}
+++ /dev/null
-package net.pterodactylus.fcp.quelaton;
-
-/**
- * An intermediary interface for FCP commands that require a length parameter.
- *
- * @param <R>
- * The type of the next command part
- * @author <a href="mailto:bombe@freenetproject.org">David ‘Bombe’ Roden</a>
- */
-public interface Lengthed<R> {
-
- R length(long length);
-
-}
--- /dev/null
+package net.pterodactylus.fcp.quelaton;
+
+/**
+ * An intermediary interface for FCP commands that require a length parameter.
+ *
+ * @param <R>
+ * The type of the next command part
+ * @author <a href="mailto:bombe@freenetproject.org">David ‘Bombe’ Roden</a>
+ */
+public interface WithLength<R> {
+
+ R length(long length);
+
+}