FileAsset
final class FileAsset
Extends: Asset
Package: dev.joid.lib.asset.impl · Module: core · Source: FileAsset.java
An asset read from a file on disk.
Description
Section titled “Description”A File, or a String path that is not in the classpath but exists on disk, gives one; its id is the absolute path.
Learn more
Section titled “Learn more”Creation
Section titled “Creation”| Returns | Signature | Summary |
|---|---|---|
FileAsset | of(File file) factory | Creates the asset of file. |
Methods
Section titled “Methods”| Returns | Signature | Summary |
|---|---|---|
InputStream | open() | Opens the file; throws IOException when it does not exist or cannot be read. |
File | getFile() | Returns the file. |
Creation details
Section titled “Creation details”FileAsset of(File file) factory
Creates the asset of file.
Method details
Section titled “Method details”InputStream open()
Opens the file; throws IOException when it does not exist or cannot be read.
getFile
Section titled “getFile”File getFile()
Returns the file.
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
