java.lang.Object
com.github.hypfvieh.java.rtcompiler.resources.locator.AbstractResource
Bekannte direkte Unterklassen:
ByteArrResource, PathResource

public abstract class AbstractResource extends Object
Base of any resource found by AbstractResourceLocator.
Seit:
1.0.0 - 2024-01-26
Autor:
hypfvieh
  • Konstruktordetails

    • AbstractResource

      public AbstractResource(String _resourceName)
      Create a resource with the given name.
      Parameter:
      _resourceName - name
  • Methodendetails

    • getResourceName

      public String getResourceName()
      Returns the name of the resource.
      This might be a single name or a name with a path.
      Gibt zurück:
      String
    • getLastMod

      public long getLastMod()
      Returns the last modified date in milliseconds since the epoch.
      Defaults to 0 when no lastMod can be provided.
      Gibt zurück:
      long
    • open

      public abstract InputStream open() throws IOException
      Creates an InputStream for the underlying resource.
      The call must take care of closing this stream!
      Gibt zurück:
      InputStream
      Löst aus:
      IOException - when opening stream fails