ChangedAddress.java :  » VOIP » aethervoice » com » jstun » core » attribute » Android Open Source

Android Open Source » VOIP » aethervoice 
aethervoice » com » jstun » core » attribute » ChangedAddress.java
/*
 * This file is part of JSTUN. 
 * 
 * Copyright (c) 2005 Thomas King <king@t-king.de> - All rights
 * reserved.
 * 
 * This software is licensed under either the GNU Public License (GPL),
 * or the Apache 2.0 license. Copies of both license agreements are
 * included in this distribution.
 */

package com.jstun.core.attribute;

import java.util.logging.Logger;


public class ChangedAddress extends MappedResponseChangedSourceAddressReflectedFrom {
  private static Logger logger = Logger.getLogger("com.jstun.core.attribute.ChangedAddress");
  
  public ChangedAddress() {
    super(MessageAttribute.MessageAttributeType.ChangedAddress);
  }
  
  public static MessageAttribute parse(byte[] data) throws MessageAttributeParsingException {
    ChangedAddress ca = new ChangedAddress();
    MappedResponseChangedSourceAddressReflectedFrom.parse(ca, data);
    logger.finer("Message Attribute: Changed Address parsed: " + ca.toString() + ".");
    return ca;
  }
}
java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.