Interface IoModule

All Superinterfaces:
ResourceModule
All Known Subinterfaces:
DirectoryModule, ZipModule
All Known Implementing Classes:
JarResourceModule

public non-sealed interface IoModule extends ResourceModule
A module which loads text files from some kind of IO, for example the file system.
  • Method Summary

    Modifier and Type
    Method
    Description
    @NotNull StringBuffer
    loadString(@NotNull ResourcePath path)
    Load a string buffer from the file pointed to by the specified path.

    Methods inherited from interface com.juliewoolie.delphi.resource.ResourceModule

    getModulePaths
  • Method Details

    • loadString

      @NotNull @NotNull StringBuffer loadString(@NotNull @NotNull ResourcePath path) throws IOException
      Load a string buffer from the file pointed to by the specified path.
      Parameters:
      path - File path
      Returns:
      The read file contents
      Throws:
      IOException - If an IO exception ocurred while reading the file