|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectnet.sf.torrentsniffer.bencoding.BencodingImpl
Implementation of bencoding. See http://wiki.theory.org/index.php/BitTorrentSpecification for information about bencoding.
| Field Summary | |
static java.lang.String |
BYTE_ENCODING
|
| Constructor Summary | |
BencodingImpl()
|
|
| Method Summary | |
Dictionary |
decode(java.io.InputStream input)
Decodes the bencoded data in a stream. |
Dictionary |
decode(java.lang.String string)
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. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final java.lang.String BYTE_ENCODING
| Constructor Detail |
public BencodingImpl()
| Method Detail |
public Dictionary decode(java.lang.String string)
throws java.io.FileNotFoundException
Bencoding
decode in interface Bencodingstring -
java.io.FileNotFoundExceptionpublic Dictionary decode(java.io.InputStream input)
Bencoding
decode in interface Bencodinginput -
public Dictionary decode(java.net.URL url)
Bencoding
decode in interface Bencodingurl -
net.sf.torrentsniff.bencoding.Bencoding#decode(java.net.URL)
public void encode(java.io.OutputStream out,
java.lang.Object object)
Bencoding
encode in interface Bencodingobject - out -
public boolean match(Dictionary bencoded1,
Dictionary bencoded2)
Bencoding
match in interface Bencoding
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||