Examples of parseFromReader()


Examples of com.adito.agent.client.util.XMLElement.parseFromReader()

                con.connect();
                System.out.println(MessageFormat.format(Messages.getString("VPNLauncher.sysout.connectedTo"), new Object[] { url } )); //$NON-NLS-1$

                XMLElement result = new XMLElement();
                result.parseFromReader(new InputStreamReader(con.getInputStream()));

                if (result.getName().equalsIgnoreCase("success")) { //$NON-NLS-1$
                    System.out.println(Messages.getString("VPNLauncher.sysout.syncOk")); //$NON-NLS-1$

                    /*
 
View Full Code Here

Examples of com.adito.boot.XMLElement.parseFromReader()

    if (log.isDebugEnabled())
      log.debug("Checking parameters");

    XMLElement element = new XMLElement();
    try {
      element.parseFromReader(new InputStreamReader(
          new ByteArrayInputStream(processParameters(
              session,
              descriptor
                  .createProcessedDescriptorElement(session),
              descriptor, shortcut).getBytes())));
View Full Code Here

Examples of com.jbidwatcher.util.xml.XMLElement.parseFromReader()

    }

    try {
      InputStreamReader isr = new InputStreamReader(new FileInputStream(loadFile));

      xmlFile.parseFromReader(isr);

      if(!xmlFile.getTagName().equals("searches")) {
        throw new XMLParseException(xmlFile.getTagName(), "SearchManager only recognizes <searches> tag!");
      } else {
        fromXML(xmlFile);
View Full Code Here

Examples of com.jbidwatcher.util.xml.XMLElement.parseFromReader()

    try {
      XMLElement xmlFile = new XMLElement(true);

      InputStreamReader isr = new InputStreamReader(new FileInputStream(canonicalFName));

      xmlFile.parseFromReader(isr);

      AuctionServerManager.getInstance().fromXML(xmlFile);
    } catch(IOException e) {
      JConfig.log().handleException("Error loading XML file with auctions: " + canonicalFName, e);
    }
View Full Code Here

Examples of com.l2fprod.contrib.nanoxml.XMLElement.parseFromReader()

  public static Skin loadThemePackDefinition(java.net.URL url)
    throws Exception {
    Skin skin = null;

    XMLElement element = new XMLElement();
    element.parseFromReader(new java.io.InputStreamReader(getInputStream(url)));

    checkRequiredVersion(element.getProperty("REQUIRE"));

    // reset any custom properties that may be set in the skin
    UIManager.put("JDesktopPane.backgroundEnabled", Boolean.FALSE);
View Full Code Here

Examples of net.sourceforge.nanoxml.XMLElement.parseFromReader()

        XMLElement xmlRun = new XMLElement();
        BufferedReader reader = null;
       
        try {
            reader = new BufferedReader(r);
            xmlRun.parseFromReader(reader);
   
            checkTag(xmlRun, RUN_RESULT);
           
            String attr;
            RunResult run = new RunResult(getValue(xmlRun, RUN_NAME, ""));
View Full Code Here

Examples of org.jnode.nanoxml.XMLElement.parseFromReader()

        }
        BufferedReader br = null;
        try {
            XMLElement elem = new XMLElement();
            br = new BufferedReader(new FileReader(file));
            elem.parseFromReader(br);
            if (!elem.getName().equals("plugin")) {
                throw new EmuException("File does not contain a 'plugin' descriptor: " + file);
            }
            return elem;
        } catch (IOException ex) {
View Full Code Here

Examples of org.jnode.nanoxml.XMLElement.parseFromReader()

                File file = argFile.getValue();
                XMLElement xml = new XMLElement();
                FileReader reader = null;
                try {
                    reader = new FileReader(file);
                    xml.parseFromReader(new BufferedReader(reader));
                    xml.setAttribute("alias", alias);
                    SyntaxBundle bundle =
                        new SyntaxSpecLoader().loadSyntax(new XMLSyntaxSpecAdapter(xml));
                    synMgr.add(bundle);
                } catch (IOException ex) {
View Full Code Here

Examples of org.jnode.nanoxml.XMLElement.parseFromReader()

public class NanoXmlTest {

    public static void main(String[] args)
        throws IOException {
        XMLElement xml = new XMLElement(new Hashtable(), true, false);
        xml.parseFromReader(new FileReader(args[0]));
        System.out.println(xml);
    }
}
View Full Code Here

Examples of org.jnode.nanoxml.XMLElement.parseFromReader()

            // Now parse plugin.xml
            root = new XMLElement(new Hashtable<Object, Object>(), true, false);
            final Reader r = new InputStreamReader(new ByteBufferInputStream(buf));
            try {
                root.parseFromReader(r);
            } finally {
                r.close();
            }
        } catch (IOException ex) {
            throw new PluginException("Plugin " + pluginUrl, ex);
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.