Package org.olat.core.util.vfs

Examples of org.olat.core.util.vfs.StreamedImpl


   * @param file The filepath relative to the classpath
   * @return a VFS leaf for the given file
   */
  public static VFSLeaf createLeafFromClasspath(Class clazz, String file) {
    ClasspathMediaResource cmr = new ClasspathMediaResource(clazz, file);
    StreamedImpl si = new StreamedImpl("vfs-from-classpath", null, cmr.getInputStream());   
    return si;
  }
View Full Code Here

TOP

Related Classes of org.olat.core.util.vfs.StreamedImpl

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.