|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.red5.io.utils.IOUtils
public class IOUtils
Misc I/O util methods
| Field Summary | |
|---|---|
static Charset |
CHARSET
UTF-8 is used |
| Constructor Summary | |
|---|---|
IOUtils()
|
|
| Method Summary | |
|---|---|
static void |
debug(Logger log,
String msg,
IoBuffer buf)
Format debug message |
static int |
readMediumInt(IoBuffer in)
Reads medium int |
static int |
readMediumInt2(IoBuffer in)
Alternate method for reading medium int |
static int |
readReverseInt(IoBuffer in)
Reads reverse int |
static int |
readUnsignedMediumInt(IoBuffer in)
Reads unsigned medium integer |
static String |
toString(IoBuffer buf)
String representation of byte buffer |
static void |
writeMediumInt(IoBuffer out,
int value)
Writes medium integer |
static void |
writeReverseInt(IoBuffer out,
int value)
Writes integer in reverse order |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final Charset CHARSET
| Constructor Detail |
|---|
public IOUtils()
| Method Detail |
|---|
public static void writeReverseInt(IoBuffer out,
int value)
out - Data buffer to fillvalue - Integer
public static void writeMediumInt(IoBuffer out,
int value)
out - Output buffervalue - Integer to writepublic static int readUnsignedMediumInt(IoBuffer in)
in - Unsigned medium int source
public static int readMediumInt(IoBuffer in)
in - Source
public static int readMediumInt2(IoBuffer in)
in - Source
public static int readReverseInt(IoBuffer in)
in - Source
public static void debug(Logger log,
String msg,
IoBuffer buf)
log - Loggermsg - Messagebuf - Byte buffer to debugpublic static String toString(IoBuffer buf)
buf - Byte buffer
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||