    private static File newFile() throws IOException {
        File file = PlatformDependent.createTempFile("netty-", ".tmp", null);
        file.deleteOnExit();

        final FileOutputStream out = new FileOutputStream(file);
        out.write(data);
        out.close();
        return file;
    }
The software creates a temporary file in a directory whose permissions allow unintended actors to determine the file's existence or otherwise access that file.