public final class BDecodeNode
extends java.lang.Object
| Constructor and Description |
|---|
BDecodeNode(bdecode_node n) |
BDecodeNode(bdecode_node n,
byte_vector buffer)
Used to keep the buffer reference around.
|
| Modifier and Type | Method and Description |
|---|---|
static BDecodeNode |
bdecode(byte[] data) |
byte_vector |
buffer()
This methods returns the internal buffer or null
if it was constructed without one.
|
bdecode_node |
swig() |
java.lang.String |
toString()
A JSON style string representation
|
public BDecodeNode(bdecode_node n)
n - the native objectpublic BDecodeNode(bdecode_node n, byte_vector buffer)
n - the native objectbuffer - the buffer backing up the native objectpublic bdecode_node swig()
public byte_vector buffer()
This also prevent premature garbage collection in case the node was created from a constructed buffer.
public java.lang.String toString()
toString in class java.lang.Objectpublic static BDecodeNode bdecode(byte[] data)