IndexingConfig implements Serializable { @NotNull public final File createDerivedTempFile(@NotNull String filename) throws IndexingException { try { return Util.createDerivedTempFile(filename, getTempDir()); } catch (IOException e) { throw new IndexingException(e); } }  final boolean isDetectExecutableArchives(); final void setDetectExecutableArchives(boolean detectExecutableArchives); final boolean isIndexFilenames(); final void setIndexFilenames(boolean indexFilenames); @NotNull final File getTempDir(); final void setTempDir(@Nullable File tempDir); final boolean isStoreRelativePaths(); final void setStoreRelativePaths(boolean storeRelativePaths); @NotNull final Path getStorablePath(@NotNull File file); @NotNull static Path getStorablePath(	@NotNull File file,
										boolean storeRelativePaths); @NotNull final File createDerivedTempFile(@NotNull String filename); final void checkDiskSpaceInTempDir(long requiredSpace); @NotNull final Collection<String> getHtmlExtensions(); final boolean isHtmlPairing(); final void setHtmlPairing(boolean htmlPairing); @Immutable @NotNull final List<String> getTextExtensions(); final void setTextExtensions(@NotNull Collection<String> textExtensions); @Immutable @NotNull final List<String> getZipExtensions(); final void setZipExtensions(@NotNull Collection<String> zipExtensions); @Immutable @NotNull final List<PatternAction> getPatternActions(); final void setPatternActions(@NotNull List<PatternAction> patternActions); @NotNull final TArchiveDetector createZipDetector(); final boolean isArchive(@NotNull String filename); @Nullable final SolidArchiveFactory getSolidArchiveFactory(@NotNull String filename); final boolean isSolidArchive(@NotNull String filename); final boolean isWatchFolders(); final void setWatchFolders(boolean watchFolders); static final List<String> hiddenZipExtensions; }
@Test public void testCreateCustomTempFile() throws Exception { IndexingConfig config = new IndexingConfig(); String tempFilename = config.createDerivedTempFile("test.pdf").getName(); assertTrue(tempFilename.startsWith("test")); assertTrue(tempFilename.endsWith(".pdf")); }