class LocalFsFileOutput implements FileOutput {

    @Override
    public OutputStream acquireOutputStream(Executor executor, URI uri, WriterProjection.CompressionType compressionType) throws IOException {<FILL_FUNCTION_BODY>}
}

        if (uri.getHost() != null) {
            throw new IllegalArgumentException("the URI host must be defined");
        }
        String path = uri.getPath();
        File outFile = new File(path);
        if (outFile.exists()) {
            if (outFile.isDirectory()) {
                throw new IOException("Output path is a directory: " + path);
            }
        }
        OutputStream os = new FileOutputStream(outFile);
        if (compressionType != null) {
            os = new GZIPOutputStream(os);
        }
        return new BufferedOutputStream(os);
    
<no_super_class>