Package com.torrent4j.util.bencoding

Examples of com.torrent4j.util.bencoding.BDecoder


   * @return the loaded {@link Torrent} instance
   * @throws IOException
   *             if any error occur while reading the torrent file
   */
  public static Torrent load(InputStream in) throws IOException {
    final Object node = new BDecoder(in).readElement();
    final TorrentMetadata metadata = new TorrentMetadata((BMap) node);
    return new Torrent(metadata);
  }
View Full Code Here

TOP

Related Classes of com.torrent4j.util.bencoding.BDecoder

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.