|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
Implements the bencoding specification. See http://wiki.theory.org/index.php/BitTorrentSpecification for information about bencoding.
| Method Summary | |
Dictionary |
decode(java.io.InputStream input)
Decodes the bencoded data in a stream. |
Dictionary |
decode(java.lang.String file)
Decodes the bencoded data in a torrent file. |
Dictionary |
decode(java.net.URL url)
Decodes the bencoded data in a URL. |
void |
encode(java.io.OutputStream out,
java.lang.Object object)
Encodes a graph of objects. |
boolean |
match(Dictionary bencoded1,
Dictionary bencoded2)
Checks if two bencoded Dictionaries are the same. |
| Method Detail |
public Dictionary decode(java.lang.String file)
throws java.io.FileNotFoundException
file -
java.io.FileNotFoundExceptionpublic Dictionary decode(java.io.InputStream input)
input -
public Dictionary decode(java.net.URL url)
url -
public void encode(java.io.OutputStream out,
java.lang.Object object)
object - out -
public boolean match(Dictionary bencoded1,
Dictionary bencoded2)
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||