Examples of OutputFile


Examples of org.xmlvm.proc.out.OutputFile

    return transformFile(file.getName(), universalFile, write);
  }

  private static String transformFile(String filename, UniversalFile universalFile, boolean write)
  {
    OutputFile classFile= new OutputFile(universalFile);
    CompilationBundle resources= new CompilationBundle();
    OutputFile outputFile= deXmlvmOutputProcess.generateDEXmlvmFile(classFile, resources);
    Collection<XmlvmResource> resources2= resources.getResources();
    boolean writing= write;
    if (writing)
      outputFile.write();

    String fileName= "";
    String fileAsString= null;
    for (XmlvmResource xmlvmResource : resources2)
    {
      OutputFile runXSLT= XsltRunner.runXSLT("xmlvm2js.xsl", xmlvmResource.getXmlvmDocument());
      if (writing)
      {
        runXSLT.setLocation(".");
        fileName= filename + ".js";
        runXSLT.setFileName(fileName);
        runXSLT.write();
      }
      fileAsString= runXSLT.getData().getFileAsString();
    }
    return fileAsString;
  }
View Full Code Here

Examples of org.xmlvm.proc.out.OutputFile

        if (resource == null)
        {
          continue;
        }
        Log.debug("JavaScriptOutputProcess: Processing " + resource.getName());
        OutputFile file= generateJavaScript(resource);
        file.setLocation(arguments.option_out());
        String packageName= resource.getPackageName().replace('.', '_');
        String resourceName= resource.getName();
        Log.debug("RESOURCE NAME: " + resourceName);

        String fileName= resourceName + JS_EXTENSION;
        if (!packageName.isEmpty())
        {
          fileName= packageName + '_' + fileName;
        }
        file.setFileName(fileName);
        resources.addOutputFile(file);
      }
    }
View Full Code Here

Examples of org.xmlvm.proc.out.OutputFile

      }
      DocumentWrapper docw= new DocumentWrapper(doc, "", ((Controller) transformer).getConfiguration());
      Result result= new StreamResult(writer);
      transformer.transform(docw, result);

      return new OutputFile(writer.toString());
    }
    catch (TransformerException e)
    {
      Log.error(TAG, e.getMessage());
    }
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.