File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 77
88Bencode Input/Output Streams for Java
99
10- Requires JDK 1.5 or higher
10+ Requires JDK 1.6 or higher
1111
1212[ Bencode Spec] ( https://wiki.theory.org/BitTorrentSpecification#Bencoding )
1313
@@ -23,13 +23,13 @@ http://dampcake.github.io/bencode
2323<dependency >
2424 <groupId >com.dampcake</groupId >
2525 <artifactId >bencode</artifactId >
26- <version >1.2.1 </version >
26+ <version >1.2.2 </version >
2727</dependency >
2828```
2929
3030### Gradle
3131``` groovy
32- compile 'com.dampcake:bencode:1.2.1 '
32+ compile 'com.dampcake:bencode:1.2.2 '
3333```
3434
3535### Examples
@@ -50,7 +50,7 @@ byte[] encoded = bencode.encode(new HashMap<Object, Object>() {{
5050 }});
5151}});
5252
53- System . out. println(new String (out . toByteArray() , bencode. getCharset()));
53+ System . out. println(new String (encoded , bencode. getCharset()));
5454```
5555
5656Outputs: ``` d4:dictd3:1234:test3:4565:thinge4:listl11:list-item-111:list-item-2e6:numberi123456e6:string5:valuee ```
You can’t perform that action at this time.
0 commit comments