|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.spicefactory.cinnamon.io.util.IOUtil
public class IOUtil
Utility methods and constants for AMF3 IO operations.
| Field Summary | |
|---|---|
static String |
AMF_MIME_TYPE
The MIME type for AMF data. |
static int |
DEFAULT_BUFFER_SIZE
The default buffer size for IO operations. |
static Charset |
UTF8_CHARSET
The UTF-8 character set. |
| Constructor Summary | |
|---|---|
IOUtil()
|
|
| Method Summary | |
|---|---|
static org.apache.mina.common.ByteBuffer |
read(InputStream input,
int expectedLength)
Reads from an InputStream and returns a ByteBuffer filled with all available data from the stream. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final Charset UTF8_CHARSET
public static final String AMF_MIME_TYPE
public static final int DEFAULT_BUFFER_SIZE
| Constructor Detail |
|---|
public IOUtil()
| Method Detail |
|---|
public static org.apache.mina.common.ByteBuffer read(InputStream input,
int expectedLength)
throws IOException
ByteBuffer.limit().
input - the InputStream to read fromexpectedLength - the expected number of available bytes
IOException - when an IO error occurs while reading from the InputStream
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||