public class OSCBundle extends OSCPacket
Modifier and Type | Field and Description |
---|---|
static java.math.BigInteger |
SECONDS_FROM_1900_to_1970
The Constant SECONDS_FROM_1900_to_1970.
|
Constructor and Description |
---|
OSCBundle()
Create a new OSCBundle, with a timestamp of now.
|
OSCBundle(java.util.Date timestamp)
Create an OSCBundle with the specified timestamp
|
OSCBundle(OSCPacket[] newPackets) |
OSCBundle(OSCPacket[] newPackets,
java.util.Date newTimestamp) |
Modifier and Type | Method and Description |
---|---|
void |
addPacket(OSCPacket packet)
Add a packet to the list of packets in this bundle
|
OSCPacket[] |
getPackets()
Get the packets contained in this bundle
|
java.util.Date |
getTimestamp()
Return the timestamp for this bundle
|
void |
setTimestamp(java.util.Date timestamp)
Set the timestamp for this bundle
|
getByteArray
public static final java.math.BigInteger SECONDS_FROM_1900_to_1970
public OSCBundle()
public OSCBundle(java.util.Date timestamp)
timestamp
- public OSCBundle(OSCPacket[] newPackets)
newPackets
- Array of OSCPackets to initialize this object withpublic OSCBundle(OSCPacket[] newPackets, java.util.Date newTimestamp)
newPackets
- OscPacket[]time
- java.lang.Timepublic void addPacket(OSCPacket packet)
packet
- public OSCPacket[] getPackets()
public java.util.Date getTimestamp()
public void setTimestamp(java.util.Date timestamp)
timestamp
-