| 1 | package cz.vutbr.feec.packets.rtp; |
| 2 | |
| 3 | import org.apache.commons.lang.builder.ToStringBuilder; |
| 4 | |
| 5 | import cz.vutbr.feec.packets.IPacket; |
| 6 | import cz.vutbr.feec.packets.PacketGenerateException; |
| 7 | import cz.vutbr.feec.packets.PacketParseException; |
| 8 | |
| 9 | public class RTP_CSRC_Group implements IPacket { |
| 10 | |
| 11 | private long CSRCidentifier; |
| 12 | |
| 13 | public int generate(byte[] resultArray, int startPos) |
| 14 | throws PacketGenerateException { |
| 15 | |
| 16 | //------------------------------------------- |
| 17 | |
| 18 | return 0; |
| 19 | } |
| 20 | |
| 21 | /* public int generateLandmarkItem(byte[] buffer, int offset) |
| 22 | throws PacketGenerateException { |
| 23 | |
| 24 | assert PacketUtils.checkSize(this.getLandmarkIPaddr(), 32); |
| 25 | |
| 26 | //adding Landmark IP address |
| 27 | PacketUtils.copyBytes(buffer, PacketUtils.longToBytes(this.getLandmarkIPaddr(), 4), offset); |
| 28 | |
| 29 | return 4; |
| 30 | }*/ |
| 31 | |
| 32 | public int parse(byte[] resultArray, int startPos, int length) |
| 33 | throws PacketParseException { |
| 34 | return 0; |
| 35 | } |
| 36 | |
| 37 | public long getCSRCidentifier() { |
| 38 | return CSRCidentifier; |
| 39 | } |
| 40 | |
| 41 | public void setCSRCidentifier(long CSRCidentifier) { |
| 42 | this.CSRCidentifier = CSRCidentifier; |
| 43 | } |
| 44 | |
| 45 | /** |
| 46 | * @see java.lang.Object#toString() |
| 47 | */ |
| 48 | public String toString() { |
| 49 | return new ToStringBuilder(this).append("CSRCidentifier", |
| 50 | this.CSRCidentifier).toString(); |
| 51 | } |
| 52 | |
| 53 | } |