Package org.xmlpull.v1

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


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

  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

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

    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

       
        // set the default date format
        bk.getWorkBook().dateFormat = DateConverter.DateFormat.OOXML_1900;
       
        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

            dxfs=    new ArrayList<Dxf>();
            fmts=      new HashMap();
            nXfs= 0;                  // position in xfrecs array is vital as cells will reference the styleId/xfId
            int indexedColor= 0;              // index into COLOR_TABLE
           
            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)
            {
View Full Code Here

            String cellAddr = null;
            int formatId= 0;
            String type= "";
            shExternalLinkInfo= new HashMap<String, String>();
           
            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

     * to define the text box itself including position and size, plus the vml elements
     * also define whether the note is hidden
     */
    void parseCommentsXML(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();

            java.util.Stack lastTag= new java.util.Stack();     // keep track of element hierarchy
           
View Full Code Here

            The visible box shown for comments attached to cells is persisted using VML. The comment contents are
            stored separately as part of SpreadsheetML.
         */    
        StringBuffer savedVml= new StringBuffer();
        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();
            // NOTE: since vml controls visibility (hidden or shown), text box size, etc., notes are created upon VML parsing
            // and edited here for the actual text and formats ... ms's legacy drawing stuff makes for alot of convoluted processing ((;
            FastAddVector nhs= new FastAddVector();
View Full Code Here

TOP

Related Classes of org.xmlpull.v1.XmlPullParserFactory

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.