11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
12 * version 2 for more details (a copy is included in the LICENSE file that
13 * accompanied this code).
14 *
15 * You should have received a copy of the GNU General Public License version
16 * 2 along with this work; if not, write to the Free Software Foundation,
17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
18 *
19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
20 * or visit www.oracle.com if you need additional information or have any
21 * questions.
22 */
23
24 /*
25 * @test
26 * @bug 7087549
27 * @summary Test custom options with newInputStream.
28 * @author Brandon Passanisi
29 * @library ..
30 * @build CustomOptions PassThroughFileSystem
31 */
32
33 import java.io.IOException;
34 import java.io.InputStream;
35 import java.net.URI;
36 import java.nio.file.*;
37 import java.nio.file.attribute.FileAttribute;
38 import java.nio.file.spi.FileSystemProvider;
39 import java.nio.channels.SeekableByteChannel;
40 import java.util.Collections;
41 import java.util.Set;
42 import java.util.Map;
43
44 public class CustomOptions {
45
46 // Create a custom option
47 static enum CustomOption implements OpenOption {
48 IGNORE,
49 }
50
|
11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
12 * version 2 for more details (a copy is included in the LICENSE file that
13 * accompanied this code).
14 *
15 * You should have received a copy of the GNU General Public License version
16 * 2 along with this work; if not, write to the Free Software Foundation,
17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
18 *
19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
20 * or visit www.oracle.com if you need additional information or have any
21 * questions.
22 */
23
24 /*
25 * @test
26 * @bug 7087549
27 * @summary Test custom options with newInputStream.
28 * @author Brandon Passanisi
29 * @library ..
30 * @build CustomOptions PassThroughFileSystem
31 * @run main CustomOptions
32 */
33
34 import java.io.IOException;
35 import java.io.InputStream;
36 import java.net.URI;
37 import java.nio.file.*;
38 import java.nio.file.attribute.FileAttribute;
39 import java.nio.file.spi.FileSystemProvider;
40 import java.nio.channels.SeekableByteChannel;
41 import java.util.Collections;
42 import java.util.Set;
43 import java.util.Map;
44
45 public class CustomOptions {
46
47 // Create a custom option
48 static enum CustomOption implements OpenOption {
49 IGNORE,
50 }
51
|