Skip to content

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.

A File, or a String path that is not in the classpath but exists on disk, gives one; its id is the absolute path.

ReturnsSignatureSummary
FileAssetof(File file) factoryCreates the asset of file.

ReturnsSignatureSummary
InputStreamopen()Opens the file; throws IOException when it does not exist or cannot be read.
FilegetFile()Returns the file.
Inherited from Asset (5)

isRemote · peek · read · toString · getUniqueId

FileAsset of(File file) factory

Creates the asset of file.

InputStream open()

Opens the file; throws IOException when it does not exist or cannot be read.

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

Report a problem with this page