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 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(Path path, LinkOption... options)
(package private) static NioFilesWrapper
instance()
Returns the singleton instance of this class.boolean
isDirectory(Path path)
boolean
isExecutable(Path path)
boolean
isReadable(Path path)
boolean
isRegularFile(Path path)
boolean
isSymbolicLink(Path path)
boolean
isWritable(Path path)
DirectoryStream<Path>
newDirectoryStream(Path path, Predicate<Path> matcher)
InputStream
newInputStream(Path path, OpenOption... options)
boolean
notExists(Path path, LinkOption... options)
long
size(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(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
-
size
public long size(Path path) throws IOException
- Throws:
IOException
-
-