Package io.micronaut.starter.io
Class FileSystemOutputHandler
java.lang.Object
io.micronaut.starter.io.FileSystemOutputHandler
- All Implemented Interfaces:
OutputHandler,Closeable,AutoCloseable
-
Constructor Summary
ConstructorsConstructorDescriptionFileSystemOutputHandler(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:
getOutputLocationin interfaceOutputHandler
-
exists
- Specified by:
existsin interfaceOutputHandler
-
write
- Specified by:
writein interfaceOutputHandler- Throws:
IOException
-
write
- Throws:
IOException
-
write
- Throws:
IOException
-
close
public void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable
-