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 test methods throwingFiles
IOException
.
-
-
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 (package private) static NioFilesWrapper
instance()
java.nio.file.DirectoryStream<java.nio.file.Path>
newDirectoryStream(java.nio.file.Path dir, java.nio.file.DirectoryStream.Filter<? super java.nio.file.Path> filter)
java.io.InputStream
newInputStream(java.nio.file.Path path, java.nio.file.OpenOption... options)
long
size(java.nio.file.Path path)
-
-
-
Field Detail
-
INSTANCE
private static final NioFilesWrapper INSTANCE
-
-
Method Detail
-
instance
static NioFilesWrapper instance()
-
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 dir, java.nio.file.DirectoryStream.Filter<? super java.nio.file.Path> filter) 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
-
-