Package org.nutz.resource

Examples of org.nutz.resource.NutResource


   */
  protected static InputStream _input(File file) throws IOException {
    if (file.exists())
      return new FileInputStream(file);
    if (Scans.isInJar(file)) {
      NutResource nutResource = Scans.makeJarNutResource(file);
      if (nutResource != null)
        return nutResource.getInputStream();
    }
    return null;
  }
View Full Code Here


     */
    protected static InputStream _input(File file) throws IOException {
        if (file.exists())
            return new FileInputStream(file);
        if (Scans.isInJar(file)) {
            NutResource nutResource = Scans.makeJarNutResource(file);
            if (nutResource != null)
                return nutResource.getInputStream();
        }
        throw new FileNotFoundException(file.toString());
    }
View Full Code Here

     */
    protected static InputStream _input(File file) throws IOException {
        if (file.exists())
            return new FileInputStream(file);
        if (Scans.isInJar(file)) {
            NutResource nutResource = Scans.makeJarNutResource(file);
            if (nutResource != null)
                return nutResource.getInputStream();
        }
        throw new FileNotFoundException(file.toString());
    }
View Full Code Here

TOP

Related Classes of org.nutz.resource.NutResource

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.