Examples of readXML()


Examples of org.geotools.xml.Parser.readXML()

       
        // parse it up
        SLDParser parser = new SLDParser(styleFactory);
        try {
            parser.setInput(file);
            Style[] array = parser.readXML();
            if( array != null && array.length > 0 ){
                return array[0];
            }
        } catch (FileNotFoundException e) {
            return null; // well that is unexpected since f.exists()
View Full Code Here

Examples of org.gephi.project.spi.WorkspacePersistenceProvider.readXML()

                String name = reader.getLocalName();
                WorkspacePersistenceProvider pp = providers.get(name);
                if (pp != null) {
                    currentProvider = pp;
                    try {
                        pp.readXML(reader, workspace);
                    } catch (UnsupportedOperationException e) {
                    }
                }
            } else if (eventType.equals(XMLStreamReader.END_ELEMENT)) {
                if ("workspace".equalsIgnoreCase(reader.getLocalName())) {
View Full Code Here

Examples of org.sintef.umt.transformer.XMLUtility.readXML()

    }
  } 
 
    public Collection read(Reader reader){
      XMLUtility utility = new XMLUtility ();
      Collection collection = utility.readXML(reader);
      utility = null;
    return collection;
  }
 
}
View Full Code Here

Examples of org.sintef.umt.transformer.XMLUtility.readXML()

 
 
  public void readXML (File xmlsource) {
    try {
      XMLUtility util = new XMLUtility (_listener);       
      Collection coll = util.readXML(new FileReader(xmlsource));
      if (coll.size() > 0) {
        setModelElements (coll);
        Node docnode = (Node)(coll.iterator().next());
        _editor.setStyledInput(docnode);
      //  util.doParseValidate(new FileReader(xmlsource));
View Full Code Here

Examples of simtools.logging.LoggingEntryByteBuffer.readXML()

      LoggingBufferPanel lp=new LoggingBufferPanel(f,"test",null);
      f.getContentPane().add(lp);

      final LoggingEntryByteBuffer buffer=lp.getBuffer();
      try {
        buffer.readXML(new File(args[0]));
      } catch (ParserConfigurationException e1) {
        e1.printStackTrace();
        System.exit(0);
      } catch (SAXException e1) {
        e1.printStackTrace();
View Full Code Here

Examples of statechum.Configuration.readXML()

        Assert.assertEquals(configB, configA);
       
        // now test that we can serialise these
        {
          org.w3c.dom.Element xmlB = configB.writeXML(doc),xmlA=configA.writeXML(doc);
          Configuration loadedB=new Configuration();loadedB.readXML(xmlB);Configuration loadedA=new Configuration();loadedA.readXML(xmlA);
          Assert.assertEquals(loadedB, loadedA);
          Assert.assertEquals(loadedB, configA);
        }

        currentMethod.method.invoke(configB, new Object[]{currentMethod.AlternativeArg});
View Full Code Here

Examples of thredds.catalog.InvCatalogFactory.readXML()

  }

  private void crawlCatalogs( File topCatalogFile)
  {
    InvCatalogFactory fac = InvCatalogFactory.getDefaultFactory( false);
    InvCatalogImpl topCatalog = fac.readXML( topCatalogFile.toURI() );

    //topCatalog.g
    // TODO actually test something
  }
}
View Full Code Here

Examples of thredds.catalog.InvCatalogFactory.readXML()

    }
    InputStream expectedCatalogInputStream = expectedCatalogURIName.getClass().getResourceAsStream( expectedCatalogResourceName );

    // Read in expected result catalog.
    InvCatalogFactory factory = new InvCatalogFactory( "default", true );
    InvCatalogImpl expectedCatalog = factory.readXML( expectedCatalogInputStream, expectedCatalogURI);

    // Close the CatalogGenConf and the expected catalog InputStreams.
    try
    {
      expectedCatalogInputStream.close();
View Full Code Here

Examples of thredds.catalog.InvCatalogFactory.readXML()

    InputStream expectedCatalogInputStream = new FileInputStream( expectedCatalogDocFile);

    // Read in expected result catalog.
    InvCatalogFactory factory = new InvCatalogFactory( "default", true );
    InvCatalogImpl expectedCatalog = factory.readXML( expectedCatalogInputStream, expectedCatalogDocFile.toURI());

    expectedCatalogInputStream.close();

    if ( display )
    {
View Full Code Here

Examples of thredds.catalog.InvCatalogFactory.readXML()

      fail( "URISyntaxException: " + e.getMessage() );
      return;
    }

    InvCatalogFactory fac = InvCatalogFactory.getDefaultFactory( false );
    InvCatalogImpl cat = fac.readXML( catAsString.toString(), catURI );

    InvDatasetImpl ds = (InvDatasetImpl) cat.getDatasets().get( 0 );
    double d = ds.getDataSize();

    fac.writeXML(cat, System.out);
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.