Package railo.runtime

Examples of railo.runtime.Info


      ResourceProvider frp = ResourcesImpl.getFileResourceProvider();
       
        try {
            return frp.getResource(".").getCanonicalResource();
        } catch (IOException e) {}
        URL url=new Info().getClass().getClassLoader().getResource(".");
        try {
            return frp.getResource(FileUtil.URLToFile(url).getAbsolutePath());
        } catch (MalformedURLException e) {
            return null;
        }
View Full Code Here


            }
        }
       
       
    // pathes from url class Loader (dynamic loaded classes)
        ClassLoader cl = new Info().getClass().getClassLoader();
        if(cl instanceof URLClassLoader)
            getClassPathesFromClassLoader((URLClassLoader) cl, pathes);
       
        return classPathes=(Resource[]) pathes.toArray(new Resource[pathes.size()]);
       
View Full Code Here

        if(!file.exists()){
          ResourceUtil.removeChildrenEL(temp, new ExtensionResourceFilter(".lmdp"));
         
              file.createFile(true);
              //print.out(new Info().getClass().getResource("/resource/lib/pd4ml.jar"));
              InputStream jar = new Info().getClass().getResourceAsStream("/resource/lib/pd4ml.jar");
            IOUtil.copy(jar, file,true);
            }
            ClassLoader parent = Version.class.getClassLoader();
            classLoader=new URLClassLoader(new URL[]{FileWrapper.toFile(file).toURL()},parent);
         
View Full Code Here

     * @param resourcePath
   * @throws IOException
   */
  public void loadFile(Resource res,String resourcePath) throws IOException {
    res.createFile(true);
    InputStream is = new Info().getClass().getResourceAsStream(resourcePath);
        IOUtil.copy(is,res,true);
  }
View Full Code Here

   * @throws IOException
   */
  private final static void createSearchFile(Resource searchFile) throws IOException {
 
    searchFile.createFile(true);
    InputStream in = new Info().getClass().getResourceAsStream("/resource/search/default.xml");
    IOUtil.copy(in,searchFile,true);
     
  }
View Full Code Here


  static String createMD5FromResource(String resource) throws IOException {
    InputStream is = null;
    try {
      is = new Info().getClass().getResourceAsStream(resource);
      byte[] barr = IOUtil.toBytes(is);
      return MD5.getDigestAsString(barr);
    }
    finally {
      IOUtil.closeEL(is);
View Full Code Here

   * @param file
   * @throws IOException
   */
  static void createFileFromResourceCheckSizeDiff(String resource, Resource file) throws IOException {
    ByteArrayOutputStream baos = new ByteArrayOutputStream();
    IOUtil.copy(new Info().getClass().getResourceAsStream(resource), baos, true, false);
    byte[] barr = baos.toByteArray();

    if (file.exists()) {
      long trgSize = file.length();
      long srcSize = barr.length;
View Full Code Here

   * @throws IOException
   */
  static void createFileFromResource(String resource, Resource file, String password) throws IOException {
    SystemOut.printDate(SystemUtil.getPrintWriter(SystemUtil.OUT), "write file:" + file);
    file.createNewFile();
    IOUtil.copy(new Info().getClass().getResourceAsStream(resource), file, true);
  }
View Full Code Here

public class FlashEngineDummy implements FlashEngine {

  @Override
  public InputStream createFlash(String input) {
    return new Info().getClass().getResourceAsStream("/resource/media/flash/railo.swf");
  }
View Full Code Here

TOP

Related Classes of railo.runtime.Info

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.