|
jSyncManager | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jSyncManager.API.Protocol.Argument
org.jSyncManager.API.Protocol.ShortArgument
org.jSyncManager.API.Protocol.SmallArgument
The Small Argument type. This argument type is for arguments that are at most 65 536 bytes in length.
| Field Summary | |
(package private) byte |
argumentID
A field to hold this arguments ID number. |
(package private) char |
argumentSize
The size of the argument. |
(package private) byte[] |
data
The data contained by this argument. |
static byte |
FIRST_ARG_ID
The ID number for the first argument in any packet containing arguments. |
| Constructor Summary | |
(package private) |
SmallArgument()
Constructs a new Small Argument object. |
(package private) |
SmallArgument(byte[] inData)
Constructs a new argument from the specified data. |
| Method Summary | |
(package private) byte[] |
arg2Bytes()
Converts this argument into an array of bytes. |
static Argument |
createArgument(byte[] data,
int i)
Creates an argument from a byte array. |
(package private) byte[] |
getArgument()
Gets this arguments data as an array of bytes. |
(package private) int |
getSize()
Retreives the size of this argument. |
static Argument |
parseArgument(byte[] inData)
Parses a byte array representing an argument into its corresponding Argument object. |
static Argument[] |
parseArguments(int i,
byte[] data)
Parses a series of arguments into an array of argument objects. |
java.lang.String |
toString()
Convert this object to a human-readable String. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
char argumentSize
byte argumentID
byte[] data
public static final byte FIRST_ARG_ID
| Constructor Detail |
SmallArgument()
SmallArgument(byte[] inData)
| Method Detail |
byte[] arg2Bytes()
arg2Bytes in class Argumentint getSize()
getSize in class Argumentbyte[] getArgument()
getArgument in class Argumentpublic java.lang.String toString()
toString in class ShortArgument
public static Argument createArgument(byte[] data,
int i)
data - the data to be included in the argument.i - the ID of the first argument in this packet.
public static Argument parseArgument(byte[] inData)
inData - the input byte array to be parsed.
public static Argument[] parseArguments(int i,
byte[] data)
i - the number of arguments to parse.data - the input data array.
|
jSyncManager | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||