@ NotNull public < T > T getObject ( @ NotNull final String hash , @ NotNull final StreamHandler < T > handler ) throws IOException { return doWork ( auth -> { final ObjectRes links = doRequest ( auth , new MetaGet ( ) , AuthHelper . join ( auth . getHref ( ) , PATH_OBJECTS + "/" + hash ) ) ; if ( links == null ) { throw new FileNotFoundException ( ) ; } return getObject ( new Meta ( hash , - 1 ) , links , handler ) ; } , Operation . Download ) ; }
Download object by hash .