org.lastbamboo.common.sdp
Class HostNameParser

java.lang.Object
  extended by org.lastbamboo.common.sdp.ParserCore
      extended by org.lastbamboo.common.sdp.HostNameParser

public class HostNameParser
extends ParserCore

Parser for host names.

Version:
JAIN-SIP-1.1
Author:
M. Ranganathan This code is in the public domain.
IPv6 Support added by Emil Ivov (emil_ivov@yahoo.com)
Network Research Team (http://www-r2.u-strasbg.fr))
Louis Pasteur University - Strasbourg - France
Bug fixes for corner cases were contributed by Thomas Froment.

Field Summary
 
Fields inherited from class org.lastbamboo.common.sdp.ParserCore
lexer, nesting_level
 
Constructor Summary
HostNameParser(LexerCore lexer)
          The lexer is initialized with the buffer.
HostNameParser(String hname)
           
 
Method Summary
protected  String domainLabel()
           
 Host host()
           
 HostPort hostPort()
           
protected  String ipv6Reference()
           
static void main(String[] args)
           
 
Methods inherited from class org.lastbamboo.common.sdp.ParserCore
dbg_enter, dbg_leave, nameValue, nameValue, peekLine
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HostNameParser

public HostNameParser(String hname)

HostNameParser

public HostNameParser(LexerCore lexer)
The lexer is initialized with the buffer.

Method Detail

domainLabel

protected String domainLabel()
                      throws ParseException
Throws:
ParseException

ipv6Reference

protected String ipv6Reference()
                        throws ParseException
Throws:
ParseException

host

public Host host()
          throws ParseException
Throws:
ParseException

hostPort

public HostPort hostPort()
                  throws ParseException
Throws:
ParseException

main

public static void main(String[] args)
                 throws ParseException
Throws:
ParseException


Copyright © 2013 LittleShoot. All Rights Reserved.