be.lassi.artnet.packets
Class ArtPacket
java.lang.Object
be.lassi.artnet.packets.ArtPacket
- Direct Known Subclasses:
- ArtAddress, ArtDmx, ArtPoll, ArtPollReply, ArtUnknown
public class ArtPacket
- extends java.lang.Object
Art-Net network packet.
Constructor Summary |
ArtPacket(byte[] packetData)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ArtPacket
public ArtPacket(byte[] packetData)
append
public void append(java.lang.StringBuilder b)
data
protected void data(int index,
int value)
data
protected void data(int offset,
int maxLength,
java.lang.String string)
getDestinationAddress
public java.net.InetAddress getDestinationAddress()
getDestinationPort
public int getDestinationPort()
getPacketData
public byte[] getPacketData()
getSourceAddress
public java.net.InetAddress getSourceAddress()
getSourcePort
public int getSourcePort()
getString
public java.lang.String getString()
init
protected void init(int opCode)
setDestinationAddress
public void setDestinationAddress(java.net.InetAddress destination)
setDestinationPort
public void setDestinationPort(int destinationPort)
setSourceAddress
public void setSourceAddress(java.net.InetAddress sourceAddress)
setSourcePort
public void setSourcePort(int sourcePort)
string
protected java.lang.String string(int offset,
int length)