|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface IModuleData
| Field Summary | |
|---|---|
static int |
FORMAT_BINARY
A flag indicating binary data (so when using the data, you should use the getDataBinary()) |
static int |
FORMAT_STRING_UTF8
A flag value indicating string data encoded using UTF-8 (when when using the data, you should use getDataString()) |
| Method Summary | |
|---|---|
byte[] |
getDataBinary()
Returns the data in a binary format. |
int |
getDataFormat()
This returns one of the FORMAT_* variables to determine what format the data is actually in. |
java.lang.String |
getDataString()
Returns the data in a string format (independant of encoding). |
boolean |
hasData()
Returns true if the module contains any valid data, false otherwise. |
void |
readData(java.io.InputStream sock)
Allows the object to read in the data from the socket stream directly. |
| Field Detail |
|---|
static final int FORMAT_BINARY
getDataBinary(),
Constant Field Valuesstatic final int FORMAT_STRING_UTF8
getDataString(),
Constant Field Values| Method Detail |
|---|
void readData(java.io.InputStream sock)
throws java.lang.RuntimeException
sock - The socket input stream to read the input from.
java.lang.RuntimeException - If something goes wrong.byte[] getDataBinary()
java.lang.String getDataString()
boolean hasData()
int getDataFormat()
int - An integer representing the data format in the module.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||