public interface IMetadataService
Modifier and Type | Method and Description |
---|---|
Torrent |
fromByteArray(byte[] bs)
Builds a torrent object from its binary representation.
|
Torrent |
fromInputStream(InputStream in)
Builds a torrent object from its binary representation.
|
Torrent |
fromUrl(URL url)
Builds a torrent object from its binary representation located at
url . |
Torrent fromUrl(URL url)
url
.url
- Binary bencoded representation of a torrent objectTorrent fromInputStream(InputStream in)
in
- Input stream, containing a bencoded representation.
Caller should close the stream after the method has returned.Torrent fromByteArray(byte[] bs)
bs
- binary bencoded representation of a torrent objectCopyright © 2016–2021. All rights reserved.