public static FileObject createFileObjectWithContent(String content) throws IOException {
    final File tempFile = File.createTempFile("olv_temp", "");
    OutputStream out = new FileOutputStream(tempFile);
    IOUtils.write(content, out, Charset.forName("UTF-8"));
    IOUtils.closeQuietly(out);
    return VFSUtils.resolveFileObject(tempFile.toURI());
  }
Create temporary FileObject with content. Implementation will create file in temprary directory

@param content File content
@return FileObject
@throws IOException in case of IO problems
olv-core/src/main/java/pl/otros/logview/api/io/Utils.java