Examples of skipString()


Examples of org.apache.xerces.impl.XMLEntityScanner.skipString()

    private short determineDocVersion() throws IOException {
        // must assume 1.1 at this stage so that whitespace
        // handling is correct in the XML decl...
        fEntityManager.setScannerVersion(Constants.XML_VERSION_1_1);
        XMLEntityScanner scanner = fEntityManager.getEntityScanner();
        if(!scanner.skipString("<?xml"))  {
            // definitely not a well-formed 1.1 doc!
            return Constants.XML_VERSION_1_0;
        }
        if(!scanner.skipSpaces()) {
            fixupCurrentEntity(fEntityManager, EXPECTED_VERSION_STRING, 5);
View Full Code Here

Examples of org.apache.xerces.impl.XMLEntityScanner.skipString()

        }
        if(!scanner.skipSpaces()) {
            fixupCurrentEntity(fEntityManager, EXPECTED_VERSION_STRING, 5);
            return Constants.XML_VERSION_1_0;
        }
        if(!scanner.skipString("version"))  {
            fixupCurrentEntity(fEntityManager, EXPECTED_VERSION_STRING, 6);
            return Constants.XML_VERSION_1_0;
        }
        scanner.skipSpaces();
        if(scanner.scanChar() != '=') {
View Full Code Here

Examples of org.zoolu.sip.provider.SipParser.skipString()

   }

   /** Gets method of CSeqHeader */
   public String getMethod()
   {  SipParser par=new SipParser(value);
      par.skipString(); // skip sequence number
      return par.getString();
   }

   /** Gets sequence number of CSeqHeader */
   public long getSequenceNumber()
View Full Code Here

Examples of org.zoolu.sip.provider.SipParser.skipString()

            addUser(user);
            continue;
         }
         if (line.startsWith(SipHeaders.Contact))
         {  SipParser par=new SipParser(line);
            name_address=((SipParser)par.skipString()).getNameAddress();
            //System.out.println("DEBUG: "+name_address);
            expire=(new SipParser(par.goTo("expires=").skipN(8).getStringUnquoted())).getDate();
            //System.out.println("DEBUG: "+expire);
            getUserBindingInfo(user).addContact(name_address,expire);
            continue;
View Full Code Here

Examples of org.zoolu.sip.provider.SipParser.skipString()

   /** Whether has parameter <i>param_name</i> */
   public boolean hasParameter(String param_name)
   {  char[] name_separators={'='' ', '\t', '\r', '\n'};
      SipParser par=new SipParser(value);
      par.skipString(); // skip the auth_scheme
      par.skipWSPCRLF();
      while (par.hasMore())
      {  String name=par.getWord(name_separators);
         if (name.equals(param_name)) return true;
         par.goToCommaHeaderSeparator().skipChar().skipWSPCRLF();
View Full Code Here

Examples of org.zoolu.sip.provider.SipParser.skipString()

 
   /** Returns the parameter <i>param_name</i>, without quotes. */
   public String getParameter(String param_name)
   {  char[] name_separators={'=', ' ', '\t'};
      SipParser par=new SipParser(value);
      par.skipString(); // skip the auth_scheme
      par.skipWSPCRLF();
      while (par.hasMore())
      {  String name=par.getWord(name_separators);
         if (name.equals(param_name))
         {  par.goTo('=').skipChar().skipWSP();
View Full Code Here

Examples of org.zoolu.sip.provider.SipParser.skipString()

   /** Gets a String Vector of parameter names.
     * @returns a Vector of String. */
   public Vector getParameters()
   {  char[] name_separators={'=', ' ', '\t'};
      SipParser par=new SipParser(value);
      par.skipString(); // skip the auth_scheme
      par.skipWSPCRLF();
      Vector names=new Vector();
      while (par.hasMore())
      {  String name=par.getWord(name_separators);
         names.addElement(name);
View Full Code Here

Examples of org.zoolu.tools.Parser.skipString()

   /** 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

Examples of org.zoolu.tools.Parser.skipString()

            break;
         if (line.startsWith("#"))
            continue;
         if (line.startsWith("To"))
         {  Parser par=new Parser(line);
            user=par.skipString().getString();
            //System.out.println("add user: "+user);
            addUser(user);
            continue;
         }
         if (line.startsWith(SipHeaders.Contact))
View Full Code Here

Examples of org.zoolu.tools.Parser.skipString()

            addUser(user);
            continue;
         }
         if (line.startsWith(SipHeaders.Contact))
         {  SipParser par=new SipParser(line);
            name_address=((SipParser)par.skipString()).getNameAddress();
            //System.out.println("DEBUG: "+name_address);
            expire=(new SipParser(par.goTo("expires=").skipN(8).getStringUnquoted())).getDate();
            //System.out.println("DEBUG: "+expire);
            getUserBindingInfo(user).addContact(name_address,expire);
            continue;
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.