public abstract class AbstractBencodedValue extends Object implements IBencodedValue
IBencodedValue which implements all asX methods to throw UnsupportedOperationException| Constructor and Description |
|---|
AbstractBencodedValue() |
| Modifier and Type | Method and Description |
|---|---|
BigInteger |
asBigInteger() |
byte[] |
asBytes() |
List<IBencodedValue> |
asList() |
long |
asLong() |
Map<String,IBencodedValue> |
asMap() |
String |
asString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitserializepublic String asString()
asString in interface IBencodedValuepublic byte[] asBytes()
asBytes in interface IBencodedValuepublic Map<String,IBencodedValue> asMap()
asMap in interface IBencodedValuepublic List<IBencodedValue> asList()
asList in interface IBencodedValuepublic long asLong()
asLong in interface IBencodedValuepublic BigInteger asBigInteger()
asBigInteger in interface IBencodedValueCopyright © 2016. All rights reserved.