MinecraftDirectoryFontAssetSource
Directory-backed pack source that closes each enumeration and read before returning. Reads reject symbolic links whose resolved target escapes the selected directory. The caller must not modify the directory concurrently with snapshot loading.
Parameters
existing pack directory.
Throws
when the directory is not a directory.
when the directory cannot be resolved.
Functions
Lists available canonical pack-relative file paths.
Lists paths under inclusive entry and path ceilings, checking while enumerating where possible. The default checks an already bounded original paths result before loader copying.
Enumerates paths while reporting each examined entry before validation or filtering. Directory and ignored entries count even when absent from the returned set; implementations must stop if the callback throws. The callback is synchronous, owner-thread-only, and must not be retained; late or foreign-thread calls fail before changing loader counters. The default reports the bounded original result, so sources that filter physical entries must override this method.
Reads one complete file without retaining a stream.
Reads one asset under inclusive encoded-byte and path ceilings. Streaming implementations must stop before allocating oversized input and close streams on success and failure. The default checks the already bounded original read result before a loader copy.