Schnittstelle ModuleDetector.FileSystem

Umschließende Klasse:
ModuleDetector

public static interface ModuleDetector.FileSystem
Facade for file system operations. May be replaced by stubs in test cases.
  • Methodenübersicht

    Modifizierer und Typ
    Methode
    Beschreibung
    find(Path root, String pattern)
    Returns all file names that match the specified pattern.
    open(String fileName)
    Creates an InputStream from the specified filename.
  • Methodendetails

    • find

      String[] find(Path root, String pattern)
      Returns all file names that match the specified pattern.
      Parameter:
      root - root directory to start the search from
      pattern - the Ant pattern to search for
      Gibt zurück:
      the found file names
    • open

      @MustBeClosed InputStream open(String fileName) throws IOException, InvalidPathException
      Creates an InputStream from the specified filename.
      Parameter:
      fileName - the file name
      Gibt zurück:
      the input stream
      Löst aus:
      IOException - if the stream could not be opened
      InvalidPathException - if the file name is invalid