| Modifier and Type | Method and Description |
|---|---|
static BEncodedValue |
BDecoder.bdecode(ByteBuffer data)
Decode a B-encoded byte buffer.
|
BEncodedValue |
BDecoder.decode()
Gets the next indicator and returns either null when the stream
has ended or b-decodes the rest of the stream and returns the
appropriate BEValue encoded object.
|
static BEncodedValue |
BDecoder.decode(InputStream in)
Decode a B-encoded stream.
|
BEncodedValue |
BDecoder.decodeBytes()
Returns the next b-encoded value on the stream and makes sure it is a
byte array.
|
BEncodedValue |
BDecoder.decodeList()
Returns the next b-encoded value on the stream and makes sure it is a
list.
|
BEncodedValue |
BDecoder.decodeMap()
Returns the next b-encoded value on the stream and makes sure it is a
map (dictionary).
|
BEncodedValue |
BDecoder.decodeNumber()
Returns the next b-encoded value on the stream and makes sure it is a
number.
|
| Modifier and Type | Method and Description |
|---|---|
List<BEncodedValue> |
BEncodedValue.getList()
Returns this BEValue as a List of BEValues.
|
Map<String,BEncodedValue> |
BEncodedValue.getMap()
Returns this BEValue as a Map of String keys and BEValue values.
|
| Modifier and Type | Method and Description |
|---|---|
static void |
BEncoder.encode(List<BEncodedValue> l,
OutputStream out) |
static ByteBuffer |
BEncoder.encode(Map<String,BEncodedValue> m) |
static void |
BEncoder.encode(Map<String,BEncodedValue> m,
OutputStream out) |
| Constructor and Description |
|---|
BEncodedValue(List<BEncodedValue> value) |
BEncodedValue(Map<String,BEncodedValue> value) |
Copyright © 2016. All rights reserved.