Package org.assertj.core.internal
Class NioFilesWrapper
- java.lang.Object
-
- org.assertj.core.internal.NioFilesWrapper
-
public class NioFilesWrapper extends java.lang.Object
Wrapper for
to testFiles
Paths
.
-
-
Field Summary
Fields Modifier and Type Field Description private static NioFilesWrapper
INSTANCE
-
Constructor Summary
Constructors Modifier Constructor Description private
NioFilesWrapper()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
exists(java.nio.file.Path path, java.nio.file.LinkOption... options)
(package private) static NioFilesWrapper
instance()
Returns the singleton instance of this class.boolean
isDirectory(java.nio.file.Path path)
boolean
isExecutable(java.nio.file.Path path)
boolean
isReadable(java.nio.file.Path path)
boolean
isRegularFile(java.nio.file.Path path)
boolean
isSymbolicLink(java.nio.file.Path path)
boolean
isWritable(java.nio.file.Path path)
java.nio.file.DirectoryStream<java.nio.file.Path>
newDirectoryStream(java.nio.file.Path path, java.util.function.Predicate<java.nio.file.Path> matcher)
java.io.InputStream
newInputStream(java.nio.file.Path path, java.nio.file.OpenOption... options)
boolean
notExists(java.nio.file.Path path, java.nio.file.LinkOption... options)
long
size(java.nio.file.Path path)
-
-
-
Field Detail
-
INSTANCE
private static final NioFilesWrapper INSTANCE
-
-
Method Detail
-
instance
static NioFilesWrapper instance()
Returns the singleton instance of this class.- Returns:
- the singleton instance of this class.
-
isRegularFile
public boolean isRegularFile(java.nio.file.Path path)
-
isSymbolicLink
public boolean isSymbolicLink(java.nio.file.Path path)
-
isDirectory
public boolean isDirectory(java.nio.file.Path path)
-
exists
public boolean exists(java.nio.file.Path path, java.nio.file.LinkOption... options)
-
notExists
public boolean notExists(java.nio.file.Path path, java.nio.file.LinkOption... options)
-
isReadable
public boolean isReadable(java.nio.file.Path path)
-
isWritable
public boolean isWritable(java.nio.file.Path path)
-
isExecutable
public boolean isExecutable(java.nio.file.Path path)
-
newInputStream
public java.io.InputStream newInputStream(java.nio.file.Path path, java.nio.file.OpenOption... options) throws java.io.IOException
- Throws:
java.io.IOException
-
newDirectoryStream
public java.nio.file.DirectoryStream<java.nio.file.Path> newDirectoryStream(java.nio.file.Path path, java.util.function.Predicate<java.nio.file.Path> matcher) throws java.io.IOException
- Throws:
java.io.IOException
-
size
public long size(java.nio.file.Path path) throws java.io.IOException
- Throws:
java.io.IOException
-
-