Class FileInput

java.lang.Object
com.xebisco.yield.FileInput
Direct Known Subclasses:
AbstractTexture, Font, SpritesheetTexture

public class FileInput extends Object
This class represents a file input with its path and format.
  • Constructor Details

    • FileInput

      public FileInput(String path)
      Constructs a new FileInput object with the given path.
      Parameters:
      path - the path of the file
  • Method Details

    • path

      public String path()
      Returns the path of the file.
      Returns:
      the path of the file
    • fileFormat

      public String fileFormat()
      Returns the format of the file.
      Returns:
      the format of the file (e.g., "TXT", "JPG", "WAV") or null if the format could not be determined