| Package | Description |
|---|---|
| org.johnnei.javatorrent.bittorrent.encoding |
| Modifier and Type | Class and Description |
|---|---|
class |
AbstractBencodedValue
Base class for implementations for
IBencodedValue which implements all asX methods to throw UnsupportedOperationException |
class |
BencodedInteger
A bencoded integer.
|
class |
BencodedList
A bencoded list.
|
class |
BencodedMap
A bencoded dictionary.
|
class |
BencodedString
A bencoded string.
|
| Modifier and Type | Method and Description |
|---|---|
IBencodedValue |
Bencoding.decode(InStream inStream)
Decodes the given string reader into the bencoded data structure.
|
IBencodedValue |
BencodedList.get(int index)
Gets an item from the bencoded list.
|
| Modifier and Type | Method and Description |
|---|---|
List<IBencodedValue> |
IBencodedValue.asList() |
List<IBencodedValue> |
BencodedList.asList() |
List<IBencodedValue> |
AbstractBencodedValue.asList() |
Map<String,IBencodedValue> |
IBencodedValue.asMap() |
Map<String,IBencodedValue> |
BencodedMap.asMap() |
Map<String,IBencodedValue> |
AbstractBencodedValue.asMap() |
Optional<IBencodedValue> |
BencodedMap.get(String name)
Gets the value from the map if available.
|
Optional<IBencodedValue> |
BencodedMap.remove(String name)
Removes a value from the map.
|
| Modifier and Type | Method and Description |
|---|---|
void |
BencodedList.add(IBencodedValue value)
Adds a value to the bencoded list.
|
void |
BencodedMap.put(String name,
IBencodedValue value)
Associates the given bencoded value with the given key.
|
Copyright © 2016. All rights reserved.