Registry / testing / jimfs
library1.3.1javamavenunverified

Jimfs is an in-memory implementation of Java 7's java.nio.file abstract file system API.

<dependency> <groupId>com.google.jimfs</groupId> <artifactId>jimfs</artifactId> <version>1.3.1</version> </dependency>
INSTALL
IMPORT
SIG · JIMFS
J
jimfs
testingjavav1.3.1
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Jimfs
com.google.common.jimfs.Jimfs

Demonstrates creating an in-memory file system and writing/reading a file.

import com.google.common.jimfs.Jimfs; import java.nio.file.FileSystem; import java.nio.file.Files; import java.nio.file.Path; public class Example { public static void main(String[] args) throws Exception { FileSystem fs = Jimfs.newFileSystem(); Path path = fs.getPath("/test.txt"); Files.writeString(path, "Hello"); System.out.println(Files.readString(path)); } }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
1.3.1latest on Maven
Audit
Dependencies

No dependency data recorded yet.

Agent activity
6 hits · last 30 days
node
6
Resources
jimfs — mvn dependency:get jimfs · libregistry