public class DefaultIPFSClient extends Object implements IPFSClient
ENV_IPFS_API_HOST, ENV_IPFS_API_PORT, ENV_IPFS_GATEWAY_HOST, ENV_IPFS_GATEWAY_PORT| Constructor and Description |
|---|
DefaultIPFSClient() |
DefaultIPFSClient(String host,
Integer port) |
| Modifier and Type | Method and Description |
|---|---|
List<String> |
add(Path path) |
String |
addSingle(Path path) |
InputStream |
cat(String hash) |
Future<Path> |
get(String hash,
Path outdir) |
boolean |
hasConnection() |
String |
version() |
public boolean hasConnection()
hasConnection in interface IPFSClientpublic List<String> add(Path path) throws IOException
add in interface IPFSClientIOExceptionpublic String addSingle(Path path) throws IOException
addSingle in interface IPFSClientIOExceptionpublic InputStream cat(String hash) throws IOException
cat in interface IPFSClientIOExceptionpublic String version() throws IOException
version in interface IPFSClientIOExceptionCopyright © 2018. All rights reserved.