- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 42 for TempFile (0.17 sec)
-
fess-crawler/src/main/java/org/codelibs/fess/crawler/util/TemporaryFileInputStream.java
*/ public TemporaryFileInputStream(final File tempFile) throws FileNotFoundException { this.tempFile = tempFile; fileInputStream = new FileInputStream(tempFile); } /** * Returns the temporary file associated with this input stream. * * @return the temporary file */ public File getTemporaryFile() { return tempFile; } /* * (non-Javadoc) *Registered: Sat Dec 20 11:21:39 UTC 2025 - Last Modified: Sat Nov 22 13:28:22 UTC 2025 - 4.1K bytes - Viewed (0) -
impl/maven-core/src/test/java/org/apache/maven/internal/transformation/impl/ConsumerPomArtifactTransformerTest.java
Path afterPomFile = Paths.get("src/test/resources/projects/transform/after.pom").toAbsolutePath(); Path tempFile = Files.createTempFile("", ".pom"); Files.delete(tempFile); try (InputStream expected = Files.newInputStream(beforePomFile)) { Model model = new Model(new MavenStaxReader().read(expected));Registered: Sun Dec 28 03:35:09 UTC 2025 - Last Modified: Thu Nov 06 18:32:25 UTC 2025 - 13.3K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/io/IoTestCase.java
*/ protected final File createTempDir() throws IOException { File tempFile = File.createTempFile("IoTestCase", ""); if (!tempFile.delete() || !tempFile.mkdir()) { throw new IOException("failed to create temp dir"); } filesToDelete.add(tempFile); return tempFile; } /**
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Sun Dec 22 03:38:46 UTC 2024 - 5.6K bytes - Viewed (0) -
fess-crawler/src/main/java/org/codelibs/fess/crawler/extractor/impl/AbstractExtractor.java
try { final File tempFile = File.createTempFile(prefix, suffix, directory); tempFile.setReadable(false, false); tempFile.setReadable(true, true); tempFile.setWritable(false, false); tempFile.setWritable(true, true); return tempFile; } catch (final IOException e) {Registered: Sat Dec 20 11:21:39 UTC 2025 - Last Modified: Wed Nov 19 08:55:01 UTC 2025 - 4.6K bytes - Viewed (0) -
fess-crawler/src/main/java/org/codelibs/fess/crawler/extractor/impl/TikaExtractor.java
} final File tempFile; final boolean isByteStream = inputStream instanceof ByteArrayInputStream; if (isByteStream) { inputStream.mark(0); // ByteArrayInputStream tempFile = null; } else { tempFile = createTempFile("tikaExtractor-", ".out", null); } try {Registered: Sat Dec 20 11:21:39 UTC 2025 - Last Modified: Sun Nov 23 12:19:14 UTC 2025 - 30.8K bytes - Viewed (0) -
guava-tests/test/com/google/common/io/ResourcesTest.java
// Check that we can find a resource if it is visible to the context class // loader, even if it is not visible to the loader of the Resources class. File tempFile = createTempFile(); PrintWriter writer = new PrintWriter(tempFile, "UTF-8"); writer.println("rud a chur ar an méar fhada"); writer.close(); // First check that we can't find it without setting the context loader.Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Tue Oct 28 16:03:47 UTC 2025 - 6.9K bytes - Viewed (0) -
internal/config/certs_test.go
func createTempFile(t testing.TB, prefix, content string) (tempFile string, err error) { t.Helper() var tmpfile *os.File if tmpfile, err = os.CreateTemp(t.TempDir(), prefix); err != nil { return tempFile, err } if _, err = tmpfile.Write([]byte(content)); err != nil { return tempFile, err } if err = tmpfile.Close(); err != nil { return tempFile, err } tempFile = tmpfile.Name() return tempFile, err }
Registered: Sun Dec 28 19:28:13 UTC 2025 - Last Modified: Tue Feb 18 16:25:55 UTC 2025 - 21.6K bytes - Viewed (0) -
compat/maven-compat/src/test/java/org/apache/maven/artifact/testutils/TestFileManager.java
markForDeletion(dir); return dir; } public synchronized File createTempFile() throws IOException { File tempFile = File.createTempFile(baseFilename, fileSuffix); tempFile.deleteOnExit(); markForDeletion(tempFile); return tempFile; } public void cleanUp() throws IOException { for (Iterator it = filesToDelete.iterator(); it.hasNext(); ) {
Registered: Sun Dec 28 03:35:09 UTC 2025 - Last Modified: Wed Sep 17 10:01:14 UTC 2025 - 4.8K bytes - Viewed (0) -
impl/maven-core/src/test/java/org/apache/maven/graph/ProjectSelectorTest.java
final File tempFile = File.createTempFile("maven-core-unit-test-pom", ".xml"); final String selector = tempFile.getName(); final MavenProject mavenProject = createMavenProject("maven-core"); mavenProject.setFile(tempFile); final boolean result = sut.isMatchingProject(mavenProject, selector, tempFile.getParentFile()); tempFile.delete(); assertEquals(true, result);
Registered: Sun Dec 28 03:35:09 UTC 2025 - Last Modified: Wed Sep 17 10:01:14 UTC 2025 - 8.6K bytes - Viewed (0) -
fess-crawler/src/main/java/org/codelibs/fess/crawler/client/AbstractCrawlerClient.java
try { final File tempFile = File.createTempFile(prefix, suffix, directory); tempFile.setReadable(false, false); tempFile.setReadable(true, true); tempFile.setWritable(false, false); tempFile.setWritable(true, true); return tempFile; } catch (final IOException e) {Registered: Sat Dec 20 11:21:39 UTC 2025 - Last Modified: Sat Sep 06 04:15:37 UTC 2025 - 9.7K bytes - Viewed (10)