Package org.assertj.core.internal
Class NioFilesWrapper
- java.lang.Object
-
- org.assertj.core.internal.NioFilesWrapper
-
-
Field Summary
Fields Modifier and Type Field Description private static NioFilesWrapperINSTANCE
-
Constructor Summary
Constructors Constructor Description NioFilesWrapper()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanexists(Path path, LinkOption... options)static NioFilesWrapperinstance()Returns the singleton instance of this class.booleanisDirectory(Path path)booleanisExecutable(Path path)booleanisReadable(Path path)booleanisRegularFile(Path path)booleanisSymbolicLink(Path path)booleanisWritable(Path path)DirectoryStream<Path>newDirectoryStream(Path path, Predicate<Path> matcher)InputStreamnewInputStream(Path path, OpenOption... options)booleannotExists(Path path, LinkOption... options)
-
-
-
Field Detail
-
INSTANCE
private static final NioFilesWrapper INSTANCE
-
-
Method Detail
-
instance
public static NioFilesWrapper instance()
Returns the singleton instance of this class.- Returns:
- the singleton instance of this class.
-
isRegularFile
public boolean isRegularFile(Path path)
-
isSymbolicLink
public boolean isSymbolicLink(Path path)
-
isDirectory
public boolean isDirectory(Path path)
-
exists
public boolean exists(Path path, LinkOption... options)
-
notExists
public boolean notExists(Path path, LinkOption... options)
-
isReadable
public boolean isReadable(Path path)
-
isWritable
public boolean isWritable(Path path)
-
isExecutable
public boolean isExecutable(Path path)
-
newInputStream
public InputStream newInputStream(Path path, OpenOption... options) throws IOException
- Throws:
IOException
-
newDirectoryStream
public DirectoryStream<Path> newDirectoryStream(Path path, Predicate<Path> matcher) throws IOException
- Throws:
IOException
-
-