public interface ContentManager
| Modifier and Type | Method and Description |
|---|---|
FHandle |
add(io.nessus.Wallet.Address owner,
InputStream input,
Path path)
Add content to IPFS.
|
boolean |
deleteLocalContent(io.nessus.Wallet.Address owner,
Path path)
Delete a plain file from local storage.
|
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.
|
PublicKey |
findRegistation(io.nessus.Wallet.Address addr)
Find the registered public key for a given address.
|
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 |
register(io.nessus.Wallet.Address addr)
Register an address with the system.
|
FHandle |
send(io.nessus.Wallet.Address owner,
String cid,
io.nessus.Wallet.Address target,
Long timeout)
Send content to a target address via IPFS.
|
io.nessus.Blockchain getBlockchain()
IPFSClient getIPFSClient()
PublicKey register(io.nessus.Wallet.Address addr) throws GeneralSecurityException
GeneralSecurityExceptionPublicKey findRegistation(io.nessus.Wallet.Address addr)
FHandle 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
IOExceptionInputStream getLocalContent(io.nessus.Wallet.Address owner, Path path) throws IOException
IOExceptionboolean deleteLocalContent(io.nessus.Wallet.Address owner,
Path path)
throws IOException
IOExceptionCopyright © 2018. All rights reserved.