@@ -37,7 +37,6 @@ public enum PinType {all, direct, indirect, recursive}
3737 public final Swarm swarm = new Swarm ();
3838 public final Bootstrap bootstrap = new Bootstrap ();
3939 public final Block block = new Block ();
40-
4140 public final CidAPI cid = new CidAPI ();
4241 public final Dag dag = new Dag ();
4342 public final Diag diag = new Diag ();
@@ -267,6 +266,7 @@ public Map ls() throws IOException {
267266 return retrieveMap ("log/ls" );
268267 }
269268 }
269+
270270 public class MultibaseAPI {
271271 public String decode (NamedStreamable encoded_file ) {
272272 Multipart m = new Multipart (protocol + "://" + host + ":" + port + version +
@@ -599,7 +599,8 @@ public String chcid(String path) throws IOException {
599599 }
600600
601601 public String cp (String source , String dest , boolean parents ) throws IOException {
602- return retrieveString ("files/cp?arg=" + URLEncoder .encode (source , "UTF-8" ) + "&arg=" + URLEncoder .encode (dest , "UTF-8" ) + "&parents=" + parents );
602+ return retrieveString ("files/cp?arg=" + URLEncoder .encode (source , "UTF-8" ) + "&arg=" +
603+ URLEncoder .encode (dest , "UTF-8" ) + "&parents=" + parents );
603604 }
604605
605606 public Map flush () throws IOException {
@@ -632,11 +633,13 @@ public String mkdir(String path, boolean parents) throws IOException {
632633
633634 public String mkdir (String path , boolean parents , int cidVersion , Multihash hash ) throws IOException {
634635 String arg = URLEncoder .encode (path , "UTF-8" );
635- return retrieveString ("files/mkdir?arg=" + arg + "&parents=" + parents + "&cid-version=" + cidVersion + "&hash=" + hash );
636+ return retrieveString ("files/mkdir?arg=" + arg + "&parents=" + parents + "&cid-version=" +
637+ cidVersion + "&hash=" + hash );
636638 }
637639
638640 public String mv (String source , String dest ) throws IOException {
639- return retrieveString ("files/mv?arg=" + URLEncoder .encode (source , "UTF-8" ) + "&arg=" + URLEncoder .encode (dest , "UTF-8" ));
641+ return retrieveString ("files/mv?arg=" + URLEncoder .encode (source , "UTF-8" ) + "&arg=" +
642+ URLEncoder .encode (dest , "UTF-8" ));
640643 }
641644
642645 public byte [] read (String path ) throws IOException {
@@ -704,15 +707,18 @@ public List<MultiAddress> bootstrap() throws IOException {
704707 public class Bootstrap {
705708
706709 public List <MultiAddress > add (MultiAddress addr ) throws IOException {
707- return ((List <String >)retrieveMap ("bootstrap/add?arg=" +addr ).get ("Peers" )).stream ().map (x -> new MultiAddress (x )).collect (Collectors .toList ());
710+ return ((List <String >)retrieveMap ("bootstrap/add?arg=" +addr ).get ("Peers" ))
711+ .stream ().map (x -> new MultiAddress (x )).collect (Collectors .toList ());
708712 }
709713
710714 public List <MultiAddress > add () throws IOException {
711- return ((List <String >)retrieveMap ("bootstrap/add/default" ).get ("Peers" )).stream ().map (x -> new MultiAddress (x )).collect (Collectors .toList ());
715+ return ((List <String >)retrieveMap ("bootstrap/add/default" ).get ("Peers" ))
716+ .stream ().map (x -> new MultiAddress (x )).collect (Collectors .toList ());
712717 }
713718
714719 public List <MultiAddress > list () throws IOException {
715- return ((List <String >)retrieveMap ("bootstrap/list" ).get ("Peers" )).stream ().map (x -> new MultiAddress (x )).collect (Collectors .toList ());
720+ return ((List <String >)retrieveMap ("bootstrap/list" ).get ("Peers" ))
721+ .stream ().map (x -> new MultiAddress (x )).collect (Collectors .toList ());
716722 }
717723
718724 public List <MultiAddress > rm (MultiAddress addr ) throws IOException {
0 commit comments