StreamAssetLocator
class StreamAssetLocator
Implements: IAssetLocator
Package: dev.joid.lib.asset.locator.impl · Module: core · Source: StreamAssetLocator.java
The built-in locator that turns an InputStream into a StreamAsset.
Learn more
Section titled “Learn more”Creation
Section titled “Creation”| Returns | Signature | Summary |
|---|---|---|
| StreamAssetLocator() | Creates the locator. |
Methods
Section titled “Methods”| Returns | Signature | Summary |
|---|---|---|
boolean | supports(Object handle) | If true, handle is an InputStream. |
Asset | locate(Object handle) | Returns the StreamAsset of the stream. |
Creation details
Section titled “Creation details”StreamAssetLocator
Section titled “StreamAssetLocator”StreamAssetLocator()
Creates the locator.
Method details
Section titled “Method details”supports
Section titled “supports”boolean supports(Object handle)
If true, handle is an InputStream.
locate
Section titled “locate”Asset locate(Object handle)
Returns the StreamAsset of the stream.
fluent returns the instance, typed for chaining · factory creates an instance · signal also accepts a value that follows signals, as a signal, an expression or a lambda (When does JOID compute this value again?) · hook called by JOID, override it · abstract you implement it · default interface method with a body · static called on the class · protected visible to subclasses
