Example usage for java.nio.file OpenOption toString

List of usage examples for java.nio.file OpenOption toString

Introduction

In this page you can find the example usage for java.nio.file OpenOption toString.

Prototype

public String toString() 

Source Link

Document

Returns a string representation of the object.

Usage

From source file:nextflow.fs.dx.DxFileSystemProvider.java

private static void checkAllowedOptions(Set<? extends OpenOption> allowed, OpenOption... options) {
    if (options == null)
        return;//from   w w w  .  j  a v a  2 s  .  c om
    for (OpenOption opt : options) {
        if (!allowed.contains(opt)) {
            throw new UnsupportedOperationException(opt.toString() + " options not allowed");
        }
    }
}