Interface PathResolver

All Known Implementing Classes:
PathResolver.FixedDirPathResolver, PathResolver.TempDirPathResolver

public interface PathResolver
ファイルパスを解決するインタフェース
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Interface
    Description
    static class 
    指定された固定のパスを起点にパスを解決するくん。 デフォルトの固定パスは./dataでシステムプロパティcsv.permanent.directoryが 指定されている場合はその指定を優先する。
    static class 
    OSのtmpファイルパスを起点にパスを解決するくん。 生成したtempディレクトリとresolveされたファイルはFile.deleteOnExit()を 設定しているためJavaプロセス終了後に自動的に削除される。
  • Method Summary

    Modifier and Type
    Method
    Description
    このリゾルバーインスタンスが基準としているディレクトリ部を取得
    ファイル名をディレクトリ部も含めたパスオブジェクトに解決する
  • Method Details

    • resolve

      Path resolve(String file)
      ファイル名をディレクトリ部も含めたパスオブジェクトに解決する

      Parameters:
      file - ファイル名
      Returns:
      パス
    • getBaseDir

      Path getBaseDir()
      このリゾルバーインスタンスが基準としているディレクトリ部を取得

      Returns:
      ディレクトリ部のパス