Package io.micronaut.starter.io
Class FileSystemOutputHandler
java.lang.Object
io.micronaut.starter.io.FileSystemOutputHandler
- All Implemented Interfaces:
OutputHandler
,Closeable
,AutoCloseable
-
Constructor Summary
ConstructorDescriptionFileSystemOutputHandler
(Project project, boolean inplace, ConsoleOutput console) FileSystemOutputHandler
(File directory, ConsoleOutput console) -
Method Summary
-
Constructor Details
-
FileSystemOutputHandler
public FileSystemOutputHandler(Project project, boolean inplace, ConsoleOutput console) throws IOException - Throws:
IOException
-
FileSystemOutputHandler
- Throws:
IOException
-
-
Method Details
-
getDefaultBaseDirectory
Resolve the default base directory.- Returns:
- The base directory
- Throws:
IOException
- If it cannot be resolved
-
getOutputLocation
- Specified by:
getOutputLocation
in interfaceOutputHandler
-
exists
- Specified by:
exists
in interfaceOutputHandler
-
write
- Specified by:
write
in interfaceOutputHandler
- Throws:
IOException
-
write
- Throws:
IOException
-
write
- Throws:
IOException
-
close
public void close()- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
-