|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.illposed.osc.OSCPacket
com.illposed.osc.OSCMessage
An simple (non-bundle) OSC message. An OSC message is made up of an address (the receiver of the message) and arguments (the content of the message).
Internally, I use Vector to maintain jdk1.1 compatability
Copyright (C) 2003-2006, C. Ramakrishnan / Illposed Software. All rights reserved.
See license.txt (or license.rtf) for license information.
| Field Summary | |
protected java.lang.String |
address
|
protected java.util.Vector |
arguments
|
| Fields inherited from class com.illposed.osc.OSCPacket |
byteArray, isByteArrayComputed |
| Constructor Summary | |
OSCMessage()
Create an empty OSC Message. |
|
OSCMessage(java.lang.String newAddress)
Create an OSCMessage with an address already initialized. |
|
OSCMessage(java.lang.String newAddress,
java.lang.Object[] newArguments)
Create an OSCMessage with an address and arguments already initialized. |
|
| Method Summary | |
void |
addArgument(java.lang.Object argument)
Add an argument to the list of arguments. |
protected void |
computeAddressByteArray(OSCJavaToByteArrayConverter stream)
Convert the address into a byte array. |
protected void |
computeArgumentsByteArray(OSCJavaToByteArrayConverter stream)
Convert the arguments into a byte array. |
protected void |
computeByteArray(OSCJavaToByteArrayConverter stream)
Convert the message into a byte array. |
java.lang.String |
getAddress()
The receiver of this message. |
java.lang.Object[] |
getArguments()
The arguments of this message. |
void |
setAddress(java.lang.String anAddress)
Set the address of this messsage. |
| Methods inherited from class com.illposed.osc.OSCPacket |
computeByteArray, getByteArray, init |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected java.lang.String address
protected java.util.Vector arguments
| Constructor Detail |
public OSCMessage()
public OSCMessage(java.lang.String newAddress)
newAddress - the recepient of this OSC message
public OSCMessage(java.lang.String newAddress,
java.lang.Object[] newArguments)
newAddress - the recepient of this OSC messagenewArguments - the data sent to the receiver| Method Detail |
public java.lang.String getAddress()
public void setAddress(java.lang.String anAddress)
anAddress - the receiver of the messagepublic void addArgument(java.lang.Object argument)
argument - a Float, String, Integer, BigInteger, Boolean or array of thesepublic java.lang.Object[] getArguments()
protected void computeAddressByteArray(OSCJavaToByteArrayConverter stream)
stream - OscPacketByteArrayConverterprotected void computeArgumentsByteArray(OSCJavaToByteArrayConverter stream)
stream - OscPacketByteArrayConverterprotected void computeByteArray(OSCJavaToByteArrayConverter stream)
computeByteArray in class OSCPacketstream - OscPacketByteArrayConverter
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||