|
||||||||||
| 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
Miscellaneous I/O utility methods
| Field Summary | |
|---|---|
static Charset |
CHARSET
UTF-8 is used |
| Constructor Summary | |
|---|---|
IOUtils()
|
|
| Method Summary | |
|---|---|
static void |
debug(org.slf4j.Logger log,
String msg,
IoBuffer buf)
Format debug message |
static void |
main(String[] args)
|
static int |
readExtendedMediumInt(ByteBuffer in)
Reads extended medium int |
static int |
readExtendedMediumInt(IoBuffer in)
Reads extended medium int |
static int |
readMediumInt(ByteBuffer in)
Reads medium int |
static int |
readMediumInt(IoBuffer in)
Reads 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 |
writeExtendedMediumInt(ByteBuffer out,
int value)
Writes extended medium integer (equivalent to a regular integer whose most significant byte has been moved to its end, past its least significant byte) |
static void |
writeExtendedMediumInt(IoBuffer out,
int value)
Writes extended medium integer (equivalent to a regular integer whose most significant byte has been moved to its end, past its least significant byte) |
static void |
writeMediumInt(ByteBuffer out,
int value)
Writes medium integer |
static void |
writeMediumInt(IoBuffer out,
int value)
Writes medium integer |
static void |
writeReverseInt(IoBuffer out,
int value)
Writes integer in reverse order |
static void |
writeUnsignedByte(ByteBuffer out,
byte value)
Writes an unsigned byte value to the supplied buffer. |
| 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 final void writeReverseInt(IoBuffer out,
int value)
out - Data buffer to fillvalue - Integer
public static final void writeMediumInt(IoBuffer out,
int value)
out - Output buffervalue - Integer to write
public static final void writeMediumInt(ByteBuffer out,
int value)
out - Output buffervalue - Integer to write
public static final void writeExtendedMediumInt(IoBuffer out,
int value)
out - Output buffervalue - Integer to write
public static final void writeExtendedMediumInt(ByteBuffer out,
int value)
out - Output buffervalue - Integer to write
public static final void writeUnsignedByte(ByteBuffer out,
byte value)
out - Output buffervalue - Byte to writepublic static final int readUnsignedMediumInt(IoBuffer in)
in - Unsigned medium int source
public static final int readMediumInt(ByteBuffer in)
in - Source
public static final int readMediumInt(IoBuffer in)
in - Source
public static final int readExtendedMediumInt(IoBuffer in)
in - Source
public static final int readExtendedMediumInt(ByteBuffer in)
in - Source
public static final int readReverseInt(IoBuffer in)
in - Source
public static final void debug(org.slf4j.Logger log,
String msg,
IoBuffer buf)
log - Loggermsg - Messagebuf - Byte buffer to debugpublic static final String toString(IoBuffer buf)
buf - Byte buffer
public static void main(String[] args)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||