public class BEncoder
extends java.lang.Object
| コンストラクタ | 説明 |
|---|---|
BEncoder() |
| 修飾子とタイプ | メソッド | 説明 |
|---|---|---|
static byte[] |
bencode(byte[] bs) |
|
static void |
bencode(byte[] bs,
java.io.OutputStream out) |
|
static byte[] |
bencode(java.lang.Number n) |
|
static void |
bencode(java.lang.Number n,
java.io.OutputStream out) |
|
static byte[] |
bencode(java.lang.Object o) |
|
static void |
bencode(java.lang.Object o,
java.io.OutputStream out) |
|
static byte[] |
bencode(java.lang.String s) |
|
static void |
bencode(java.lang.String s,
java.io.OutputStream out) |
|
static byte[] |
bencode(java.util.List<?> l) |
|
static void |
bencode(java.util.List<?> l,
java.io.OutputStream out) |
|
static byte[] |
bencode(java.util.Map<?,?> m) |
Keys must be Strings or (supported as of 0.9.31) byte[]s
A mix in the same Map is not supported.
|
static void |
bencode(java.util.Map<?,?> m,
java.io.OutputStream out) |
Keys must be Strings or (supported as of 0.9.31) byte[]s
A mix in the same Map is not supported.
|
public static byte[] bencode(java.lang.Object o)
throws java.lang.IllegalArgumentException
java.lang.IllegalArgumentExceptionpublic static void bencode(java.lang.Object o,
java.io.OutputStream out)
throws java.io.IOException,
java.lang.IllegalArgumentException
java.io.IOExceptionjava.lang.IllegalArgumentExceptionpublic static byte[] bencode(java.lang.String s)
public static void bencode(java.lang.String s,
java.io.OutputStream out)
throws java.io.IOException
java.io.IOExceptionpublic static byte[] bencode(java.lang.Number n)
public static void bencode(java.lang.Number n,
java.io.OutputStream out)
throws java.io.IOException
java.io.IOExceptionpublic static byte[] bencode(java.util.List<?> l)
public static void bencode(java.util.List<?> l,
java.io.OutputStream out)
throws java.io.IOException
java.io.IOExceptionpublic static byte[] bencode(byte[] bs)
public static void bencode(byte[] bs,
java.io.OutputStream out)
throws java.io.IOException
java.io.IOExceptionpublic static byte[] bencode(java.util.Map<?,?> m)
java.lang.IllegalArgumentException - if keys are not all Strings or all byte[]spublic static void bencode(java.util.Map<?,?> m,
java.io.OutputStream out)
throws java.io.IOException,
java.lang.IllegalArgumentException
java.lang.IllegalArgumentException - if keys are not all Strings or all byte[]sjava.io.IOException