Top Description Fields Constructors Methods
org.assertj.core.internal

public Class NioFilesWrapper

extends Object
Class Inheritance
Imports
java.io.IOException, .InputStream, java.nio.file.DirectoryStream, .DirectoryStream.Filter, .Files, .OpenOption, .Path

Wrapper for java.nio.file.Files to test methods throwing IOException.

Field Summary

Modifier and TypeField and Description
private static final NioFilesWrapper

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
pack-priv static NioFilesWrapper
public DirectoryStream<Path>
public InputStream
newInputStream(Path path, OpenOption... options)

public long
size(Path path)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

INSTANCEback to summary
private static final NioFilesWrapper INSTANCE

Constructor Detail

NioFilesWrapperback to summary
private NioFilesWrapper()

Method Detail

instanceback to summary
pack-priv static NioFilesWrapper instance()
newDirectoryStreamback to summary
public DirectoryStream<Path> newDirectoryStream(Path dir, DirectoryStream.Filter<? super Path> filter) throws IOException
newInputStreamback to summary
public InputStream newInputStream(Path path, OpenOption... options) throws IOException
sizeback to summary
public long size(Path path) throws IOException