Use execute() to trigger execution of commands
[jFCPlib.git] / src / main / java / net / pterodactylus / fcp / quelaton / ClientPutCommand.java
1 package net.pterodactylus.fcp.quelaton;
2
3 import java.io.File;
4 import java.io.InputStream;
5 import java.util.Optional;
6
7 import net.pterodactylus.fcp.Key;
8
9 /**
10  * FCP command that inserts data into Freenet.
11  *
12  * @author <a href="mailto:bombe@pterodactylus.net">David ‘Bombe’ Roden</a>
13  */
14 public interface ClientPutCommand {
15
16         ClientPutCommand named(String targetFilename);
17         WithUri<Executable<Optional<Key>>> redirectTo(String uri);
18         WithUri<Executable<Optional<Key>>> from(File file);
19         WithLength<WithUri<Executable<Optional<Key>>>> from(InputStream inputStream);
20
21 }