Examples of XmlPullParserFactory


Examples of org.xmlpull.v1.XmlPullParserFactory

        this.grammar = new Dsmlv2Grammar();
        this.container = new Dsmlv2Container( grammar.getLdapCodecService() );

        this.container.setGrammar( grammar );

        XmlPullParserFactory factory = XmlPullParserFactory.newInstance();
        factory.setNamespaceAware( true );
        XmlPullParser xpp = factory.newPullParser();

        container.setParser( xpp );
    }
View Full Code Here

Examples of org.xmlpull.v1.XmlPullParserFactory

    {
        this.container = new Dsmlv2Container( grammar.getLdapCodecService() );
        this.container.setGrammar( grammar );
        this.grammar = grammar;

        XmlPullParserFactory factory = XmlPullParserFactory.newInstance();
        factory.setNamespaceAware( true );
        XmlPullParser xpp = factory.newPullParser();

        container.setParser( xpp );
    }
View Full Code Here

Examples of org.xmlpull.v1.XmlPullParserFactory

     * @return a new {@link XmlPullParserFactory} configured for parsing Accurev
     *         XML files, or <code>null</code> if things go wrong.
     */
    public static XmlPullParserFactory getFactory() {
        synchronized (PARSER_FACTORY_CACHE) {
            final XmlPullParserFactory existingFactory = PARSER_FACTORY_CACHE.get(XmlPullParserFactory.class);
            if (existingFactory != null) {
                return existingFactory;
            }
            XmlPullParserFactory newFactory;
            try {
                newFactory = XmlPullParserFactory.newInstance();
            } catch (XmlPullParserException ex) {
                AccurevLauncher.logException("Unable to create new " + XmlPullParserFactory.class.getSimpleName(), ex,
                        logger, null);
                return null;
            }
            newFactory.setNamespaceAware(false);
            newFactory.setValidating(false);
            PARSER_FACTORY_CACHE.put(XmlPullParserFactory.class, newFactory);
            return newFactory;
        }
    }
View Full Code Here

Examples of org.xmlpull.v1.XmlPullParserFactory

    {
        this.container = new Dsmlv2Container();

        this.container.setGrammar( Dsmlv2ResponseGrammar.getInstance() );

        XmlPullParserFactory factory = XmlPullParserFactory.newInstance();
        factory.setNamespaceAware( true );
        XmlPullParser xpp = factory.newPullParser();

        container.setParser( xpp );
    }
View Full Code Here

Examples of org.xmlpull.v1.XmlPullParserFactory

    {
        this.container = new Dsmlv2Container();

        this.container.setGrammar( Dsmlv2Grammar.getInstance() );

        XmlPullParserFactory factory = XmlPullParserFactory.newInstance();
        factory.setNamespaceAware( true );
        XmlPullParser xpp = factory.newPullParser();

        container.setParser( xpp );
    }
View Full Code Here

Examples of org.xmlpull.v1.XmlPullParserFactory

        this.featureName = featureDescriptorName.getLocalPart();
        this.targetType = targetType;
        this.builder = new SimpleFeatureBuilder(targetType);
        this.axisOrder = axisOrder;

        XmlPullParserFactory factory;
        try {
            factory = XmlPullParserFactory.newInstance();
            factory.setNamespaceAware(true);
            factory.setValidating(false);

            // parse root element
            parser = factory.newPullParser();
            parser.setInput(inputStream, "UTF-8");
            parser.nextTag();
            parser.require(START_TAG, WFS.NAMESPACE, WFS.FeatureCollection.getLocalPart());

            String nof = parser.getAttributeValue(null, "numberOfFeatures");
View Full Code Here

Examples of org.xmlpull.v1.XmlPullParserFactory

   */
  public static PivotTableHandle parseOOXML(WorkBookHandle bk, /*Object cacheid, */Boundsheet sheet, InputStream ii) {
    Sxview ptview= null;
   
    try {
      XmlPullParserFactory factory = XmlPullParserFactory.newInstance();
      factory.setNamespaceAware(true);
      XmlPullParser xpp = factory.newPullParser();
      xpp.setInput(ii, null); // using XML 1.0 specification
      int eventType = xpp.getEventType();

      while (eventType != XmlPullParser.END_DOCUMENT) {
        if (eventType == XmlPullParser.START_TAG) {
View Full Code Here

Examples of org.xmlpull.v1.XmlPullParserFactory

  public static PivotCacheDefinition parseOOXML(WorkBookHandle bk, String cacheid, InputStream ii) {
    String ref= null;
    String sheet= null;
    int icache= 1;
    try {
      XmlPullParserFactory factory = XmlPullParserFactory.newInstance();
      factory.setNamespaceAware(true);
      XmlPullParser xpp = factory.newPullParser();
      xpp.setInput(ii, null); // using XML 1.0 specification
      int eventType = xpp.getEventType();

      while (eventType != XmlPullParser.END_DOCUMENT) {
        if (eventType == XmlPullParser.START_TAG) {
View Full Code Here

Examples of org.xmlpull.v1.XmlPullParserFactory

       * @param ii  InputStream
       * @see parseSheetOOXML
       */
      public void parseOOXML(WorkBookHandle bk, InputStream ii) {
        try {
          XmlPullParserFactory factory = XmlPullParserFactory.newInstance();
          factory.setNamespaceAware(true);
          XmlPullParser xpp = factory.newPullParser();
          xpp.setInput(ii, null); // using XML 1.0 specification
          int eventType = xpp.getEventType();
          while (eventType != XmlPullParser.END_DOCUMENT) {
            if (eventType == XmlPullParser.START_TAG) {
              int idx = 0;
View Full Code Here

Examples of org.xmlpull.v1.XmlPullParserFactory

    if (bk.getWorkBook().isSharedupes()) {
      bk.getWorkBook().setSharedupes(false);
      shareDups = true;
    }
    try {
      XmlPullParserFactory factory = XmlPullParserFactory.newInstance();
      factory.setNamespaceAware(true);
      XmlPullParser xpp = factory.newPullParser();

      xpp.setInput(ii, "UTF-8"); // using XML 1.0 specification
      int eventType = xpp.getEventType();
      while (eventType != XmlPullParser.END_DOCUMENT) {
        if (eventType == XmlPullParser.START_TAG) {
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.