-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
toad at freenetproject.org a ?crit :
> Author: toad
> Date: 2008-08-05 20:01:18 +0000 (Tue, 05 Aug 2008)
> New Revision: 21627
>
> Modified:
> trunk/freenet/src/freenet/client/HighLevelSimpleClient.java
> trunk/freenet/src/freenet/client/HighLevelSimpleClientImpl.java
> Log:
> Non-blocking inserts too
> + public void insert(InsertBlock insert, boolean getCHKOnly, String
> filenameHint, boolean isMetadata, InsertContext ctx, ClientCallback cb)
> throws InsertException {
> + ClientPutter put = new ClientPutter(cb, insert.getData(),
> insert.desiredURI, insert.clientMetadata,
> + ctx, core.requestStarters.chkPutScheduler,
> core.requestStarters.sskPutScheduler, priorityClass,
> + getCHKOnly, isMetadata, this, null,
> filenameHint, false);
> + put.start(false);
> + }
Can you give an example on how I should use it ? To feed it the
InsertBlock, I have to create a Bucket, which I didn't find the
implementation...
Typically, I want to feed it with an OutputStream (or a file) and get it
inserted in an SSK.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFInDJAmY5qNqKdYw0RAkjkAJ4vnVK8smlq+pmHYYdn+DGwF2TaywCfQP5/
qGXmK3O/sc3AcvGMxegns+s=
=C5Ku
-----END PGP SIGNATURE-----