Daily Shaarli

All links of one day in a single page.

June 7, 2024

https://jenkov.com/tutorials/java-concurrency/threadlocal.html
Eclipse/UNC Paths - Eclipsepedia
performance - How to retrieve a list of directories QUICKLY in Java? - Stack Overflow
thumbnail

Suppose a very simple program that lists out all the subdirectories of a given directory. Sound simple enough? Except the only way to list all subdirectories in Java is to use FilenameFilter combined

How to find files that match a wildcard string in Java? - Stack Overflow
thumbnail
Note:

public static <T, E> Set<T> getKeysByValue(Map<T, E> map, E value) {
return map.entrySet()
.stream()
.filter(entry -> Objects.equals(entry.getValue(), value))
.map(Map.Entry::getKey)
.collect(Collectors.toSet());
}

Java AES Encryption and Decryption: AES-256 Example
thumbnail

Learn to use AES-256 bit encryption to create secure passwords and decryption for password validation in Java, with examples.

The structure of a PKZip file
How can I restart a Java application? - Stack Overflow
thumbnail
How to change file extension at runtime in Java - Stack Overflow
thumbnail
java - Recursively list all files within a directory using nio.file.DirectoryStream; - Stack Overflow
thumbnail
Java: List Files in a Directory

A lot of applications handle files in some way and file manipulation is one of the core knowledges in any programming language. In order to manipulate files,...

java - zip4j setFileNameCharset not working - Stack Overflow
thumbnail
Rename a file using Java - Stack Overflow
thumbnail