Repository navigation
Expand file tree
/
Copy pathFiles.html
More file actions
4222 lines (4046 loc) · 278 KB
/
Copy pathFiles.html
File metadata and controls
4222 lines (4046 loc) · 278 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
<!DOCTYPE HTML>
<!-- NewPage -->
<html lang="en">
<head>
<!-- Generated by javadoc -->
<title>Files (Java SE 12 & JDK 12 )</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="keywords" content="java.nio.file.Files class">
<meta name="keywords" content="newInputStream()">
<meta name="keywords" content="newOutputStream()">
<meta name="keywords" content="newByteChannel()">
<meta name="keywords" content="newDirectoryStream()">
<meta name="keywords" content="createFile()">
<meta name="keywords" content="createDirectory()">
<meta name="keywords" content="createDirectories()">
<meta name="keywords" content="createTempFile()">
<meta name="keywords" content="createTempDirectory()">
<meta name="keywords" content="createSymbolicLink()">
<meta name="keywords" content="createLink()">
<meta name="keywords" content="delete()">
<meta name="keywords" content="deleteIfExists()">
<meta name="keywords" content="copy()">
<meta name="keywords" content="move()">
<meta name="keywords" content="readSymbolicLink()">
<meta name="keywords" content="getFileStore()">
<meta name="keywords" content="isSameFile()">
<meta name="keywords" content="mismatch()">
<meta name="keywords" content="isHidden()">
<meta name="keywords" content="probeContentType()">
<meta name="keywords" content="getFileAttributeView()">
<meta name="keywords" content="readAttributes()">
<meta name="keywords" content="setAttribute()">
<meta name="keywords" content="getAttribute()">
<meta name="keywords" content="getPosixFilePermissions()">
<meta name="keywords" content="setPosixFilePermissions()">
<meta name="keywords" content="getOwner()">
<meta name="keywords" content="setOwner()">
<meta name="keywords" content="isSymbolicLink()">
<meta name="keywords" content="isDirectory()">
<meta name="keywords" content="isRegularFile()">
<meta name="keywords" content="getLastModifiedTime()">
<meta name="keywords" content="setLastModifiedTime()">
<meta name="keywords" content="size()">
<meta name="keywords" content="exists()">
<meta name="keywords" content="notExists()">
<meta name="keywords" content="isReadable()">
<meta name="keywords" content="isWritable()">
<meta name="keywords" content="isExecutable()">
<meta name="keywords" content="walkFileTree()">
<meta name="keywords" content="newBufferedReader()">
<meta name="keywords" content="newBufferedWriter()">
<meta name="keywords" content="readAllBytes()">
<meta name="keywords" content="readString()">
<meta name="keywords" content="readAllLines()">
<meta name="keywords" content="write()">
<meta name="keywords" content="writeString()">
<meta name="keywords" content="list()">
<meta name="keywords" content="walk()">
<meta name="keywords" content="find()">
<meta name="keywords" content="lines()">
<link rel="stylesheet" type="text/css" href="../../../../stylesheet.css" title="Style">
<link rel="stylesheet" type="text/css" href="../../../../jquery/jquery-ui.css" title="Style">
<script type="text/javascript" src="../../../../script.js"></script>
<script type="text/javascript" src="../../../../jquery/jszip/dist/jszip.min.js"></script>
<script type="text/javascript" src="../../../../jquery/jszip-utils/dist/jszip-utils.min.js"></script>
<!--[if IE]>
<script type="text/javascript" src="../../../../jquery/jszip-utils/dist/jszip-utils-ie.min.js"></script>
<![endif]-->
<script type="text/javascript" src="../../../../jquery/jquery-3.3.1.js"></script>
<script type="text/javascript" src="../../../../jquery/jquery-migrate-3.0.1.js"></script>
<script type="text/javascript" src="../../../../jquery/jquery-ui.js"></script>
</head>
<body>
<script type="text/javascript"><!--
try {
if (location.href.indexOf('is-external=true') == -1) {
parent.document.title="Files (Java SE 12 & JDK 12 )";
}
}
catch(err) {
}
//-->
var data = {"i0":9,"i1":9,"i2":9,"i3":9,"i4":9,"i5":9,"i6":9,"i7":9,"i8":9,"i9":9,"i10":9,"i11":9,"i12":9,"i13":9,"i14":9,"i15":9,"i16":9,"i17":9,"i18":9,"i19":9,"i20":9,"i21":9,"i22":9,"i23":9,"i24":9,"i25":9,"i26":9,"i27":9,"i28":9,"i29":9,"i30":9,"i31":9,"i32":9,"i33":9,"i34":9,"i35":9,"i36":9,"i37":9,"i38":9,"i39":9,"i40":9,"i41":9,"i42":9,"i43":9,"i44":9,"i45":9,"i46":9,"i47":9,"i48":9,"i49":9,"i50":9,"i51":9,"i52":9,"i53":9,"i54":9,"i55":9,"i56":9,"i57":9,"i58":9,"i59":9,"i60":9,"i61":9,"i62":9,"i63":9,"i64":9,"i65":9,"i66":9,"i67":9,"i68":9,"i69":9};
var tabs = {65535:["t0","All Methods"],1:["t1","Static Methods"],8:["t4","Concrete Methods"]};
var altColor = "altColor";
var rowColor = "rowColor";
var tableTab = "tableTab";
var activeTableTab = "activeTableTab";
var pathtoroot = "../../../../";
var useModuleDirectories = true;
loadScripts(document, 'script');</script>
<noscript>
<div>JavaScript is disabled on your browser.</div>
</noscript>
<header role="banner">
<nav role="navigation">
<div class="fixedNav">
<!-- ========= START OF TOP NAVBAR ======= -->
<div class="topNav"><a id="navbar.top">
<!-- -->
</a>
<div class="skipNav"><a href="#skip.navbar.top" title="Skip navigation links">Skip navigation links</a></div>
<a id="navbar.top.firstrow">
<!-- -->
</a>
<ul class="navList" title="Navigation">
<li><a href="../../../../index.html">Overview</a></li>
<li><a href="../../../module-summary.html">Module</a></li>
<li><a href="package-summary.html">Package</a></li>
<li class="navBarCell1Rev">Class</li>
<li><a href="class-use/Files.html">Use</a></li>
<li><a href="package-tree.html">Tree</a></li>
<li><a href="../../../../deprecated-list.html">Deprecated</a></li>
<li><a href="../../../../index-files/index-1.html">Index</a></li>
<li><a href="../../../../help-doc.html">Help</a></li>
</ul>
<div class="aboutLanguage"><div style="margin-top: 14px;"><strong>Java SE 12 & JDK 12</strong> </div></div>
</div>
<div class="subNav">
<div>
<ul class="subNavList">
<li>Summary: </li>
<li>Nested | </li>
<li>Field | </li>
<li>Constr | </li>
<li><a href="#method.summary">Method</a></li>
</ul>
<ul class="subNavList">
<li>Detail: </li>
<li>Field | </li>
<li>Constr | </li>
<li><a href="#method.detail">Method</a></li>
</ul>
</div>
<ul class="navListSearch">
<li><label for="search">SEARCH:</label>
<input type="text" id="search" value="search" disabled="disabled">
<input type="reset" id="reset" value="reset" disabled="disabled">
</li>
</ul>
</div>
<a id="skip.navbar.top">
<!-- -->
</a>
<!-- ========= END OF TOP NAVBAR ========= -->
</div>
<div class="navPadding"> </div>
<script type="text/javascript"><!--
$('.navPadding').css('padding-top', $('.fixedNav').css("height"));
//-->
</script>
</nav>
</header>
<!-- ======== START OF CLASS DATA ======== -->
<main role="main">
<div class="header">
<div class="subTitle"><span class="moduleLabelInType">Module</span> <a href="../../../module-summary.html">java.base</a></div>
<div class="subTitle"><span class="packageLabelInType">Package</span> <a href="package-summary.html">java.nio.file</a></div>
<h2 title="Class Files" class="title">Class Files</h2>
</div>
<div class="contentContainer">
<ul class="inheritance">
<li><a href="../../lang/Object.html" title="class in java.lang">java.lang.Object</a></li>
<li>
<ul class="inheritance">
<li>java.nio.file.Files</li>
</ul>
</li>
</ul>
<div class="description">
<ul class="blockList">
<li class="blockList">
<hr>
<pre>public final class <span class="typeNameLabel">Files</span>
extends <a href="../../lang/Object.html" title="class in java.lang">Object</a></pre>
<div class="block">This class consists exclusively of static methods that operate on files,
directories, or other types of files.
<p> In most cases, the methods defined here will delegate to the associated
file system provider to perform the file operations.</div>
<dl>
<dt><span class="simpleTagLabel">Since:</span></dt>
<dd>1.7</dd>
</dl>
</li>
</ul>
</div>
<div class="summary">
<ul class="blockList">
<li class="blockList">
<!-- ========== METHOD SUMMARY =========== -->
<section role="region">
<ul class="blockList">
<li class="blockList"><a id="method.summary">
<!-- -->
</a>
<h3>Method Summary</h3>
<div class="memberSummary">
<div role="tablist" aria-orientation="horizontal"><button role="tab" aria-selected="true" aria-controls="memberSummary_tabpanel" tabindex="0" onkeydown="switchTab(event)" id="t0" class="activeTableTab">All Methods</button><button role="tab" aria-selected="false" aria-controls="memberSummary_tabpanel" tabindex="-1" onkeydown="switchTab(event)" id="t1" class="tableTab" onclick="show(1);">Static Methods</button><button role="tab" aria-selected="false" aria-controls="memberSummary_tabpanel" tabindex="-1" onkeydown="switchTab(event)" id="t4" class="tableTab" onclick="show(8);">Concrete Methods</button></div>
<div id="memberSummary_tabpanel" role="tabpanel">
<table aria-labelledby="t0">
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colSecond" scope="col">Method</th>
<th class="colLast" scope="col">Description</th>
</tr>
<tbody>
<tr class="altColor" id="i0">
<td class="colFirst"><code>static long</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#copy(java.io.InputStream,java.nio.file.Path,java.nio.file.CopyOption...)">copy</a></span>​(<a href="../../io/InputStream.html" title="class in java.io">InputStream</a> in,
<a href="Path.html" title="interface in java.nio.file">Path</a> target,
<a href="CopyOption.html" title="interface in java.nio.file">CopyOption</a>... options)</code></th>
<td class="colLast">
<div class="block">Copies all bytes from an input stream to a file.</div>
</td>
</tr>
<tr class="rowColor" id="i1">
<td class="colFirst"><code>static long</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#copy(java.nio.file.Path,java.io.OutputStream)">copy</a></span>​(<a href="Path.html" title="interface in java.nio.file">Path</a> source,
<a href="../../io/OutputStream.html" title="class in java.io">OutputStream</a> out)</code></th>
<td class="colLast">
<div class="block">Copies all bytes from a file to an output stream.</div>
</td>
</tr>
<tr class="altColor" id="i2">
<td class="colFirst"><code>static <a href="Path.html" title="interface in java.nio.file">Path</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#copy(java.nio.file.Path,java.nio.file.Path,java.nio.file.CopyOption...)">copy</a></span>​(<a href="Path.html" title="interface in java.nio.file">Path</a> source,
<a href="Path.html" title="interface in java.nio.file">Path</a> target,
<a href="CopyOption.html" title="interface in java.nio.file">CopyOption</a>... options)</code></th>
<td class="colLast">
<div class="block">Copy a file to a target file.</div>
</td>
</tr>
<tr class="rowColor" id="i3">
<td class="colFirst"><code>static <a href="Path.html" title="interface in java.nio.file">Path</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#createDirectories(java.nio.file.Path,java.nio.file.attribute.FileAttribute...)">createDirectories</a></span>​(<a href="Path.html" title="interface in java.nio.file">Path</a> dir,
<a href="attribute/FileAttribute.html" title="interface in java.nio.file.attribute">FileAttribute</a><?>... attrs)</code></th>
<td class="colLast">
<div class="block">Creates a directory by creating all nonexistent parent directories first.</div>
</td>
</tr>
<tr class="altColor" id="i4">
<td class="colFirst"><code>static <a href="Path.html" title="interface in java.nio.file">Path</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#createDirectory(java.nio.file.Path,java.nio.file.attribute.FileAttribute...)">createDirectory</a></span>​(<a href="Path.html" title="interface in java.nio.file">Path</a> dir,
<a href="attribute/FileAttribute.html" title="interface in java.nio.file.attribute">FileAttribute</a><?>... attrs)</code></th>
<td class="colLast">
<div class="block">Creates a new directory.</div>
</td>
</tr>
<tr class="rowColor" id="i5">
<td class="colFirst"><code>static <a href="Path.html" title="interface in java.nio.file">Path</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#createFile(java.nio.file.Path,java.nio.file.attribute.FileAttribute...)">createFile</a></span>​(<a href="Path.html" title="interface in java.nio.file">Path</a> path,
<a href="attribute/FileAttribute.html" title="interface in java.nio.file.attribute">FileAttribute</a><?>... attrs)</code></th>
<td class="colLast">
<div class="block">Creates a new and empty file, failing if the file already exists.</div>
</td>
</tr>
<tr class="altColor" id="i6">
<td class="colFirst"><code>static <a href="Path.html" title="interface in java.nio.file">Path</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#createLink(java.nio.file.Path,java.nio.file.Path)">createLink</a></span>​(<a href="Path.html" title="interface in java.nio.file">Path</a> link,
<a href="Path.html" title="interface in java.nio.file">Path</a> existing)</code></th>
<td class="colLast">
<div class="block">Creates a new link (directory entry) for an existing file <i>(optional
operation)</i>.</div>
</td>
</tr>
<tr class="rowColor" id="i7">
<td class="colFirst"><code>static <a href="Path.html" title="interface in java.nio.file">Path</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#createSymbolicLink(java.nio.file.Path,java.nio.file.Path,java.nio.file.attribute.FileAttribute...)">createSymbolicLink</a></span>​(<a href="Path.html" title="interface in java.nio.file">Path</a> link,
<a href="Path.html" title="interface in java.nio.file">Path</a> target,
<a href="attribute/FileAttribute.html" title="interface in java.nio.file.attribute">FileAttribute</a><?>... attrs)</code></th>
<td class="colLast">
<div class="block">Creates a symbolic link to a target <i>(optional operation)</i>.</div>
</td>
</tr>
<tr class="altColor" id="i8">
<td class="colFirst"><code>static <a href="Path.html" title="interface in java.nio.file">Path</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#createTempDirectory(java.lang.String,java.nio.file.attribute.FileAttribute...)">createTempDirectory</a></span>​(<a href="../../lang/String.html" title="class in java.lang">String</a> prefix,
<a href="attribute/FileAttribute.html" title="interface in java.nio.file.attribute">FileAttribute</a><?>... attrs)</code></th>
<td class="colLast">
<div class="block">Creates a new directory in the default temporary-file directory, using
the given prefix to generate its name.</div>
</td>
</tr>
<tr class="rowColor" id="i9">
<td class="colFirst"><code>static <a href="Path.html" title="interface in java.nio.file">Path</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#createTempDirectory(java.nio.file.Path,java.lang.String,java.nio.file.attribute.FileAttribute...)">createTempDirectory</a></span>​(<a href="Path.html" title="interface in java.nio.file">Path</a> dir,
<a href="../../lang/String.html" title="class in java.lang">String</a> prefix,
<a href="attribute/FileAttribute.html" title="interface in java.nio.file.attribute">FileAttribute</a><?>... attrs)</code></th>
<td class="colLast">
<div class="block">Creates a new directory in the specified directory, using the given
prefix to generate its name.</div>
</td>
</tr>
<tr class="altColor" id="i10">
<td class="colFirst"><code>static <a href="Path.html" title="interface in java.nio.file">Path</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#createTempFile(java.lang.String,java.lang.String,java.nio.file.attribute.FileAttribute...)">createTempFile</a></span>​(<a href="../../lang/String.html" title="class in java.lang">String</a> prefix,
<a href="../../lang/String.html" title="class in java.lang">String</a> suffix,
<a href="attribute/FileAttribute.html" title="interface in java.nio.file.attribute">FileAttribute</a><?>... attrs)</code></th>
<td class="colLast">
<div class="block">Creates an empty file in the default temporary-file directory, using
the given prefix and suffix to generate its name.</div>
</td>
</tr>
<tr class="rowColor" id="i11">
<td class="colFirst"><code>static <a href="Path.html" title="interface in java.nio.file">Path</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#createTempFile(java.nio.file.Path,java.lang.String,java.lang.String,java.nio.file.attribute.FileAttribute...)">createTempFile</a></span>​(<a href="Path.html" title="interface in java.nio.file">Path</a> dir,
<a href="../../lang/String.html" title="class in java.lang">String</a> prefix,
<a href="../../lang/String.html" title="class in java.lang">String</a> suffix,
<a href="attribute/FileAttribute.html" title="interface in java.nio.file.attribute">FileAttribute</a><?>... attrs)</code></th>
<td class="colLast">
<div class="block">Creates a new empty file in the specified directory, using the given
prefix and suffix strings to generate its name.</div>
</td>
</tr>
<tr class="altColor" id="i12">
<td class="colFirst"><code>static void</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#delete(java.nio.file.Path)">delete</a></span>​(<a href="Path.html" title="interface in java.nio.file">Path</a> path)</code></th>
<td class="colLast">
<div class="block">Deletes a file.</div>
</td>
</tr>
<tr class="rowColor" id="i13">
<td class="colFirst"><code>static boolean</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#deleteIfExists(java.nio.file.Path)">deleteIfExists</a></span>​(<a href="Path.html" title="interface in java.nio.file">Path</a> path)</code></th>
<td class="colLast">
<div class="block">Deletes a file if it exists.</div>
</td>
</tr>
<tr class="altColor" id="i14">
<td class="colFirst"><code>static boolean</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#exists(java.nio.file.Path,java.nio.file.LinkOption...)">exists</a></span>​(<a href="Path.html" title="interface in java.nio.file">Path</a> path,
<a href="LinkOption.html" title="enum in java.nio.file">LinkOption</a>... options)</code></th>
<td class="colLast">
<div class="block">Tests whether a file exists.</div>
</td>
</tr>
<tr class="rowColor" id="i15">
<td class="colFirst"><code>static <a href="../../util/stream/Stream.html" title="interface in java.util.stream">Stream</a><<a href="Path.html" title="interface in java.nio.file">Path</a>></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#find(java.nio.file.Path,int,java.util.function.BiPredicate,java.nio.file.FileVisitOption...)">find</a></span>​(<a href="Path.html" title="interface in java.nio.file">Path</a> start,
int maxDepth,
<a href="../../util/function/BiPredicate.html" title="interface in java.util.function">BiPredicate</a><<a href="Path.html" title="interface in java.nio.file">Path</a>,​<a href="attribute/BasicFileAttributes.html" title="interface in java.nio.file.attribute">BasicFileAttributes</a>> matcher,
<a href="FileVisitOption.html" title="enum in java.nio.file">FileVisitOption</a>... options)</code></th>
<td class="colLast">
<div class="block">Return a <code>Stream</code> that is lazily populated with <code>
Path</code> by searching for files in a file tree rooted at a given starting
file.</div>
</td>
</tr>
<tr class="altColor" id="i16">
<td class="colFirst"><code>static <a href="../../lang/Object.html" title="class in java.lang">Object</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getAttribute(java.nio.file.Path,java.lang.String,java.nio.file.LinkOption...)">getAttribute</a></span>​(<a href="Path.html" title="interface in java.nio.file">Path</a> path,
<a href="../../lang/String.html" title="class in java.lang">String</a> attribute,
<a href="LinkOption.html" title="enum in java.nio.file">LinkOption</a>... options)</code></th>
<td class="colLast">
<div class="block">Reads the value of a file attribute.</div>
</td>
</tr>
<tr class="rowColor" id="i17">
<td class="colFirst"><code>static <V extends <a href="attribute/FileAttributeView.html" title="interface in java.nio.file.attribute">FileAttributeView</a>><br>V</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getFileAttributeView(java.nio.file.Path,java.lang.Class,java.nio.file.LinkOption...)">getFileAttributeView</a></span>​(<a href="Path.html" title="interface in java.nio.file">Path</a> path,
<a href="../../lang/Class.html" title="class in java.lang">Class</a><V> type,
<a href="LinkOption.html" title="enum in java.nio.file">LinkOption</a>... options)</code></th>
<td class="colLast">
<div class="block">Returns a file attribute view of a given type.</div>
</td>
</tr>
<tr class="altColor" id="i18">
<td class="colFirst"><code>static <a href="FileStore.html" title="class in java.nio.file">FileStore</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getFileStore(java.nio.file.Path)">getFileStore</a></span>​(<a href="Path.html" title="interface in java.nio.file">Path</a> path)</code></th>
<td class="colLast">
<div class="block">Returns the <a href="FileStore.html" title="class in java.nio.file"><code>FileStore</code></a> representing the file store where a file
is located.</div>
</td>
</tr>
<tr class="rowColor" id="i19">
<td class="colFirst"><code>static <a href="attribute/FileTime.html" title="class in java.nio.file.attribute">FileTime</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getLastModifiedTime(java.nio.file.Path,java.nio.file.LinkOption...)">getLastModifiedTime</a></span>​(<a href="Path.html" title="interface in java.nio.file">Path</a> path,
<a href="LinkOption.html" title="enum in java.nio.file">LinkOption</a>... options)</code></th>
<td class="colLast">
<div class="block">Returns a file's last modified time.</div>
</td>
</tr>
<tr class="altColor" id="i20">
<td class="colFirst"><code>static <a href="attribute/UserPrincipal.html" title="interface in java.nio.file.attribute">UserPrincipal</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getOwner(java.nio.file.Path,java.nio.file.LinkOption...)">getOwner</a></span>​(<a href="Path.html" title="interface in java.nio.file">Path</a> path,
<a href="LinkOption.html" title="enum in java.nio.file">LinkOption</a>... options)</code></th>
<td class="colLast">
<div class="block">Returns the owner of a file.</div>
</td>
</tr>
<tr class="rowColor" id="i21">
<td class="colFirst"><code>static <a href="../../util/Set.html" title="interface in java.util">Set</a><<a href="attribute/PosixFilePermission.html" title="enum in java.nio.file.attribute">PosixFilePermission</a>></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getPosixFilePermissions(java.nio.file.Path,java.nio.file.LinkOption...)">getPosixFilePermissions</a></span>​(<a href="Path.html" title="interface in java.nio.file">Path</a> path,
<a href="LinkOption.html" title="enum in java.nio.file">LinkOption</a>... options)</code></th>
<td class="colLast">
<div class="block">Returns a file's POSIX file permissions.</div>
</td>
</tr>
<tr class="altColor" id="i22">
<td class="colFirst"><code>static boolean</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#isDirectory(java.nio.file.Path,java.nio.file.LinkOption...)">isDirectory</a></span>​(<a href="Path.html" title="interface in java.nio.file">Path</a> path,
<a href="LinkOption.html" title="enum in java.nio.file">LinkOption</a>... options)</code></th>
<td class="colLast">
<div class="block">Tests whether a file is a directory.</div>
</td>
</tr>
<tr class="rowColor" id="i23">
<td class="colFirst"><code>static boolean</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#isExecutable(java.nio.file.Path)">isExecutable</a></span>​(<a href="Path.html" title="interface in java.nio.file">Path</a> path)</code></th>
<td class="colLast">
<div class="block">Tests whether a file is executable.</div>
</td>
</tr>
<tr class="altColor" id="i24">
<td class="colFirst"><code>static boolean</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#isHidden(java.nio.file.Path)">isHidden</a></span>​(<a href="Path.html" title="interface in java.nio.file">Path</a> path)</code></th>
<td class="colLast">
<div class="block">Tells whether or not a file is considered <em>hidden</em>.</div>
</td>
</tr>
<tr class="rowColor" id="i25">
<td class="colFirst"><code>static boolean</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#isReadable(java.nio.file.Path)">isReadable</a></span>​(<a href="Path.html" title="interface in java.nio.file">Path</a> path)</code></th>
<td class="colLast">
<div class="block">Tests whether a file is readable.</div>
</td>
</tr>
<tr class="altColor" id="i26">
<td class="colFirst"><code>static boolean</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#isRegularFile(java.nio.file.Path,java.nio.file.LinkOption...)">isRegularFile</a></span>​(<a href="Path.html" title="interface in java.nio.file">Path</a> path,
<a href="LinkOption.html" title="enum in java.nio.file">LinkOption</a>... options)</code></th>
<td class="colLast">
<div class="block">Tests whether a file is a regular file with opaque content.</div>
</td>
</tr>
<tr class="rowColor" id="i27">
<td class="colFirst"><code>static boolean</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#isSameFile(java.nio.file.Path,java.nio.file.Path)">isSameFile</a></span>​(<a href="Path.html" title="interface in java.nio.file">Path</a> path,
<a href="Path.html" title="interface in java.nio.file">Path</a> path2)</code></th>
<td class="colLast">
<div class="block">Tests if two paths locate the same file.</div>
</td>
</tr>
<tr class="altColor" id="i28">
<td class="colFirst"><code>static boolean</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#isSymbolicLink(java.nio.file.Path)">isSymbolicLink</a></span>​(<a href="Path.html" title="interface in java.nio.file">Path</a> path)</code></th>
<td class="colLast">
<div class="block">Tests whether a file is a symbolic link.</div>
</td>
</tr>
<tr class="rowColor" id="i29">
<td class="colFirst"><code>static boolean</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#isWritable(java.nio.file.Path)">isWritable</a></span>​(<a href="Path.html" title="interface in java.nio.file">Path</a> path)</code></th>
<td class="colLast">
<div class="block">Tests whether a file is writable.</div>
</td>
</tr>
<tr class="altColor" id="i30">
<td class="colFirst"><code>static <a href="../../util/stream/Stream.html" title="interface in java.util.stream">Stream</a><<a href="../../lang/String.html" title="class in java.lang">String</a>></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#lines(java.nio.file.Path)">lines</a></span>​(<a href="Path.html" title="interface in java.nio.file">Path</a> path)</code></th>
<td class="colLast">
<div class="block">Read all lines from a file as a <code>Stream</code>.</div>
</td>
</tr>
<tr class="rowColor" id="i31">
<td class="colFirst"><code>static <a href="../../util/stream/Stream.html" title="interface in java.util.stream">Stream</a><<a href="../../lang/String.html" title="class in java.lang">String</a>></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#lines(java.nio.file.Path,java.nio.charset.Charset)">lines</a></span>​(<a href="Path.html" title="interface in java.nio.file">Path</a> path,
<a href="../charset/Charset.html" title="class in java.nio.charset">Charset</a> cs)</code></th>
<td class="colLast">
<div class="block">Read all lines from a file as a <code>Stream</code>.</div>
</td>
</tr>
<tr class="altColor" id="i32">
<td class="colFirst"><code>static <a href="../../util/stream/Stream.html" title="interface in java.util.stream">Stream</a><<a href="Path.html" title="interface in java.nio.file">Path</a>></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#list(java.nio.file.Path)">list</a></span>​(<a href="Path.html" title="interface in java.nio.file">Path</a> dir)</code></th>
<td class="colLast">
<div class="block">Return a lazily populated <code>Stream</code>, the elements of
which are the entries in the directory.</div>
</td>
</tr>
<tr class="rowColor" id="i33">
<td class="colFirst"><code>static long</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#mismatch(java.nio.file.Path,java.nio.file.Path)">mismatch</a></span>​(<a href="Path.html" title="interface in java.nio.file">Path</a> path,
<a href="Path.html" title="interface in java.nio.file">Path</a> path2)</code></th>
<td class="colLast">
<div class="block">Finds and returns the position of the first mismatched byte in the content
of two files, or <code>-1L</code> if there is no mismatch.</div>
</td>
</tr>
<tr class="altColor" id="i34">
<td class="colFirst"><code>static <a href="Path.html" title="interface in java.nio.file">Path</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#move(java.nio.file.Path,java.nio.file.Path,java.nio.file.CopyOption...)">move</a></span>​(<a href="Path.html" title="interface in java.nio.file">Path</a> source,
<a href="Path.html" title="interface in java.nio.file">Path</a> target,
<a href="CopyOption.html" title="interface in java.nio.file">CopyOption</a>... options)</code></th>
<td class="colLast">
<div class="block">Move or rename a file to a target file.</div>
</td>
</tr>
<tr class="rowColor" id="i35">
<td class="colFirst"><code>static <a href="../../io/BufferedReader.html" title="class in java.io">BufferedReader</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#newBufferedReader(java.nio.file.Path)">newBufferedReader</a></span>​(<a href="Path.html" title="interface in java.nio.file">Path</a> path)</code></th>
<td class="colLast">
<div class="block">Opens a file for reading, returning a <code>BufferedReader</code> to read text
from the file in an efficient manner.</div>
</td>
</tr>
<tr class="altColor" id="i36">
<td class="colFirst"><code>static <a href="../../io/BufferedReader.html" title="class in java.io">BufferedReader</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#newBufferedReader(java.nio.file.Path,java.nio.charset.Charset)">newBufferedReader</a></span>​(<a href="Path.html" title="interface in java.nio.file">Path</a> path,
<a href="../charset/Charset.html" title="class in java.nio.charset">Charset</a> cs)</code></th>
<td class="colLast">
<div class="block">Opens a file for reading, returning a <code>BufferedReader</code> that may be
used to read text from the file in an efficient manner.</div>
</td>
</tr>
<tr class="rowColor" id="i37">
<td class="colFirst"><code>static <a href="../../io/BufferedWriter.html" title="class in java.io">BufferedWriter</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#newBufferedWriter(java.nio.file.Path,java.nio.charset.Charset,java.nio.file.OpenOption...)">newBufferedWriter</a></span>​(<a href="Path.html" title="interface in java.nio.file">Path</a> path,
<a href="../charset/Charset.html" title="class in java.nio.charset">Charset</a> cs,
<a href="OpenOption.html" title="interface in java.nio.file">OpenOption</a>... options)</code></th>
<td class="colLast">
<div class="block">Opens or creates a file for writing, returning a <code>BufferedWriter</code>
that may be used to write text to the file in an efficient manner.</div>
</td>
</tr>
<tr class="altColor" id="i38">
<td class="colFirst"><code>static <a href="../../io/BufferedWriter.html" title="class in java.io">BufferedWriter</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#newBufferedWriter(java.nio.file.Path,java.nio.file.OpenOption...)">newBufferedWriter</a></span>​(<a href="Path.html" title="interface in java.nio.file">Path</a> path,
<a href="OpenOption.html" title="interface in java.nio.file">OpenOption</a>... options)</code></th>
<td class="colLast">
<div class="block">Opens or creates a file for writing, returning a <code>BufferedWriter</code>
to write text to the file in an efficient manner.</div>
</td>
</tr>
<tr class="rowColor" id="i39">
<td class="colFirst"><code>static <a href="../channels/SeekableByteChannel.html" title="interface in java.nio.channels">SeekableByteChannel</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#newByteChannel(java.nio.file.Path,java.nio.file.OpenOption...)">newByteChannel</a></span>​(<a href="Path.html" title="interface in java.nio.file">Path</a> path,
<a href="OpenOption.html" title="interface in java.nio.file">OpenOption</a>... options)</code></th>
<td class="colLast">
<div class="block">Opens or creates a file, returning a seekable byte channel to access the
file.</div>
</td>
</tr>
<tr class="altColor" id="i40">
<td class="colFirst"><code>static <a href="../channels/SeekableByteChannel.html" title="interface in java.nio.channels">SeekableByteChannel</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#newByteChannel(java.nio.file.Path,java.util.Set,java.nio.file.attribute.FileAttribute...)">newByteChannel</a></span>​(<a href="Path.html" title="interface in java.nio.file">Path</a> path,
<a href="../../util/Set.html" title="interface in java.util">Set</a><? extends <a href="OpenOption.html" title="interface in java.nio.file">OpenOption</a>> options,
<a href="attribute/FileAttribute.html" title="interface in java.nio.file.attribute">FileAttribute</a><?>... attrs)</code></th>
<td class="colLast">
<div class="block">Opens or creates a file, returning a seekable byte channel to access the
file.</div>
</td>
</tr>
<tr class="rowColor" id="i41">
<td class="colFirst"><code>static <a href="DirectoryStream.html" title="interface in java.nio.file">DirectoryStream</a><<a href="Path.html" title="interface in java.nio.file">Path</a>></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#newDirectoryStream(java.nio.file.Path)">newDirectoryStream</a></span>​(<a href="Path.html" title="interface in java.nio.file">Path</a> dir)</code></th>
<td class="colLast">
<div class="block">Opens a directory, returning a <a href="DirectoryStream.html" title="interface in java.nio.file"><code>DirectoryStream</code></a> to iterate over
all entries in the directory.</div>
</td>
</tr>
<tr class="altColor" id="i42">
<td class="colFirst"><code>static <a href="DirectoryStream.html" title="interface in java.nio.file">DirectoryStream</a><<a href="Path.html" title="interface in java.nio.file">Path</a>></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#newDirectoryStream(java.nio.file.Path,java.lang.String)">newDirectoryStream</a></span>​(<a href="Path.html" title="interface in java.nio.file">Path</a> dir,
<a href="../../lang/String.html" title="class in java.lang">String</a> glob)</code></th>
<td class="colLast">
<div class="block">Opens a directory, returning a <a href="DirectoryStream.html" title="interface in java.nio.file"><code>DirectoryStream</code></a> to iterate over
the entries in the directory.</div>
</td>
</tr>
<tr class="rowColor" id="i43">
<td class="colFirst"><code>static <a href="DirectoryStream.html" title="interface in java.nio.file">DirectoryStream</a><<a href="Path.html" title="interface in java.nio.file">Path</a>></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#newDirectoryStream(java.nio.file.Path,java.nio.file.DirectoryStream.Filter)">newDirectoryStream</a></span>​(<a href="Path.html" title="interface in java.nio.file">Path</a> dir,
<a href="DirectoryStream.Filter.html" title="interface in java.nio.file">DirectoryStream.Filter</a><? super <a href="Path.html" title="interface in java.nio.file">Path</a>> filter)</code></th>
<td class="colLast">
<div class="block">Opens a directory, returning a <a href="DirectoryStream.html" title="interface in java.nio.file"><code>DirectoryStream</code></a> to iterate over
the entries in the directory.</div>
</td>
</tr>
<tr class="altColor" id="i44">
<td class="colFirst"><code>static <a href="../../io/InputStream.html" title="class in java.io">InputStream</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#newInputStream(java.nio.file.Path,java.nio.file.OpenOption...)">newInputStream</a></span>​(<a href="Path.html" title="interface in java.nio.file">Path</a> path,
<a href="OpenOption.html" title="interface in java.nio.file">OpenOption</a>... options)</code></th>
<td class="colLast">
<div class="block">Opens a file, returning an input stream to read from the file.</div>
</td>
</tr>
<tr class="rowColor" id="i45">
<td class="colFirst"><code>static <a href="../../io/OutputStream.html" title="class in java.io">OutputStream</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#newOutputStream(java.nio.file.Path,java.nio.file.OpenOption...)">newOutputStream</a></span>​(<a href="Path.html" title="interface in java.nio.file">Path</a> path,
<a href="OpenOption.html" title="interface in java.nio.file">OpenOption</a>... options)</code></th>
<td class="colLast">
<div class="block">Opens or creates a file, returning an output stream that may be used to
write bytes to the file.</div>
</td>
</tr>
<tr class="altColor" id="i46">
<td class="colFirst"><code>static boolean</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#notExists(java.nio.file.Path,java.nio.file.LinkOption...)">notExists</a></span>​(<a href="Path.html" title="interface in java.nio.file">Path</a> path,
<a href="LinkOption.html" title="enum in java.nio.file">LinkOption</a>... options)</code></th>
<td class="colLast">
<div class="block">Tests whether the file located by this path does not exist.</div>
</td>
</tr>
<tr class="rowColor" id="i47">
<td class="colFirst"><code>static <a href="../../lang/String.html" title="class in java.lang">String</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#probeContentType(java.nio.file.Path)">probeContentType</a></span>​(<a href="Path.html" title="interface in java.nio.file">Path</a> path)</code></th>
<td class="colLast">
<div class="block">Probes the content type of a file.</div>
</td>
</tr>
<tr class="altColor" id="i48">
<td class="colFirst"><code>static byte[]</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#readAllBytes(java.nio.file.Path)">readAllBytes</a></span>​(<a href="Path.html" title="interface in java.nio.file">Path</a> path)</code></th>
<td class="colLast">
<div class="block">Reads all the bytes from a file.</div>
</td>
</tr>
<tr class="rowColor" id="i49">
<td class="colFirst"><code>static <a href="../../util/List.html" title="interface in java.util">List</a><<a href="../../lang/String.html" title="class in java.lang">String</a>></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#readAllLines(java.nio.file.Path)">readAllLines</a></span>​(<a href="Path.html" title="interface in java.nio.file">Path</a> path)</code></th>
<td class="colLast">
<div class="block">Read all lines from a file.</div>
</td>
</tr>
<tr class="altColor" id="i50">
<td class="colFirst"><code>static <a href="../../util/List.html" title="interface in java.util">List</a><<a href="../../lang/String.html" title="class in java.lang">String</a>></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#readAllLines(java.nio.file.Path,java.nio.charset.Charset)">readAllLines</a></span>​(<a href="Path.html" title="interface in java.nio.file">Path</a> path,
<a href="../charset/Charset.html" title="class in java.nio.charset">Charset</a> cs)</code></th>
<td class="colLast">
<div class="block">Read all lines from a file.</div>
</td>
</tr>
<tr class="rowColor" id="i51">
<td class="colFirst"><code>static <A extends <a href="attribute/BasicFileAttributes.html" title="interface in java.nio.file.attribute">BasicFileAttributes</a>><br>A</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#readAttributes(java.nio.file.Path,java.lang.Class,java.nio.file.LinkOption...)">readAttributes</a></span>​(<a href="Path.html" title="interface in java.nio.file">Path</a> path,
<a href="../../lang/Class.html" title="class in java.lang">Class</a><A> type,
<a href="LinkOption.html" title="enum in java.nio.file">LinkOption</a>... options)</code></th>
<td class="colLast">
<div class="block">Reads a file's attributes as a bulk operation.</div>
</td>
</tr>
<tr class="altColor" id="i52">
<td class="colFirst"><code>static <a href="../../util/Map.html" title="interface in java.util">Map</a><<a href="../../lang/String.html" title="class in java.lang">String</a>,​<a href="../../lang/Object.html" title="class in java.lang">Object</a>></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#readAttributes(java.nio.file.Path,java.lang.String,java.nio.file.LinkOption...)">readAttributes</a></span>​(<a href="Path.html" title="interface in java.nio.file">Path</a> path,
<a href="../../lang/String.html" title="class in java.lang">String</a> attributes,
<a href="LinkOption.html" title="enum in java.nio.file">LinkOption</a>... options)</code></th>
<td class="colLast">
<div class="block">Reads a set of file attributes as a bulk operation.</div>
</td>
</tr>
<tr class="rowColor" id="i53">
<td class="colFirst"><code>static <a href="../../lang/String.html" title="class in java.lang">String</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#readString(java.nio.file.Path)">readString</a></span>​(<a href="Path.html" title="interface in java.nio.file">Path</a> path)</code></th>
<td class="colLast">
<div class="block">Reads all content from a file into a string, decoding from bytes to characters
using the <a href="../charset/StandardCharsets.html#UTF_8"><code>UTF-8</code></a> <a href="../charset/Charset.html" title="class in java.nio.charset"><code>charset</code></a>.</div>
</td>
</tr>
<tr class="altColor" id="i54">
<td class="colFirst"><code>static <a href="../../lang/String.html" title="class in java.lang">String</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#readString(java.nio.file.Path,java.nio.charset.Charset)">readString</a></span>​(<a href="Path.html" title="interface in java.nio.file">Path</a> path,
<a href="../charset/Charset.html" title="class in java.nio.charset">Charset</a> cs)</code></th>
<td class="colLast">
<div class="block">Reads all characters from a file into a string, decoding from bytes to characters
using the specified <a href="../charset/Charset.html" title="class in java.nio.charset">charset</a>.</div>
</td>
</tr>
<tr class="rowColor" id="i55">
<td class="colFirst"><code>static <a href="Path.html" title="interface in java.nio.file">Path</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#readSymbolicLink(java.nio.file.Path)">readSymbolicLink</a></span>​(<a href="Path.html" title="interface in java.nio.file">Path</a> link)</code></th>
<td class="colLast">
<div class="block">Reads the target of a symbolic link <i>(optional operation)</i>.</div>
</td>
</tr>
<tr class="altColor" id="i56">
<td class="colFirst"><code>static <a href="Path.html" title="interface in java.nio.file">Path</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#setAttribute(java.nio.file.Path,java.lang.String,java.lang.Object,java.nio.file.LinkOption...)">setAttribute</a></span>​(<a href="Path.html" title="interface in java.nio.file">Path</a> path,
<a href="../../lang/String.html" title="class in java.lang">String</a> attribute,
<a href="../../lang/Object.html" title="class in java.lang">Object</a> value,
<a href="LinkOption.html" title="enum in java.nio.file">LinkOption</a>... options)</code></th>
<td class="colLast">
<div class="block">Sets the value of a file attribute.</div>
</td>
</tr>
<tr class="rowColor" id="i57">
<td class="colFirst"><code>static <a href="Path.html" title="interface in java.nio.file">Path</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#setLastModifiedTime(java.nio.file.Path,java.nio.file.attribute.FileTime)">setLastModifiedTime</a></span>​(<a href="Path.html" title="interface in java.nio.file">Path</a> path,
<a href="attribute/FileTime.html" title="class in java.nio.file.attribute">FileTime</a> time)</code></th>
<td class="colLast">
<div class="block">Updates a file's last modified time attribute.</div>
</td>
</tr>
<tr class="altColor" id="i58">
<td class="colFirst"><code>static <a href="Path.html" title="interface in java.nio.file">Path</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#setOwner(java.nio.file.Path,java.nio.file.attribute.UserPrincipal)">setOwner</a></span>​(<a href="Path.html" title="interface in java.nio.file">Path</a> path,
<a href="attribute/UserPrincipal.html" title="interface in java.nio.file.attribute">UserPrincipal</a> owner)</code></th>
<td class="colLast">
<div class="block">Updates the file owner.</div>
</td>
</tr>
<tr class="rowColor" id="i59">
<td class="colFirst"><code>static <a href="Path.html" title="interface in java.nio.file">Path</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#setPosixFilePermissions(java.nio.file.Path,java.util.Set)">setPosixFilePermissions</a></span>​(<a href="Path.html" title="interface in java.nio.file">Path</a> path,
<a href="../../util/Set.html" title="interface in java.util">Set</a><<a href="attribute/PosixFilePermission.html" title="enum in java.nio.file.attribute">PosixFilePermission</a>> perms)</code></th>
<td class="colLast">
<div class="block">Sets a file's POSIX permissions.</div>
</td>
</tr>
<tr class="altColor" id="i60">
<td class="colFirst"><code>static long</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#size(java.nio.file.Path)">size</a></span>​(<a href="Path.html" title="interface in java.nio.file">Path</a> path)</code></th>
<td class="colLast">
<div class="block">Returns the size of a file (in bytes).</div>
</td>
</tr>
<tr class="rowColor" id="i61">
<td class="colFirst"><code>static <a href="../../util/stream/Stream.html" title="interface in java.util.stream">Stream</a><<a href="Path.html" title="interface in java.nio.file">Path</a>></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#walk(java.nio.file.Path,int,java.nio.file.FileVisitOption...)">walk</a></span>​(<a href="Path.html" title="interface in java.nio.file">Path</a> start,
int maxDepth,
<a href="FileVisitOption.html" title="enum in java.nio.file">FileVisitOption</a>... options)</code></th>
<td class="colLast">
<div class="block">Return a <code>Stream</code> that is lazily populated with <code>
Path</code> by walking the file tree rooted at a given starting file.</div>
</td>
</tr>
<tr class="altColor" id="i62">
<td class="colFirst"><code>static <a href="../../util/stream/Stream.html" title="interface in java.util.stream">Stream</a><<a href="Path.html" title="interface in java.nio.file">Path</a>></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#walk(java.nio.file.Path,java.nio.file.FileVisitOption...)">walk</a></span>​(<a href="Path.html" title="interface in java.nio.file">Path</a> start,
<a href="FileVisitOption.html" title="enum in java.nio.file">FileVisitOption</a>... options)</code></th>
<td class="colLast">
<div class="block">Return a <code>Stream</code> that is lazily populated with <code>
Path</code> by walking the file tree rooted at a given starting file.</div>
</td>
</tr>
<tr class="rowColor" id="i63">
<td class="colFirst"><code>static <a href="Path.html" title="interface in java.nio.file">Path</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#walkFileTree(java.nio.file.Path,java.nio.file.FileVisitor)">walkFileTree</a></span>​(<a href="Path.html" title="interface in java.nio.file">Path</a> start,
<a href="FileVisitor.html" title="interface in java.nio.file">FileVisitor</a><? super <a href="Path.html" title="interface in java.nio.file">Path</a>> visitor)</code></th>
<td class="colLast">
<div class="block">Walks a file tree.</div>
</td>
</tr>
<tr class="altColor" id="i64">
<td class="colFirst"><code>static <a href="Path.html" title="interface in java.nio.file">Path</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#walkFileTree(java.nio.file.Path,java.util.Set,int,java.nio.file.FileVisitor)">walkFileTree</a></span>​(<a href="Path.html" title="interface in java.nio.file">Path</a> start,
<a href="../../util/Set.html" title="interface in java.util">Set</a><<a href="FileVisitOption.html" title="enum in java.nio.file">FileVisitOption</a>> options,
int maxDepth,
<a href="FileVisitor.html" title="interface in java.nio.file">FileVisitor</a><? super <a href="Path.html" title="interface in java.nio.file">Path</a>> visitor)</code></th>
<td class="colLast">
<div class="block">Walks a file tree.</div>
</td>
</tr>
<tr class="rowColor" id="i65">
<td class="colFirst"><code>static <a href="Path.html" title="interface in java.nio.file">Path</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#write(java.nio.file.Path,byte%5B%5D,java.nio.file.OpenOption...)">write</a></span>​(<a href="Path.html" title="interface in java.nio.file">Path</a> path,
byte[] bytes,
<a href="OpenOption.html" title="interface in java.nio.file">OpenOption</a>... options)</code></th>
<td class="colLast">
<div class="block">Writes bytes to a file.</div>
</td>
</tr>
<tr class="altColor" id="i66">
<td class="colFirst"><code>static <a href="Path.html" title="interface in java.nio.file">Path</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#write(java.nio.file.Path,java.lang.Iterable,java.nio.charset.Charset,java.nio.file.OpenOption...)">write</a></span>​(<a href="Path.html" title="interface in java.nio.file">Path</a> path,
<a href="../../lang/Iterable.html" title="interface in java.lang">Iterable</a><? extends <a href="../../lang/CharSequence.html" title="interface in java.lang">CharSequence</a>> lines,
<a href="../charset/Charset.html" title="class in java.nio.charset">Charset</a> cs,
<a href="OpenOption.html" title="interface in java.nio.file">OpenOption</a>... options)</code></th>
<td class="colLast">
<div class="block">Write lines of text to a file.</div>
</td>
</tr>
<tr class="rowColor" id="i67">
<td class="colFirst"><code>static <a href="Path.html" title="interface in java.nio.file">Path</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#write(java.nio.file.Path,java.lang.Iterable,java.nio.file.OpenOption...)">write</a></span>​(<a href="Path.html" title="interface in java.nio.file">Path</a> path,
<a href="../../lang/Iterable.html" title="interface in java.lang">Iterable</a><? extends <a href="../../lang/CharSequence.html" title="interface in java.lang">CharSequence</a>> lines,
<a href="OpenOption.html" title="interface in java.nio.file">OpenOption</a>... options)</code></th>
<td class="colLast">
<div class="block">Write lines of text to a file.</div>
</td>
</tr>
<tr class="altColor" id="i68">
<td class="colFirst"><code>static <a href="Path.html" title="interface in java.nio.file">Path</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#writeString(java.nio.file.Path,java.lang.CharSequence,java.nio.charset.Charset,java.nio.file.OpenOption...)">writeString</a></span>​(<a href="Path.html" title="interface in java.nio.file">Path</a> path,
<a href="../../lang/CharSequence.html" title="interface in java.lang">CharSequence</a> csq,
<a href="../charset/Charset.html" title="class in java.nio.charset">Charset</a> cs,
<a href="OpenOption.html" title="interface in java.nio.file">OpenOption</a>... options)</code></th>
<td class="colLast">
<div class="block">Write a <a href="../../lang/CharSequence.html" title="interface in java.lang">CharSequence</a> to a file.</div>
</td>
</tr>
<tr class="rowColor" id="i69">
<td class="colFirst"><code>static <a href="Path.html" title="interface in java.nio.file">Path</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#writeString(java.nio.file.Path,java.lang.CharSequence,java.nio.file.OpenOption...)">writeString</a></span>​(<a href="Path.html" title="interface in java.nio.file">Path</a> path,
<a href="../../lang/CharSequence.html" title="interface in java.lang">CharSequence</a> csq,
<a href="OpenOption.html" title="interface in java.nio.file">OpenOption</a>... options)</code></th>
<td class="colLast">
<div class="block">Write a <a href="../../lang/CharSequence.html" title="interface in java.lang">CharSequence</a> to a file.</div>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<ul class="blockList">
<li class="blockList"><a id="methods.inherited.from.class.java.lang.Object">
<!-- -->
</a>
<h3>Methods declared in class java.lang.<a href="../../lang/Object.html" title="class in java.lang">Object</a></h3>
<code><a href="../../lang/Object.html#clone()">clone</a>, <a href="../../lang/Object.html#equals(java.lang.Object)">equals</a>, <a href="../../lang/Object.html#finalize()">finalize</a>, <a href="../../lang/Object.html#getClass()">getClass</a>, <a href="../../lang/Object.html#hashCode()">hashCode</a>, <a href="../../lang/Object.html#notify()">notify</a>, <a href="../../lang/Object.html#notifyAll()">notifyAll</a>, <a href="../../lang/Object.html#toString()">toString</a>, <a href="../../lang/Object.html#wait()">wait</a>, <a href="../../lang/Object.html#wait(long)">wait</a>, <a href="../../lang/Object.html#wait(long,int)">wait</a></code></li>
</ul>
</li>
</ul>
</section>
</li>
</ul>
</div>
<div class="details">
<ul class="blockList">
<li class="blockList">
<!-- ============ METHOD DETAIL ========== -->
<section role="region">
<ul class="blockList">
<li class="blockList"><a id="method.detail">
<!-- -->
</a>
<h3>Method Detail</h3>
<a id="newInputStream(java.nio.file.Path,java.nio.file.OpenOption...)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>newInputStream</h4>
<pre class="methodSignature">public static <a href="../../io/InputStream.html" title="class in java.io">InputStream</a> newInputStream​(<a href="Path.html" title="interface in java.nio.file">Path</a> path,
<a href="OpenOption.html" title="interface in java.nio.file">OpenOption</a>... options)
throws <a href="../../io/IOException.html" title="class in java.io">IOException</a></pre>
<div class="block">Opens a file, returning an input stream to read from the file. The stream
will not be buffered, and is not required to support the <a href="../../io/InputStream.html#mark(int)"><code>mark</code></a> or <a href="../../io/InputStream.html#reset()"><code>reset</code></a> methods. The
stream will be safe for access by multiple concurrent threads. Reading
commences at the beginning of the file. Whether the returned stream is
<i>asynchronously closeable</i> and/or <i>interruptible</i> is highly
file system provider specific and therefore not specified.
<p> The <code>options</code> parameter determines how the file is opened.
If no options are present then it is equivalent to opening the file with
the <a href="StandardOpenOption.html#READ"><code>READ</code></a> option. In addition to the <code>
READ</code> option, an implementation may also support additional implementation
specific options.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>path</code> - the path to the file to open</dd>
<dd><code>options</code> - options specifying how the file is opened</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>a new input stream</dd>
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code><a href="../../lang/IllegalArgumentException.html" title="class in java.lang">IllegalArgumentException</a></code> - if an invalid combination of options is specified</dd>
<dd><code><a href="../../lang/UnsupportedOperationException.html" title="class in java.lang">UnsupportedOperationException</a></code> - if an unsupported option is specified</dd>
<dd><code><a href="../../io/IOException.html" title="class in java.io">IOException</a></code> - if an I/O error occurs</dd>
<dd><code><a href="../../lang/SecurityException.html" title="class in java.lang">SecurityException</a></code> - In the case of the default provider, and a security manager is
installed, the <a href="../../lang/SecurityManager.html#checkRead(java.lang.String)"><code>checkRead</code></a>
method is invoked to check read access to the file.</dd>
</dl>
</li>
</ul>
<a id="newOutputStream(java.nio.file.Path,java.nio.file.OpenOption...)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>newOutputStream</h4>
<pre class="methodSignature">public static <a href="../../io/OutputStream.html" title="class in java.io">OutputStream</a> newOutputStream​(<a href="Path.html" title="interface in java.nio.file">Path</a> path,
<a href="OpenOption.html" title="interface in java.nio.file">OpenOption</a>... options)
throws <a href="../../io/IOException.html" title="class in java.io">IOException</a></pre>
<div class="block">Opens or creates a file, returning an output stream that may be used to
write bytes to the file. The resulting stream will not be buffered. The
stream will be safe for access by multiple concurrent threads. Whether
the returned stream is <i>asynchronously closeable</i> and/or
<i>interruptible</i> is highly file system provider specific and
therefore not specified.
<p> This method opens or creates a file in exactly the manner specified
by the <a href="#newByteChannel(java.nio.file.Path,java.util.Set,java.nio.file.attribute.FileAttribute...)"><code>newByteChannel</code></a>
method with the exception that the <a href="StandardOpenOption.html#READ"><code>READ</code></a>
option may not be present in the array of options. If no options are
present then this method works as if the <a href="StandardOpenOption.html#CREATE"><code>CREATE</code></a>, <a href="StandardOpenOption.html#TRUNCATE_EXISTING"><code>TRUNCATE_EXISTING</code></a>,
and <a href="StandardOpenOption.html#WRITE"><code>WRITE</code></a> options are present. In other
words, it opens the file for writing, creating the file if it doesn't
exist, or initially truncating an existing <a href="#isRegularFile(java.nio.file.Path,java.nio.file.LinkOption...)"><code>regular-file</code></a> to a size of <code>0</code> if it exists.
<p> <b>Usage Examples:</b>
<pre>
Path path = ...
// truncate and overwrite an existing file, or create the file if
// it doesn't initially exist
OutputStream out = Files.newOutputStream(path);
// append to an existing file, fail if the file does not exist
out = Files.newOutputStream(path, APPEND);
// append to an existing file, create file if it doesn't initially exist
out = Files.newOutputStream(path, CREATE, APPEND);
// always create new file, failing if it already exists
out = Files.newOutputStream(path, CREATE_NEW);
</pre></div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>path</code> - the path to the file to open or create</dd>
<dd><code>options</code> - options specifying how the file is opened</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>a new output stream</dd>
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code><a href="../../lang/IllegalArgumentException.html" title="class in java.lang">IllegalArgumentException</a></code> - if <code>options</code> contains an invalid combination of options</dd>
<dd><code><a href="../../lang/UnsupportedOperationException.html" title="class in java.lang">UnsupportedOperationException</a></code> - if an unsupported option is specified</dd>
<dd><code><a href="../../io/IOException.html" title="class in java.io">IOException</a></code> - if an I/O error occurs</dd>
<dd><code><a href="../../lang/SecurityException.html" title="class in java.lang">SecurityException</a></code> - In the case of the default provider, and a security manager is
installed, the <a href="../../lang/SecurityManager.html#checkWrite(java.lang.String)"><code>checkWrite</code></a>
method is invoked to check write access to the file. The <a href="../../lang/SecurityManager.html#checkDelete(java.lang.String)"><code>checkDelete</code></a> method is
invoked to check delete access if the file is opened with the
<code>DELETE_ON_CLOSE</code> option.</dd>
</dl>
</li>
</ul>
<a id="newByteChannel(java.nio.file.Path,java.util.Set,java.nio.file.attribute.FileAttribute...)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>newByteChannel</h4>
<pre class="methodSignature">public static <a href="../channels/SeekableByteChannel.html" title="interface in java.nio.channels">SeekableByteChannel</a> newByteChannel​(<a href="Path.html" title="interface in java.nio.file">Path</a> path,
<a href="../../util/Set.html" title="interface in java.util">Set</a><? extends <a href="OpenOption.html" title="interface in java.nio.file">OpenOption</a>> options,
<a href="attribute/FileAttribute.html" title="interface in java.nio.file.attribute">FileAttribute</a><?>... attrs)
throws <a href="../../io/IOException.html" title="class in java.io">IOException</a></pre>
<div class="block">Opens or creates a file, returning a seekable byte channel to access the
file.
<p> The <code>options</code> parameter determines how the file is opened.
The <a href="StandardOpenOption.html#READ"><code>READ</code></a> and <a href="StandardOpenOption.html#WRITE"><code>WRITE</code></a> options determine if the file should be
opened for reading and/or writing. If neither option (or the <a href="StandardOpenOption.html#APPEND"><code>APPEND</code></a> option) is present then the file is
opened for reading. By default reading or writing commence at the
beginning of the file.
<p> In the addition to <code>READ</code> and <code>WRITE</code>, the following
options may be present:
<table class="striped">
<caption style="display:none">Options</caption>
<thead>
<tr> <th scope="col">Option</th> <th scope="col">Description</th> </tr>
</thead>
<tbody>
<tr>
<th scope="row"> <a href="StandardOpenOption.html#APPEND"><code>APPEND</code></a> </th>
<td> If this option is present then the file is opened for writing and
each invocation of the channel's <code>write</code> method first advances
the position to the end of the file and then writes the requested
data. Whether the advancement of the position and the writing of the
data are done in a single atomic operation is system-dependent and
therefore unspecified. This option may not be used in conjunction
with the <code>READ</code> or <code>TRUNCATE_EXISTING</code> options. </td>
</tr>
<tr>
<th scope="row"> <a href="StandardOpenOption.html#TRUNCATE_EXISTING"><code>TRUNCATE_EXISTING</code></a> </th>
<td> If this option is present then the existing file is truncated to
a size of 0 bytes. This option is ignored when the file is opened only
for reading. </td>
</tr>
<tr>
<th scope="row"> <a href="StandardOpenOption.html#CREATE_NEW"><code>CREATE_NEW</code></a> </th>
<td> If this option is present then a new file is created, failing if
the file already exists or is a symbolic link. When creating a file the
check for the existence of the file and the creation of the file if it
does not exist is atomic with respect to other file system operations.
This option is ignored when the file is opened only for reading. </td>
</tr>
<tr>
<th scope="row"> <a href="StandardOpenOption.html#CREATE"><code>CREATE</code></a> </th>
<td> If this option is present then an existing file is opened if it
exists, otherwise a new file is created. This option is ignored if the
<code>CREATE_NEW</code> option is also present or the file is opened only
for reading. </td>
</tr>
<tr>
<th scope="row"> <a href="StandardOpenOption.html#DELETE_ON_CLOSE"><code>DELETE_ON_CLOSE</code></a> </th>
<td> When this option is present then the implementation makes a
<em>best effort</em> attempt to delete the file when closed by the
<a href="../channels/Channel.html#close()"><code>close</code></a> method. If the <code>close</code>
method is not invoked then a <em>best effort</em> attempt is made to
delete the file when the Java virtual machine terminates. </td>
</tr>
<tr>
<th scope="row"><a href="StandardOpenOption.html#SPARSE"><code>SPARSE</code></a> </th>
<td> When creating a new file this option is a <em>hint</em> that the
new file will be sparse. This option is ignored when not creating
a new file. </td>
</tr>
<tr>
<th scope="row"> <a href="StandardOpenOption.html#SYNC"><code>SYNC</code></a> </th>