public class BEEncoder extends Object
Constructor and Description |
---|
BEEncoder() |
Modifier and Type | Method and Description |
---|---|
void |
encode(BEInteger integer,
OutputStream out)
Write bencoded integer to a binary output.
|
void |
encode(BEList list,
OutputStream out)
Write bencoded list to a binary output.
|
void |
encode(BEMap map,
OutputStream out)
Write bencoded dictionary to a binary output.
|
void |
encode(BEString string,
OutputStream out)
Write bencoded string to a binary output.
|
static BEEncoder |
encoder()
Get default encoder.
|
public static BEEncoder encoder()
public void encode(BEString string, OutputStream out) throws IOException
IOException
public void encode(BEInteger integer, OutputStream out) throws IOException
IOException
public void encode(BEList list, OutputStream out) throws IOException
IOException
public void encode(BEMap map, OutputStream out) throws IOException
IOException
Copyright © 2016–2021. All rights reserved.