- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 236 for toFile (0.05 sec)
-
src/test/java/org/codelibs/core/io/PropertiesUtilTest.java
/** * @author wyukawa * */ public class PropertiesUtilTest { URL url = ResourceUtil.getResource(getClass().getName().replace('.', '/') + ".txt"); File inputFile = URLUtil.toFile(url); /** * */ @Rule public TemporaryFolder tempFolder = new TemporaryFolder(); /** * @see org.junit.rules.ExpectedException */ @Rule
Registered: Fri Sep 05 20:58:11 UTC 2025 - Last Modified: Sat May 10 01:32:17 UTC 2025 - 9.6K bytes - Viewed (0) -
compat/maven-builder-support/src/main/java/org/apache/maven/building/FileSource.java
* * @return The underlying file, never {@code null}. * @deprecated Use {@link #getPath()} instead. */ @Deprecated public File getFile() { return path.toFile(); } /** * Gets the file of this source. * * @return The underlying file, never {@code null}. * @since 4.0.0 */ public Path getPath() { return path; }
Registered: Sun Sep 07 03:35:12 UTC 2025 - Last Modified: Wed Jan 15 18:51:29 UTC 2025 - 3K bytes - Viewed (0) -
okhttp/src/jvmTest/kotlin/okhttp3/RequestBodyTest.kt
} } private inline fun <T> assertOnFileDescriptor( content: String? = null, fn: (FileDescriptor) -> T, ): T = assertOnPath(content) { FileInputStream(filePath.toFile()).use { fis -> fn(fis.fd) } } private inline fun <T> assertOnPath( content: String? = null, fn: (okio.Path) -> T, ): T { FileSystem.SYSTEM.write(filePath) {
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Wed Mar 19 19:25:20 UTC 2025 - 3.6K bytes - Viewed (1) -
src/main/java/org/codelibs/fess/thumbnail/ThumbnailManager.java
if (varPath != null) { baseDir = new File(varPath, THUMBNAILS_DIR_NAME); } else { baseDir = ResourceUtil.getThumbnailPath().toFile(); } } if (baseDir.mkdirs()) { logger.info("Created: {}", baseDir.getAbsolutePath()); } if (!baseDir.isDirectory()) {
Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Tue Aug 19 14:09:36 UTC 2025 - 26.9K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/util/ResourceUtil.java
*/ public static File[] getPluginJarFiles(final FilenameFilter filter) { final File libDir = getPluginPath().toFile(); if (!libDir.exists()) { return new File[0]; } return libDir.listFiles(filter); } /** * Resolves system properties in a given string.
Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Thu Jul 17 08:28:31 UTC 2025 - 14.1K bytes - Viewed (0) -
src/test/java/org/codelibs/fess/thumbnail/ThumbnailManagerTest.java
private File tempDir; @Override public void setUp() throws Exception { super.setUp(); // Create temp directory for testing tempDir = Files.createTempDirectory("thumbnail_test").toFile(); tempDir.deleteOnExit(); // Create a test thumbnail manager with minimal initialization thumbnailManager = new TestThumbnailManager(); thumbnailManager.baseDir = tempDir;
Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Tue Aug 19 14:09:36 UTC 2025 - 18.7K bytes - Viewed (0) -
src/main/java/org/codelibs/core/io/FileUtil.java
assertArgumentNotEmpty("encoding", encoding); final URL url = ResourceUtil.getResource(path); if (url.getProtocol().equals("file")) { return readText(URLUtil.toFile(url), encoding); } final InputStream is = URLUtil.openStream(url); try { final Reader reader = ReaderUtil.create(new BufferedInputStream(is, DEFAULT_BUF_SIZE), encoding);
Registered: Fri Sep 05 20:58:11 UTC 2025 - Last Modified: Thu Jul 31 08:16:49 UTC 2025 - 8.8K bytes - Viewed (0) -
okhttp/src/commonJvmAndroid/kotlin/okhttp3/Cache.kt
val directory: File get() = cache.directory.toFile() @get:JvmName("directoryPath") val directoryPath: Path get() = cache.directory @JvmName("-deprecated_directory") @Deprecated( message = "moved to val", replaceWith = ReplaceWith(expression = "directory"), level = DeprecationLevel.ERROR, ) fun directory(): File = cache.directory.toFile()
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Sat Aug 16 09:39:51 UTC 2025 - 26.9K bytes - Viewed (0) -
src/test/java/org/codelibs/fess/util/ThreadDumpUtilTest.java
// Read and verify file content List<String> lines = new ArrayList<>(); try (BufferedReader reader = new BufferedReader(new InputStreamReader(new FileInputStream(tempFile.toFile()), Constants.CHARSET_UTF_8))) { String line; while ((line = reader.readLine()) != null) { lines.add(line); } }
Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Sat Jul 12 07:34:10 UTC 2025 - 15.5K bytes - Viewed (0) -
src/main/java/org/codelibs/core/io/TraversalUtil.java
* @return The base directory above the root package. */ protected static File getBaseDir(final URL url, final String baseName) { assertArgumentNotNull("url", url); File file = URLUtil.toFile(url); final String[] paths = StringUtil.split(baseName, "/"); for (final String path : paths) { file = file.getParentFile(); } return file; } /**
Registered: Fri Sep 05 20:58:11 UTC 2025 - Last Modified: Thu Jul 31 08:16:49 UTC 2025 - 18.6K bytes - Viewed (0)