org.klomp.snark.bencode
Class BEncoder
java.lang.Object
org.klomp.snark.bencode.BEncoder
public class BEncoder
- extends Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BEncoder
public BEncoder()
bencode
public static byte[] bencode(Object o)
throws IllegalArgumentException
- Throws:
IllegalArgumentException
bencode
public static void bencode(Object o,
OutputStream out)
throws IOException,
IllegalArgumentException
- Throws:
IOException
IllegalArgumentException
bencode
public static byte[] bencode(String s)
bencode
public static void bencode(String s,
OutputStream out)
throws IOException
- Throws:
IOException
bencode
public static byte[] bencode(Number n)
bencode
public static void bencode(Number n,
OutputStream out)
throws IOException
- Throws:
IOException
bencode
public static byte[] bencode(List<?> l)
bencode
public static void bencode(List<?> l,
OutputStream out)
throws IOException
- Throws:
IOException
bencode
public static byte[] bencode(byte[] bs)
bencode
public static void bencode(byte[] bs,
OutputStream out)
throws IOException
- Throws:
IOException
bencode
public static byte[] bencode(Map<?,?> m)
bencode
public static void bencode(Map<?,?> m,
OutputStream out)
throws IOException,
IllegalArgumentException
- Throws:
IOException
IllegalArgumentException