Interface SystemAccess
-
- All Known Implementing Classes:
RealSystemAccess
public interface SystemAccess
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interfaceSystemAccess.Consolestatic classSystemAccess.HaltingException
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description SystemAccess.Consoleconsole()voidcopyDirectory(Path source, Path target)PathcreateDirectory(Path dir, FileAttribute<?>... attrs)PathcreateTemporaryDirectory(String prefix, FileAttribute<?>... attrs)PathcurrentWorkingDirectory()PrintStreamerr()<T> Texit(int status)Pathmove(Path source, Path target, CopyOption... options)PrintStreamout()voidrecursiveDelete(Path tmpNiogit)voidsetProperty(String name, String value)
-
-
-
Method Detail
-
exit
<T> T exit(int status) throws SystemAccess.HaltingException- Returns:
- This method never returns normally. Either the JVM exits, or an exception is thrown. This return value, is just a convenience.
- Throws:
SystemAccess.HaltingException- Thrown for implementations that do not acutally exit the JVM so that execution is interrupted.
-
console
SystemAccess.Console console()
-
err
PrintStream err()
-
out
PrintStream out()
-
move
Path move(Path source, Path target, CopyOption... options) throws IOException
- Throws:
IOException
-
createDirectory
Path createDirectory(Path dir, FileAttribute<?>... attrs) throws IOException
- Throws:
IOException
-
createTemporaryDirectory
Path createTemporaryDirectory(String prefix, FileAttribute<?>... attrs) throws IOException
- Throws:
IOException
-
currentWorkingDirectory
Path currentWorkingDirectory()
-
recursiveDelete
void recursiveDelete(Path tmpNiogit) throws IOException
- Throws:
IOException
-
copyDirectory
void copyDirectory(Path source, Path target) throws IOException
- Throws:
IOException
-
-