public class FileCollectionBackedArchiveTextResource extends FileCollectionBackedTextResource {
public FileCollectionBackedArchiveTextResource(final FileOperations fileOperations,
final TemporaryFileProvider tempFileProvider,
final FileCollection fileCollection,
final String path, Charset charset) {
super(tempFileProvider, new LazilyInitializedFileTree() {
@Override
public FileTree createDelegate() {
File archiveFile = fileCollection.getSingleFile();
String fileExtension = Files.getFileExtension(archiveFile.getName());
FileTree archiveContents = fileExtension.equals("jar") || fileExtension.equals("zip")