Package org.zoolu.tools

Examples of org.zoolu.tools.Parser


  

   /** Gets the media formats as a Vector of String. */
   public Vector getFormatList()
   {  Vector formatlist=new Vector();
      Parser par=new Parser(value);
      par.skipString().skipString().skipString();
      while (par.hasMore())
      {  String fmt=par.getString();
         if (fmt!=null && fmt.length()>0) formatlist.addElement(fmt);
      }
      return formatlist;
  
View Full Code Here


   super(sf);
   }
     
   /** Gets the connection address. */
   public String getAddressType()
   {  String type=(new Parser(value)).skipString().getString();
      return type;
   }
View Full Code Here

      return type;
   }

   /** Gets the connection address. */
   public String getAddress()
   {  String address=(new Parser(value)).skipString().skipString().getString();
      int i=address.indexOf("/");
      if (i<0) return address; else return address.substring(0,i);
   }
View Full Code Here

      if (i<0) return address; else return address.substring(0,i);
   }

   /** Gets the TTL. */
   public int getTTL()
   {  String address=(new Parser(value)).skipString().skipString().getString();
      int i=address.indexOf("/");
      if (i<0) return 0;
      int j=address.indexOf("/",i);
      if (j<0) return Integer.parseInt(address.substring(i)); else return Integer.parseInt(address.substring(i,j));
   }
View Full Code Here

      if (j<0) return Integer.parseInt(address.substring(i)); else return Integer.parseInt(address.substring(i,j));
   }

   /** Gets the number of addresses. */
   public int getNum()
   {  String address=(new Parser(value)).skipString().skipString().getString();
      int i=address.indexOf("/");
      if (i<0) return 0;
      int j=address.indexOf("/",i);
      if (j<0) return 0;
      return Integer.parseInt(address.substring(j));
View Full Code Here

   super(sf);
   }
     
   /** Gets the start time. */
   public String getStartTime()
   {  return (new Parser(value)).getString();
   }
View Full Code Here

   return (new Parser(value)).getString();
   }

   /** Gets the stop time. */
   public String getStopTime()
   {  return (new Parser(value)).skipString().getString();
   }
View Full Code Here

   super(sf);
   }
     
   /** Gets the user name. */
   public String getUserName()
   {  return (new Parser(value)).getString();
   }
View Full Code Here

   return (new Parser(value)).getString();
   }

   /** Gets the session id. */
   public String getSessionId()
   {  return (new Parser(value)).skipString().getString();
   }
View Full Code Here

   return (new Parser(value)).skipString().getString();
   }

   /** Gets the session version. */
   public String getSessionVersion()
   {  return (new Parser(value)).skipString().skipString().getString();
   }
View Full Code Here

TOP

Related Classes of org.zoolu.tools.Parser

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.