public void progress(String filename, ProgressInfo.Direction direction, long bytes, long total) { ProgressInfo progress = new ProgressInfo(peer, index, filename, direction, bytes, total); streamResult.handleProgress(progress); }
public void progress(String filename, ProgressInfo.Direction direction, long bytes, long total) { ProgressInfo progress = new ProgressInfo(peer, index, filename, direction, bytes, total); streamResult.handleProgress(progress); }
public void progress(String filename, ProgressInfo.Direction direction, long bytes, long total) { ProgressInfo progress = new ProgressInfo(peer, index, filename, direction, bytes, total); streamResult.handleProgress(progress); }
public static ProgressInfo fromCompositeData(CompositeData cd) { Object[] values = cd.getAll(ITEM_NAMES); try { return new ProgressInfo(InetAddress.getByName((String) values[1]), (int) values[2], (String) values[3], ProgressInfo.Direction.valueOf((String)values[4]), (long) values[5], (long) values[6]); } catch (UnknownHostException e) { throw Throwables.propagate(e); } } }
public void progress(Descriptor desc, ProgressInfo.Direction direction, long bytes, long total) { ProgressInfo progress = new ProgressInfo(peer, index, desc.filenameFor(Component.DATA), direction, bytes, total); streamResult.handleProgress(progress); }
public static ProgressInfo fromCompositeData(CompositeData cd) { Object[] values = cd.getAll(ITEM_NAMES); try { return new ProgressInfo(InetAddress.getByName((String) values[1]), (int) values[2], (String) values[3], ProgressInfo.Direction.valueOf((String)values[4]), (long) values[5], (long) values[6]); } catch (UnknownHostException e) { throw Throwables.propagate(e); } } }
public static ProgressInfo fromCompositeData(CompositeData cd) { Object[] values = cd.getAll(ITEM_NAMES); try { return new ProgressInfo(InetAddress.getByName((String) values[1]), (int) values[2], (String) values[3], ProgressInfo.Direction.valueOf((String)values[4]), (long) values[5], (long) values[6]); } catch (UnknownHostException e) { throw Throwables.propagate(e); } } }
public static ProgressInfo fromCompositeData(CompositeData cd) { Object[] values = cd.getAll(ITEM_NAMES); try { return new ProgressInfo(InetAddress.getByName((String) values[1]), (int) values[2], (String) values[3], ProgressInfo.Direction.valueOf((String)values[4]), (long) values[5], (long) values[6]); } catch (UnknownHostException e) { throw Throwables.propagate(e); } } }