java.lang.Object
nl.tudelft.simulation.dsol.swing.gui.util.Resource

public final class Resource extends Object
Resource utility. Code based on OpenTrafficSim project component with the same purpose.

Copyright (c) 2020-2024 Delft University of Technology, Jaffalaan 5, 2628 BX Delft, the Netherlands. All rights reserved. See for project information DSOL Manual. The DSOL project is distributed under a three-clause BSD-style license, which can be found at DSOL License.

Author:
Alexander Verbraeck, Peter Knoppers, Wouter Schakel
  • Method Details

    • getResourceAsStream

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