The FileName class encapsulates the name of a file without any path or directory information. It provides methods to manipulate and retrieve information about the file name.
Example usage:
HtmlViewOptions options = HtmlViewOptions.forEmbeddedResources();
options.getArchiveOptions().setFileName(new FileName("my-file-name"));
final LoadOptions loadOptions = new LoadOptions(FileType.ZIP);
try (final Viewer viewer = new Viewer(documentPath, loadOptions)) {
viewer.view(options);
// Use the viewer object for archive document rendering
}
Note: The FileName class is used to work with file names and does not handle file operations or manipulation.