public interface ContentManager
| Modifier and Type | Method and Description |
|---|---|
FHandle |
add(io.nessus.Wallet.Address owner,
InputStream input,
Path path)
Add content to IPFS.
|
PublicKey |
findAddressRegistation(io.nessus.Wallet.Address addr)
Find the registered key for a given address.
|
List<FHandle> |
findIPFSContent(io.nessus.Wallet.Address owner,
Long timeout)
Find registered IPFS content for a given address.
|
List<FHandle> |
findLocalContent(io.nessus.Wallet.Address owner)
Find local content for a given address.
|
FHandle |
findLocalContent(io.nessus.Wallet.Address owner,
Path path)
Find local content for a given address and path.
|
FHandle |
get(io.nessus.Wallet.Address owner,
String cid,
Path path,
Long timeout)
Get content from IPFS.
|
io.nessus.Blockchain |
getBlockchain()
Get the Blockchain
|
IPFSClient |
getIPFSClient()
Get the IPFS client
|
InputStream |
getLocalContent(io.nessus.Wallet.Address owner,
Path path)
Show content of a plain file from local storage.
|
PublicKey |
registerAddress(io.nessus.Wallet.Address addr)
Register a public address.
|
List<String> |
removeIPFSContent(io.nessus.Wallet.Address owner,
List<String> cids)
Unregister a IPFS content.
|
boolean |
removeLocalContent(io.nessus.Wallet.Address owner,
Path path)
Remove a plain file content from local storage.
|
FHandle |
send(io.nessus.Wallet.Address owner,
String cid,
io.nessus.Wallet.Address target,
Long timeout)
Send content to a target address via IPFS.
|
PublicKey |
unregisterAddress(io.nessus.Wallet.Address addr)
Unregister a public address.
|
io.nessus.Blockchain getBlockchain()
IPFSClient getIPFSClient()
PublicKey registerAddress(io.nessus.Wallet.Address addr) throws GeneralSecurityException
GeneralSecurityExceptionPublicKey findAddressRegistation(io.nessus.Wallet.Address addr)
PublicKey unregisterAddress(io.nessus.Wallet.Address addr)
List<String> removeIPFSContent(io.nessus.Wallet.Address owner, List<String> cids) throws IOException
IOExceptionFHandle add(io.nessus.Wallet.Address owner, InputStream input, Path path) throws IOException, GeneralSecurityException
IOExceptionGeneralSecurityExceptionFHandle get(io.nessus.Wallet.Address owner, String cid, Path path, Long timeout) throws IOException, GeneralSecurityException
IOExceptionGeneralSecurityExceptionFHandle send(io.nessus.Wallet.Address owner, String cid, io.nessus.Wallet.Address target, Long timeout) throws IOException, GeneralSecurityException
IOExceptionGeneralSecurityExceptionList<FHandle> findIPFSContent(io.nessus.Wallet.Address owner, Long timeout) throws IOException
IOExceptionList<FHandle> findLocalContent(io.nessus.Wallet.Address owner) throws IOException
IOExceptionFHandle findLocalContent(io.nessus.Wallet.Address owner, Path path) throws IOException
IOExceptionInputStream getLocalContent(io.nessus.Wallet.Address owner, Path path) throws IOException
IOExceptionboolean removeLocalContent(io.nessus.Wallet.Address owner,
Path path)
throws IOException
IOExceptionCopyright © 2018. All rights reserved.