Klasse AbstractResource
java.lang.Object
com.github.hypfvieh.java.rtcompiler.resources.locator.AbstractResource
- Bekannte direkte Unterklassen:
ByteArrResource
,PathResource
Base of any resource found by
AbstractResourceLocator
.- Seit:
- 1.0.0 - 2024-01-26
- Autor:
- hypfvieh
-
Konstruktorübersicht
KonstruktorenKonstruktorBeschreibungAbstractResource
(String _resourceName) Create a resource with the given name. -
Methodenübersicht
Modifizierer und TypMethodeBeschreibunglong
Returns the last modified date in milliseconds since the epoch.
Defaults to 0 when no lastMod can be provided.Returns the name of the resource.
This might be a single name or a name with a path.abstract InputStream
open()
Creates anInputStream
for the underlying resource.
The call must take care of closing this stream!
-
Konstruktordetails
-
AbstractResource
Create a resource with the given name.- Parameter:
_resourceName
- name
-
-
Methodendetails
-
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
Creates anInputStream
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
-