public class DefaultIPFSClient extends Object implements IPFSClient
ENV_IPFS_GATEWAY_ADDR, ENV_IPFS_GATEWAY_PORT, ENV_IPFS_JSONRPC_ADDR, ENV_IPFS_JSONRPC_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) |
io.ipfs.multiaddr.MultiAddress |
getAPIAddress() |
boolean |
hasConnection() |
String |
version() |
public io.ipfs.multiaddr.MultiAddress getAPIAddress()
getAPIAddress in interface IPFSClientpublic 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.