Class Resource


  • public final class Resource
    extends java.lang.Object
    Resource utility.

    Copyright (c) 2013-2020 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
    BSD-style license. See OpenTrafficSim License.

    Version:
    $Revision$, $LastChangedDate$, by $Author$, initial version 23 mei 2018
    Author:
    Alexander Verbraeck, Peter Knoppers, Wouter Schakel
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.io.InputStream getResourceAsStream​(java.lang.String name)
      Obtains stream for resource, either in IDE or java.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • getResourceAsStream

        public static java.io.InputStream getResourceAsStream​(java.lang.String name)
        Obtains stream for resource, either in IDE or java.
        Parameters:
        name - String; name of resource
        Returns:
        the resolved input stream