This repository has been archived by the owner on May 29, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 14
/
File.xml
3268 lines (3255 loc) · 204 KB
/
File.xml
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
<Type Name="File" FullName="Java.IO.File">
<TypeSignature Language="C#" Value="public class File : Java.Lang.Object, IDisposable, Java.Interop.IJavaPeerable, Java.IO.ISerializable, Java.Lang.IComparable" />
<TypeSignature Language="ILAsm" Value=".class public auto ansi beforefieldinit File extends Java.Lang.Object implements class Android.Runtime.IJavaObject, class Java.Interop.IJavaPeerable, class Java.IO.ISerializable, class Java.Lang.IComparable, class System.IDisposable" />
<TypeSignature Language="DocId" Value="T:Java.IO.File" />
<TypeSignature Language="F#" Value="type File = class
 inherit Object
 interface ISerializable
 interface IJavaObject
 interface IDisposable
 interface IJavaPeerable
 interface IComparable" />
<AssemblyInfo>
<AssemblyName>Mono.Android</AssemblyName>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Base>
<BaseTypeName>Java.Lang.Object</BaseTypeName>
</Base>
<Interfaces>
<Interface>
<InterfaceName>Android.Runtime.IJavaObject</InterfaceName>
</Interface>
<Interface>
<InterfaceName>Java.Interop.IJavaPeerable</InterfaceName>
</Interface>
<Interface>
<InterfaceName>Java.IO.ISerializable</InterfaceName>
</Interface>
<Interface>
<InterfaceName>Java.Lang.IComparable</InterfaceName>
</Interface>
<Interface>
<InterfaceName>System.IDisposable</InterfaceName>
</Interface>
</Interfaces>
<Attributes>
<Attribute>
<AttributeName Language="C#">[Android.Runtime.Register("java/io/File", DoNotGenerateAcw=true)]</AttributeName>
<AttributeName Language="F#">[<Android.Runtime.Register("java/io/File", DoNotGenerateAcw=true)>]</AttributeName>
</Attribute>
</Attributes>
<Docs since="1">
<summary>An abstract representation of file and directory pathnames.</summary>
<remarks>
<para>An abstract representation of file and directory pathnames.</para>
<para>User interfaces and operating systems use system-dependent <em>pathname
strings</em> to name files and directories. This class presents an
abstract, system-independent view of hierarchical pathnames. An
<em>abstract pathname</em> has two components:
<ol>
<li> An optional system-dependent <em>prefix</em> string,
such as a disk-drive specifier, <c>"/"</c>&nbsp;for the UNIX root
directory, or <c>"\\\\"</c>&nbsp;for a Microsoft Windows UNC pathname, and
<li> A sequence of zero or more string <em>names</em>.
</ol>
The first name in an abstract pathname may be a directory name or, in the
case of Microsoft Windows UNC pathnames, a hostname. Each subsequent name
in an abstract pathname denotes a directory; the last name may denote
either a directory or a file. The <em>empty</em> abstract pathname has no
prefix and an empty name sequence.</para>
<para>The conversion of a pathname string to or from an abstract pathname is
inherently system-dependent. When an abstract pathname is converted into a
pathname string, each name is separated from the next by a single copy of
the default <em>separator character</em>. The default name-separator
character is defined by the system property <c>file.separator</c>, and
is made available in the public static fields <c>{@link
#separator}</c> and <c>{@link #separatorChar}</c> of this class.
When a pathname string is converted into an abstract pathname, the names
within it may be separated by the default name-separator character or by any
other name-separator character that is supported by the underlying system.</para>
<para>A pathname, whether abstract or in string form, may be either
<em>absolute</em> or <em>relative</em>. An absolute pathname is complete in
that no other information is required in order to locate the file that it
denotes. A relative pathname, in contrast, must be interpreted in terms of
information taken from some other pathname. By default the classes in the
<c>java.io</c> package always resolve relative pathnames against the
current user directory. This directory is named by the system property
<c>user.dir</c>, and is typically the directory in which the Java
virtual machine was invoked.</para>
<para>The <em>parent</em> of an abstract pathname may be obtained by invoking
the <c>#getParent</c> method of this class and consists of the pathname's
prefix and each name in the pathname's name sequence except for the last.
Each directory's absolute pathname is an ancestor of any <c>File</c>
object with an absolute abstract pathname which begins with the directory's
absolute pathname. For example, the directory denoted by the abstract
pathname <c>"/usr"</c> is an ancestor of the directory denoted by the
pathname <c>"/usr/local/bin"</c>.</para>
<para>The prefix concept is used to handle root directories on UNIX platforms,
and drive specifiers, root directories and UNC pathnames on Microsoft Windows platforms,
as follows:
<ul>
<li> For UNIX platforms, the prefix of an absolute pathname is always
<c>"/"</c>. Relative pathnames have no prefix. The abstract pathname
denoting the root directory has the prefix <c>"/"</c> and an empty
name sequence.
<li> For Microsoft Windows platforms, the prefix of a pathname that contains a drive
specifier consists of the drive letter followed by <c>":"</c> and
possibly followed by <c>"\\"</c> if the pathname is absolute. The
prefix of a UNC pathname is <c>"\\\\"</c>; the hostname and the share
name are the first two names in the name sequence. A relative pathname that
does not specify a drive has no prefix.
</ul></para>
<para>Instances of this class may or may not denote an actual file-system
object such as a file or a directory. If it does denote such an object
then that object resides in a <i>partition</i>. A partition is an
operating system-specific portion of storage for a file system. A single
storage device (e.g. a physical disk-drive, flash memory, CD-ROM) may
contain multiple partitions. The object, if any, will reside on the
partition "partName">named by some ancestor of the absolute
form of this pathname.</para>
<para>A file system may implement restrictions to certain operations on the
actual file-system object, such as reading, writing, and executing. These
restrictions are collectively known as <i>access permissions</i>. The file
system may have multiple sets of access permissions on a single object.
For example, one set may apply to the object's <i>owner</i>, and another
may apply to all other users. The access permissions on an object may
cause some methods in this class to fail.</para>
<para>Instances of the <c>File</c> class are immutable; that is, once
created, the abstract pathname represented by a <c>File</c> object
will never change.
<h3>Interoperability with <c>java.nio.file</c> package</h3></para>
<para>The <c>java.nio.file</c>
package defines interfaces and classes for the Java virtual machine to access
files, file attributes, and file systems. This API may be used to overcome
many of the limitations of the <c>java.io.File</c> class.
The <c>#toPath toPath</c> method may be used to obtain a <c>Path</c> that uses the abstract path represented by a <c>File</c> object to
locate a file. The resulting <c>Path</c> may be used with the <c>java.nio.file.Files</c> class to provide more efficient and extensive access to
additional file operations, file attributes, and I/O exceptions to help
diagnose errors when an operation on a file fails.</para>
<para>On Android strings are converted to UTF-8 byte sequences when sending filenames to
the operating system, and byte sequences returned by the operating system (from the
various <c>list</c> methods) are converted to strings by decoding them as UTF-8
byte sequences.</para>
<para>Added in JDK1.0.</para>
<para>
<format type="text/html">
<a href="https://developer.android.com/reference/java/io/File" title="Reference documentation">Java documentation for <code>java.io.File</code>.</a>
</format>
</para>
<para>
Portions of this page are modifications based on work created and shared by the
<format type="text/html"><a href="https://developers.google.com/terms/site-policies" title="Android Open Source Project">Android Open Source Project</a></format>
and used according to terms described in the
<format type="text/html"><a href="https://creativecommons.org/licenses/by/2.5/" title="Creative Commons 2.5 Attribution License">Creative Commons 2.5 Attribution License.</a></format></para>
</remarks>
<since version="Added in API level 1" />
</Docs>
<Members>
<Member MemberName=".ctor">
<MemberSignature Language="C#" Value="public File (Java.Net.URI uri);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig specialname rtspecialname instance void .ctor(class Java.Net.URI uri) cil managed" />
<MemberSignature Language="DocId" Value="M:Java.IO.File.#ctor(Java.Net.URI)" />
<MemberSignature Language="F#" Value="new Java.IO.File : Java.Net.URI -> Java.IO.File" Usage="new Java.IO.File uri" />
<MemberType>Constructor</MemberType>
<AssemblyInfo>
<AssemblyName>Mono.Android</AssemblyName>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName Language="C#">[Android.Runtime.Register(".ctor", "(Ljava/net/URI;)V", "")]</AttributeName>
<AttributeName Language="F#">[<Android.Runtime.Register(".ctor", "(Ljava/net/URI;)V", "")>]</AttributeName>
</Attribute>
</Attributes>
<Parameters>
<Parameter Name="uri" Type="Java.Net.URI" />
</Parameters>
<Docs>
<param name="uri">An absolute, hierarchical URI with a scheme equal to
<c>"file"</c>, a non-empty path component, and undefined
authority, query, and fragment components</param>
<summary>Creates a new <c>File</c> instance by converting the given
<c>file:</c> URI into an abstract pathname.</summary>
<remarks>
<para>Creates a new <c>File</c> instance by converting the given
<c>file:</c> URI into an abstract pathname.</para>
<para>The exact form of a <c>file:</c> URI is system-dependent, hence
the transformation performed by this constructor is also
system-dependent.</para>
<para>For a given abstract pathname <i>f</i> it is guaranteed that
<blockquote><c>
new File(</c><i>&nbsp;f</i><c>.<c>#toURI() toURI</c>()).equals(</c><i>&nbsp;f</i><c>.<c>#getAbsoluteFile() getAbsoluteFile</c>())
</c></blockquote>
so long as the original abstract pathname, the URI, and the new abstract
pathname are all created in (possibly different invocations of) the same
Java virtual machine. This relationship typically does not hold,
however, when a <c>file:</c> URI that is created in a virtual machine
on one operating system is converted into an abstract pathname in a
virtual machine on a different operating system.</para>
<para>Added in 1.4.</para>
<para>
<format type="text/html">
<a href="https://developer.android.com/reference/java/io/File#File(java.net.URI)" title="Reference documentation">Java documentation for <code>java.io.File.File(java.net.URI)</code>.</a>
</format>
</para>
<para>
Portions of this page are modifications based on work created and shared by the
<format type="text/html"><a href="https://developers.google.com/terms/site-policies" title="Android Open Source Project">Android Open Source Project</a></format>
and used according to terms described in the
<format type="text/html"><a href="https://creativecommons.org/licenses/by/2.5/" title="Creative Commons 2.5 Attribution License">Creative Commons 2.5 Attribution License.</a></format></para>
</remarks>
<since version="Added in API level 1" />
<exception cref="T:Java.Lang.NullPointerException">if <c>uri == null</c>.</exception>
<exception cref="T:Java.Lang.IllegalArgumentException">if <c>uri</c> does not comply with the conditions above.</exception>
<altmember cref="M:Java.IO.File.ToURI" />
<altmember cref="T:Java.Net.URI" />
</Docs>
</Member>
<Member MemberName=".ctor">
<MemberSignature Language="C#" Value="public File (string pathname);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig specialname rtspecialname instance void .ctor(string pathname) cil managed" />
<MemberSignature Language="DocId" Value="M:Java.IO.File.#ctor(System.String)" />
<MemberSignature Language="F#" Value="new Java.IO.File : string -> Java.IO.File" Usage="new Java.IO.File pathname" />
<MemberType>Constructor</MemberType>
<AssemblyInfo>
<AssemblyName>Mono.Android</AssemblyName>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName Language="C#">[Android.Runtime.Register(".ctor", "(Ljava/lang/String;)V", "")]</AttributeName>
<AttributeName Language="F#">[<Android.Runtime.Register(".ctor", "(Ljava/lang/String;)V", "")>]</AttributeName>
</Attribute>
</Attributes>
<Parameters>
<Parameter Name="pathname" Type="System.String" />
</Parameters>
<Docs>
<param name="pathname">A pathname string</param>
<summary>Creates a new <c>File</c> instance by converting the given
pathname string into an abstract pathname.</summary>
<remarks>
<para>Creates a new <c>File</c> instance by converting the given
pathname string into an abstract pathname. If the given string is
the empty string, then the result is the empty abstract pathname.</para>
<para>
<format type="text/html">
<a href="https://developer.android.com/reference/java/io/File#File(java.lang.String)" title="Reference documentation">Java documentation for <code>java.io.File.File(java.lang.String)</code>.</a>
</format>
</para>
<para>
Portions of this page are modifications based on work created and shared by the
<format type="text/html"><a href="https://developers.google.com/terms/site-policies" title="Android Open Source Project">Android Open Source Project</a></format>
and used according to terms described in the
<format type="text/html"><a href="https://creativecommons.org/licenses/by/2.5/" title="Creative Commons 2.5 Attribution License">Creative Commons 2.5 Attribution License.</a></format></para>
</remarks>
<since version="Added in API level 1" />
<exception cref="T:Java.Lang.NullPointerException">if <c>path</c> is <c>null</c>.
</exception>
</Docs>
</Member>
<Member MemberName=".ctor">
<MemberSignature Language="C#" Value="public File (Java.IO.File? parent, string child);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig specialname rtspecialname instance void .ctor(class Java.IO.File parent, string child) cil managed" />
<MemberSignature Language="DocId" Value="M:Java.IO.File.#ctor(Java.IO.File,System.String)" />
<MemberSignature Language="F#" Value="new Java.IO.File : Java.IO.File * string -> Java.IO.File" Usage="new Java.IO.File (parent, child)" />
<MemberType>Constructor</MemberType>
<AssemblyInfo>
<AssemblyName>Mono.Android</AssemblyName>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName Language="C#">[Android.Runtime.Register(".ctor", "(Ljava/io/File;Ljava/lang/String;)V", "")]</AttributeName>
<AttributeName Language="F#">[<Android.Runtime.Register(".ctor", "(Ljava/io/File;Ljava/lang/String;)V", "")>]</AttributeName>
</Attribute>
</Attributes>
<Parameters>
<Parameter Name="parent" Type="Java.IO.File" />
<Parameter Name="child" Type="System.String" />
</Parameters>
<Docs>
<param name="parent">The parent abstract pathname</param>
<param name="child">The child pathname string</param>
<summary>Creates a new <c>File</c> instance from a parent abstract
pathname and a child pathname string.</summary>
<remarks>
<para>Creates a new <c>File</c> instance from a parent abstract
pathname and a child pathname string.</para>
<para>If <c>parent</c> is <c>null</c> then the new
<c>File</c> instance is created as if by invoking the
single-argument <c>File</c> constructor on the given
<c>child</c> pathname string.</para>
<para>Otherwise the <c>parent</c> abstract pathname is taken to
denote a directory, and the <c>child</c> pathname string is taken
to denote either a directory or a file. If the <c>child</c>
pathname string is absolute then it is converted into a relative
pathname in a system-dependent way. If <c>parent</c> is the empty
abstract pathname then the new <c>File</c> instance is created by
converting <c>child</c> into an abstract pathname and resolving
the result against a system-dependent default directory. Otherwise each
pathname string is converted into an abstract pathname and the child
abstract pathname is resolved against the parent.</para>
<para>
<format type="text/html">
<a href="https://developer.android.com/reference/java/io/File#File(java.io.File,%20java.lang.String)" title="Reference documentation">Java documentation for <code>java.io.File.File(java.io.File, java.lang.String)</code>.</a>
</format>
</para>
<para>
Portions of this page are modifications based on work created and shared by the
<format type="text/html"><a href="https://developers.google.com/terms/site-policies" title="Android Open Source Project">Android Open Source Project</a></format>
and used according to terms described in the
<format type="text/html"><a href="https://creativecommons.org/licenses/by/2.5/" title="Creative Commons 2.5 Attribution License">Creative Commons 2.5 Attribution License.</a></format></para>
</remarks>
<since version="Added in API level 1" />
<exception cref="T:Java.Lang.NullPointerException">if <c>name</c> is <c>null</c>.
</exception>
</Docs>
</Member>
<Member MemberName=".ctor">
<MemberSignature Language="C#" Value="protected File (IntPtr javaReference, Android.Runtime.JniHandleOwnership transfer);" />
<MemberSignature Language="ILAsm" Value=".method familyhidebysig specialname rtspecialname instance void .ctor(native int javaReference, valuetype Android.Runtime.JniHandleOwnership transfer) cil managed" />
<MemberSignature Language="DocId" Value="M:Java.IO.File.#ctor(System.IntPtr,Android.Runtime.JniHandleOwnership)" />
<MemberSignature Language="F#" Value="new Java.IO.File : nativeint * Android.Runtime.JniHandleOwnership -> Java.IO.File" Usage="new Java.IO.File (javaReference, transfer)" />
<MemberType>Constructor</MemberType>
<AssemblyInfo>
<AssemblyName>Mono.Android</AssemblyName>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Parameters>
<Parameter Name="javaReference" Type="System.IntPtr" />
<Parameter Name="transfer" Type="Android.Runtime.JniHandleOwnership" />
</Parameters>
<Docs>
<param name="javaReference">A <see cref="T:System.IntPtr" />containing a Java Native Interface (JNI) object reference.</param>
<param name="transfer">A <see cref="T:Android.Runtime.JniHandleOwnership" />indicating how to handle <paramref name="javaReference" /></param>
<summary>A constructor used when creating managed representations of JNI objects; called by the runtime.</summary>
<remarks>
<para>Portions of this page are modifications based on work created and shared by the <format type="text/html"><a href="https://developers.google.com/terms/site-policies" title="Android Open Source Project">Android Open Source Project</a></format> and used according to terms described in the <format type="text/html"><a href="https://creativecommons.org/licenses/by/2.5/" title="Creative Commons 2.5 Attribution License">Creative Commons 2.5 Attribution License.</a></format></para>
</remarks>
</Docs>
</Member>
<Member MemberName=".ctor">
<MemberSignature Language="C#" Value="public File (string? parent, string child);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig specialname rtspecialname instance void .ctor(string parent, string child) cil managed" />
<MemberSignature Language="DocId" Value="M:Java.IO.File.#ctor(System.String,System.String)" />
<MemberSignature Language="F#" Value="new Java.IO.File : string * string -> Java.IO.File" Usage="new Java.IO.File (parent, child)" />
<MemberType>Constructor</MemberType>
<AssemblyInfo>
<AssemblyName>Mono.Android</AssemblyName>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName Language="C#">[Android.Runtime.Register(".ctor", "(Ljava/lang/String;Ljava/lang/String;)V", "")]</AttributeName>
<AttributeName Language="F#">[<Android.Runtime.Register(".ctor", "(Ljava/lang/String;Ljava/lang/String;)V", "")>]</AttributeName>
</Attribute>
</Attributes>
<Parameters>
<Parameter Name="parent" Type="System.String" />
<Parameter Name="child" Type="System.String" />
</Parameters>
<Docs>
<param name="parent">The parent pathname string</param>
<param name="child">The child pathname string</param>
<summary>Creates a new <c>File</c> instance from a parent pathname string
and a child pathname string.</summary>
<remarks>
<para>Creates a new <c>File</c> instance from a parent pathname string
and a child pathname string.</para>
<para>If <c>parent</c> is <c>null</c> then the new
<c>File</c> instance is created as if by invoking the
single-argument <c>File</c> constructor on the given
<c>child</c> pathname string.</para>
<para>Otherwise the <c>parent</c> pathname string is taken to denote
a directory, and the <c>child</c> pathname string is taken to
denote either a directory or a file. If the <c>child</c> pathname
string is absolute then it is converted into a relative pathname in a
system-dependent way. If <c>parent</c> is the empty string then
the new <c>File</c> instance is created by converting
<c>child</c> into an abstract pathname and resolving the result
against a system-dependent default directory. Otherwise each pathname
string is converted into an abstract pathname and the child abstract
pathname is resolved against the parent.</para>
<para>
<format type="text/html">
<a href="https://developer.android.com/reference/java/io/File#File(java.lang.String,%20java.lang.String)" title="Reference documentation">Java documentation for <code>java.io.File.File(java.lang.String, java.lang.String)</code>.</a>
</format>
</para>
<para>
Portions of this page are modifications based on work created and shared by the
<format type="text/html"><a href="https://developers.google.com/terms/site-policies" title="Android Open Source Project">Android Open Source Project</a></format>
and used according to terms described in the
<format type="text/html"><a href="https://creativecommons.org/licenses/by/2.5/" title="Creative Commons 2.5 Attribution License">Creative Commons 2.5 Attribution License.</a></format></para>
</remarks>
<since version="Added in API level 1" />
<exception cref="T:Java.Lang.NullPointerException">if <c>name == null</c>.
</exception>
</Docs>
</Member>
<Member MemberName="AbsoluteFile">
<MemberSignature Language="C#" Value="public virtual Java.IO.File AbsoluteFile { get; }" />
<MemberSignature Language="ILAsm" Value=".property instance class Java.IO.File AbsoluteFile" />
<MemberSignature Language="DocId" Value="P:Java.IO.File.AbsoluteFile" />
<MemberSignature Language="F#" Value="member this.AbsoluteFile : Java.IO.File" Usage="Java.IO.File.AbsoluteFile" />
<MemberType>Property</MemberType>
<AssemblyInfo>
<AssemblyName>Mono.Android</AssemblyName>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName Language="C#">[get: Android.Runtime.Register("getAbsoluteFile", "()Ljava/io/File;", "GetGetAbsoluteFileHandler")]</AttributeName>
<AttributeName Language="F#">[<get: Android.Runtime.Register("getAbsoluteFile", "()Ljava/io/File;", "GetGetAbsoluteFileHandler")>]</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>Java.IO.File</ReturnType>
</ReturnValue>
<Docs>
<summary>Returns the absolute form of this abstract pathname.</summary>
<value>The absolute abstract pathname denoting the same file or
directory as this abstract pathname</value>
<remarks>
<para>Returns the absolute form of this abstract pathname. Equivalent to
<c>new&nbsp;File(this.{@link #getAbsolutePath})</c>.</para>
<para>Added in 1.2.</para>
<para>
<format type="text/html">
<a href="https://developer.android.com/reference/java/io/File#getAbsoluteFile()" title="Reference documentation">Java documentation for <code>java.io.File.getAbsoluteFile()</code>.</a>
</format>
</para>
<para>
Portions of this page are modifications based on work created and shared by the
<format type="text/html"><a href="https://developers.google.com/terms/site-policies" title="Android Open Source Project">Android Open Source Project</a></format>
and used according to terms described in the
<format type="text/html"><a href="https://creativecommons.org/licenses/by/2.5/" title="Creative Commons 2.5 Attribution License">Creative Commons 2.5 Attribution License.</a></format></para>
</remarks>
<since version="Added in API level 1" />
</Docs>
</Member>
<Member MemberName="AbsolutePath">
<MemberSignature Language="C#" Value="public virtual string AbsolutePath { get; }" />
<MemberSignature Language="ILAsm" Value=".property instance string AbsolutePath" />
<MemberSignature Language="DocId" Value="P:Java.IO.File.AbsolutePath" />
<MemberSignature Language="F#" Value="member this.AbsolutePath : string" Usage="Java.IO.File.AbsolutePath" />
<MemberType>Property</MemberType>
<AssemblyInfo>
<AssemblyName>Mono.Android</AssemblyName>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName Language="C#">[get: Android.Runtime.Register("getAbsolutePath", "()Ljava/lang/String;", "GetGetAbsolutePathHandler")]</AttributeName>
<AttributeName Language="F#">[<get: Android.Runtime.Register("getAbsolutePath", "()Ljava/lang/String;", "GetGetAbsolutePathHandler")>]</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>System.String</ReturnType>
</ReturnValue>
<Docs>
<summary>Returns the absolute path of this file.</summary>
<value>The absolute pathname string denoting the same file or
directory as this abstract pathname</value>
<remarks>
<para>Returns the absolute path of this file. An absolute path is a path that starts at a root
of the file system. On Android, there is only one root: <c>/</c>.</para>
<para>A common use for absolute paths is when passing paths to a <c>Process</c> as
command-line arguments, to remove the requirement implied by relative paths, that the
child must have the same working directory as its parent.</para>
<para>
<format type="text/html">
<a href="https://developer.android.com/reference/java/io/File#getAbsolutePath()" title="Reference documentation">Java documentation for <code>java.io.File.getAbsolutePath()</code>.</a>
</format>
</para>
<para>
Portions of this page are modifications based on work created and shared by the
<format type="text/html"><a href="https://developers.google.com/terms/site-policies" title="Android Open Source Project">Android Open Source Project</a></format>
and used according to terms described in the
<format type="text/html"><a href="https://creativecommons.org/licenses/by/2.5/" title="Creative Commons 2.5 Attribution License">Creative Commons 2.5 Attribution License.</a></format></para>
</remarks>
<since version="Added in API level 1" />
</Docs>
</Member>
<Member MemberName="CanExecute">
<MemberSignature Language="C#" Value="public virtual bool CanExecute ();" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig newslot virtual instance bool CanExecute() cil managed" />
<MemberSignature Language="DocId" Value="M:Java.IO.File.CanExecute" />
<MemberSignature Language="F#" Value="abstract member CanExecute : unit -> bool
override this.CanExecute : unit -> bool" Usage="file.CanExecute " />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>Mono.Android</AssemblyName>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName Language="C#">[Android.Runtime.Register("canExecute", "()Z", "GetCanExecuteHandler")]</AttributeName>
<AttributeName Language="F#">[<Android.Runtime.Register("canExecute", "()Z", "GetCanExecuteHandler")>]</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>System.Boolean</ReturnType>
</ReturnValue>
<Parameters />
<Docs>
<summary>Tests whether the application can execute the file denoted by this
abstract pathname.</summary>
<returns>
<c>true</c> if and only if the abstract pathname exists
<em>and</em> the application is allowed to execute the file</returns>
<remarks>
<para>Tests whether the application can execute the file denoted by this
abstract pathname.</para>
<para>Added in 1.6.</para>
<para>
<format type="text/html">
<a href="https://developer.android.com/reference/java/io/File#canExecute()" title="Reference documentation">Java documentation for <code>java.io.File.canExecute()</code>.</a>
</format>
</para>
<para>
Portions of this page are modifications based on work created and shared by the
<format type="text/html"><a href="https://developers.google.com/terms/site-policies" title="Android Open Source Project">Android Open Source Project</a></format>
and used according to terms described in the
<format type="text/html"><a href="https://creativecommons.org/licenses/by/2.5/" title="Creative Commons 2.5 Attribution License">Creative Commons 2.5 Attribution License.</a></format></para>
</remarks>
<since version="Added in API level 9" />
</Docs>
</Member>
<Member MemberName="CanonicalFile">
<MemberSignature Language="C#" Value="public virtual Java.IO.File CanonicalFile { get; }" />
<MemberSignature Language="ILAsm" Value=".property instance class Java.IO.File CanonicalFile" />
<MemberSignature Language="DocId" Value="P:Java.IO.File.CanonicalFile" />
<MemberSignature Language="F#" Value="member this.CanonicalFile : Java.IO.File" Usage="Java.IO.File.CanonicalFile" />
<MemberType>Property</MemberType>
<AssemblyInfo>
<AssemblyName>Mono.Android</AssemblyName>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName Language="C#">[get: Android.Runtime.Register("getCanonicalFile", "()Ljava/io/File;", "GetGetCanonicalFileHandler")]</AttributeName>
<AttributeName Language="F#">[<get: Android.Runtime.Register("getCanonicalFile", "()Ljava/io/File;", "GetGetCanonicalFileHandler")>]</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>Java.IO.File</ReturnType>
</ReturnValue>
<Docs>
<summary>Returns the canonical form of this abstract pathname.</summary>
<value>The canonical pathname string denoting the same file or
directory as this abstract pathname</value>
<remarks>
<para>Returns the canonical form of this abstract pathname. Equivalent to
<c>new&nbsp;File(this.{@link #getCanonicalPath})</c>.</para>
<para>Added in 1.2.</para>
<para>
<format type="text/html">
<a href="https://developer.android.com/reference/java/io/File#getCanonicalFile()" title="Reference documentation">Java documentation for <code>java.io.File.getCanonicalFile()</code>.</a>
</format>
</para>
<para>
Portions of this page are modifications based on work created and shared by the
<format type="text/html"><a href="https://developers.google.com/terms/site-policies" title="Android Open Source Project">Android Open Source Project</a></format>
and used according to terms described in the
<format type="text/html"><a href="https://creativecommons.org/licenses/by/2.5/" title="Creative Commons 2.5 Attribution License">Creative Commons 2.5 Attribution License.</a></format></para>
</remarks>
<since version="Added in API level 1" />
<exception cref="T:Java.IO.IOException">if an I/O error occurs.
</exception>
</Docs>
</Member>
<Member MemberName="CanonicalPath">
<MemberSignature Language="C#" Value="public virtual string CanonicalPath { get; }" />
<MemberSignature Language="ILAsm" Value=".property instance string CanonicalPath" />
<MemberSignature Language="DocId" Value="P:Java.IO.File.CanonicalPath" />
<MemberSignature Language="F#" Value="member this.CanonicalPath : string" Usage="Java.IO.File.CanonicalPath" />
<MemberType>Property</MemberType>
<AssemblyInfo>
<AssemblyName>Mono.Android</AssemblyName>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName Language="C#">[get: Android.Runtime.Register("getCanonicalPath", "()Ljava/lang/String;", "GetGetCanonicalPathHandler")]</AttributeName>
<AttributeName Language="F#">[<get: Android.Runtime.Register("getCanonicalPath", "()Ljava/lang/String;", "GetGetCanonicalPathHandler")>]</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>System.String</ReturnType>
</ReturnValue>
<Docs>
<summary>Returns the canonical pathname string of this abstract pathname.</summary>
<value>The canonical pathname string denoting the same file or
directory as this abstract pathname</value>
<remarks>
<para>Returns the canonical pathname string of this abstract pathname.</para>
<para>A canonical pathname is both absolute and unique. The precise
definition of canonical form is system-dependent. This method first
converts this pathname to absolute form if necessary, as if by invoking the
<c>#getAbsolutePath</c> method, and then maps it to its unique form in a
system-dependent way. This typically involves removing redundant names
such as <c>"."</c> and <c>".."</c> from the pathname, resolving
symbolic links (on UNIX platforms), and converting drive letters to a
standard case (on Microsoft Windows platforms).</para>
<para>Every pathname that denotes an existing file or directory has a
unique canonical form. Every pathname that denotes a nonexistent file
or directory also has a unique canonical form. The canonical form of
the pathname of a nonexistent file or directory may be different from
the canonical form of the same pathname after the file or directory is
created. Similarly, the canonical form of the pathname of an existing
file or directory may be different from the canonical form of the same
pathname after the file or directory is deleted.</para>
<para>Added in JDK1.1.</para>
<para>
<format type="text/html">
<a href="https://developer.android.com/reference/java/io/File#getCanonicalPath()" title="Reference documentation">Java documentation for <code>java.io.File.getCanonicalPath()</code>.</a>
</format>
</para>
<para>
Portions of this page are modifications based on work created and shared by the
<format type="text/html"><a href="https://developers.google.com/terms/site-policies" title="Android Open Source Project">Android Open Source Project</a></format>
and used according to terms described in the
<format type="text/html"><a href="https://creativecommons.org/licenses/by/2.5/" title="Creative Commons 2.5 Attribution License">Creative Commons 2.5 Attribution License.</a></format></para>
</remarks>
<since version="Added in API level 1" />
<exception cref="T:Java.IO.IOException">if an I/O error occurs.
</exception>
</Docs>
</Member>
<Member MemberName="CanRead">
<MemberSignature Language="C#" Value="public virtual bool CanRead ();" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig newslot virtual instance bool CanRead() cil managed" />
<MemberSignature Language="DocId" Value="M:Java.IO.File.CanRead" />
<MemberSignature Language="F#" Value="abstract member CanRead : unit -> bool
override this.CanRead : unit -> bool" Usage="file.CanRead " />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>Mono.Android</AssemblyName>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName Language="C#">[Android.Runtime.Register("canRead", "()Z", "GetCanReadHandler")]</AttributeName>
<AttributeName Language="F#">[<Android.Runtime.Register("canRead", "()Z", "GetCanReadHandler")>]</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>System.Boolean</ReturnType>
</ReturnValue>
<Parameters />
<Docs>
<summary>Tests whether the application can read the file denoted by this
abstract pathname.</summary>
<returns>
<c>true</c> if and only if the file specified by this
abstract pathname exists <em>and</em> can be read by the
application; <c>false</c> otherwise</returns>
<remarks>
<para>Tests whether the application can read the file denoted by this
abstract pathname.</para>
<para>
<format type="text/html">
<a href="https://developer.android.com/reference/java/io/File#canRead()" title="Reference documentation">Java documentation for <code>java.io.File.canRead()</code>.</a>
</format>
</para>
<para>
Portions of this page are modifications based on work created and shared by the
<format type="text/html"><a href="https://developers.google.com/terms/site-policies" title="Android Open Source Project">Android Open Source Project</a></format>
and used according to terms described in the
<format type="text/html"><a href="https://creativecommons.org/licenses/by/2.5/" title="Creative Commons 2.5 Attribution License">Creative Commons 2.5 Attribution License.</a></format></para>
</remarks>
<since version="Added in API level 1" />
</Docs>
</Member>
<Member MemberName="CanWrite">
<MemberSignature Language="C#" Value="public virtual bool CanWrite ();" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig newslot virtual instance bool CanWrite() cil managed" />
<MemberSignature Language="DocId" Value="M:Java.IO.File.CanWrite" />
<MemberSignature Language="F#" Value="abstract member CanWrite : unit -> bool
override this.CanWrite : unit -> bool" Usage="file.CanWrite " />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>Mono.Android</AssemblyName>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName Language="C#">[Android.Runtime.Register("canWrite", "()Z", "GetCanWriteHandler")]</AttributeName>
<AttributeName Language="F#">[<Android.Runtime.Register("canWrite", "()Z", "GetCanWriteHandler")>]</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>System.Boolean</ReturnType>
</ReturnValue>
<Parameters />
<Docs>
<summary>Tests whether the application can modify the file denoted by this
abstract pathname.</summary>
<returns>
<c>true</c> if and only if the file system actually
contains a file denoted by this abstract pathname <em>and</em>
the application is allowed to write to the file;
<c>false</c> otherwise.</returns>
<remarks>
<para>Tests whether the application can modify the file denoted by this
abstract pathname.</para>
<para>
<format type="text/html">
<a href="https://developer.android.com/reference/java/io/File#canWrite()" title="Reference documentation">Java documentation for <code>java.io.File.canWrite()</code>.</a>
</format>
</para>
<para>
Portions of this page are modifications based on work created and shared by the
<format type="text/html"><a href="https://developers.google.com/terms/site-policies" title="Android Open Source Project">Android Open Source Project</a></format>
and used according to terms described in the
<format type="text/html"><a href="https://creativecommons.org/licenses/by/2.5/" title="Creative Commons 2.5 Attribution License">Creative Commons 2.5 Attribution License.</a></format></para>
</remarks>
<since version="Added in API level 1" />
</Docs>
</Member>
<Member MemberName="CompareTo">
<MemberSignature Language="C#" Value="public virtual int CompareTo (Java.IO.File pathname);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig newslot virtual instance int32 CompareTo(class Java.IO.File pathname) cil managed" />
<MemberSignature Language="DocId" Value="M:Java.IO.File.CompareTo(Java.IO.File)" />
<MemberSignature Language="F#" Value="abstract member CompareTo : Java.IO.File -> int
override this.CompareTo : Java.IO.File -> int" Usage="file.CompareTo pathname" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>Mono.Android</AssemblyName>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName Language="C#">[Android.Runtime.Register("compareTo", "(Ljava/io/File;)I", "GetCompareTo_Ljava_io_File_Handler")]</AttributeName>
<AttributeName Language="F#">[<Android.Runtime.Register("compareTo", "(Ljava/io/File;)I", "GetCompareTo_Ljava_io_File_Handler")>]</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>System.Int32</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="pathname" Type="Java.IO.File" />
</Parameters>
<Docs>
<param name="pathname">The abstract pathname to be compared to this abstract
pathname</param>
<summary>Compares two abstract pathnames lexicographically.</summary>
<returns>Zero if the argument is equal to this abstract pathname, a
value less than zero if this abstract pathname is
lexicographically less than the argument, or a value greater
than zero if this abstract pathname is lexicographically
greater than the argument</returns>
<remarks>
<para>Compares two abstract pathnames lexicographically. The ordering
defined by this method depends upon the underlying system. On UNIX
systems, alphabetic case is significant in comparing pathnames; on Microsoft Windows
systems it is not.</para>
<para>Added in 1.2.</para>
<para>
<format type="text/html">
<a href="https://developer.android.com/reference/java/io/File#compareTo(java.io.File)" title="Reference documentation">Java documentation for <code>java.io.File.compareTo(java.io.File)</code>.</a>
</format>
</para>
<para>
Portions of this page are modifications based on work created and shared by the
<format type="text/html"><a href="https://developers.google.com/terms/site-policies" title="Android Open Source Project">Android Open Source Project</a></format>
and used according to terms described in the
<format type="text/html"><a href="https://creativecommons.org/licenses/by/2.5/" title="Creative Commons 2.5 Attribution License">Creative Commons 2.5 Attribution License.</a></format></para>
</remarks>
<since version="Added in API level 1" />
<altmember cref="T:Java.Lang.IComparable" />
</Docs>
</Member>
<Member MemberName="CreateNewFile">
<MemberSignature Language="C#" Value="public virtual bool CreateNewFile ();" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig newslot virtual instance bool CreateNewFile() cil managed" />
<MemberSignature Language="DocId" Value="M:Java.IO.File.CreateNewFile" />
<MemberSignature Language="F#" Value="abstract member CreateNewFile : unit -> bool
override this.CreateNewFile : unit -> bool" Usage="file.CreateNewFile " />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>Mono.Android</AssemblyName>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName Language="C#">[Android.Runtime.Register("createNewFile", "()Z", "GetCreateNewFileHandler")]</AttributeName>
<AttributeName Language="F#">[<Android.Runtime.Register("createNewFile", "()Z", "GetCreateNewFileHandler")>]</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>System.Boolean</ReturnType>
</ReturnValue>
<Parameters />
<Docs>
<summary>Atomically creates a new, empty file named by this abstract pathname if
and only if a file with this name does not yet exist.</summary>
<returns>
<c>true</c> if the named file does not exist and was
successfully created; <c>false</c> if the named file
already exists</returns>
<remarks>
<para>Atomically creates a new, empty file named by this abstract pathname if
and only if a file with this name does not yet exist. The check for the
existence of the file and the creation of the file if it does not exist
are a single operation that is atomic with respect to all other
filesystem activities that might affect the file.</para>
<para>Note: this method should <i>not</i> be used for file-locking, as
the resulting protocol cannot be made to work reliably. The
<c>java.nio.channels.FileLock FileLock</c>
facility should be used instead.</para>
<para>Added in 1.2.</para>
<para>
<format type="text/html">
<a href="https://developer.android.com/reference/java/io/File#createNewFile()" title="Reference documentation">Java documentation for <code>java.io.File.createNewFile()</code>.</a>
</format>
</para>
<para>
Portions of this page are modifications based on work created and shared by the
<format type="text/html"><a href="https://developers.google.com/terms/site-policies" title="Android Open Source Project">Android Open Source Project</a></format>
and used according to terms described in the
<format type="text/html"><a href="https://creativecommons.org/licenses/by/2.5/" title="Creative Commons 2.5 Attribution License">Creative Commons 2.5 Attribution License.</a></format></para>
</remarks>
<since version="Added in API level 1" />
<exception cref="T:Java.IO.IOException">if it's not possible to create the file.
</exception>
</Docs>
</Member>
<Member MemberName="CreateTempFile">
<MemberSignature Language="C#" Value="public static Java.IO.File CreateTempFile (string prefix, string? suffix);" />
<MemberSignature Language="ILAsm" Value=".method public static hidebysig class Java.IO.File CreateTempFile(string prefix, string suffix) cil managed" />
<MemberSignature Language="DocId" Value="M:Java.IO.File.CreateTempFile(System.String,System.String)" />
<MemberSignature Language="F#" Value="static member CreateTempFile : string * string -> Java.IO.File" Usage="Java.IO.File.CreateTempFile (prefix, suffix)" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>Mono.Android</AssemblyName>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName Language="C#">[Android.Runtime.Register("createTempFile", "(Ljava/lang/String;Ljava/lang/String;)Ljava/io/File;", "")]</AttributeName>
<AttributeName Language="F#">[<Android.Runtime.Register("createTempFile", "(Ljava/lang/String;Ljava/lang/String;)Ljava/io/File;", "")>]</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>Java.IO.File</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="prefix" Type="System.String" />
<Parameter Name="suffix" Type="System.String" />
</Parameters>
<Docs>
<param name="prefix">The prefix string to be used in generating the file's
name; must be at least three characters long</param>
<param name="suffix">The suffix string to be used in generating the file's
name; may be <c>null</c>, in which case the
suffix <c>".tmp"</c> will be used</param>
<summary>Creates an empty file in the default temporary-file directory, using
the given prefix and suffix to generate its name.</summary>
<returns>An abstract pathname denoting a newly-created empty file</returns>
<remarks>
<para>Creates an empty file in the default temporary-file directory, using
the given prefix and suffix to generate its name. Invoking this method
is equivalent to invoking <c>{@link #createTempFile(java.lang.String,
java.lang.String, java.io.File)
createTempFile(prefix,&nbsp;suffix,&nbsp;null)}</c>.</para>
<para>The <c>java.nio.file.Files#createTempFile(String,String,java.nio.file.attribute.FileAttribute[])
Files.createTempFile</c> method provides an alternative method to create an
empty file in the temporary-file directory. Files created by that method
may have more restrictive access permissions to files created by this
method and so may be more suited to security-sensitive applications.</para>
<para>Added in 1.2.</para>
<para>
<format type="text/html">
<a href="https://developer.android.com/reference/java/io/File#createTempFile(java.lang.String,%20java.lang.String)" title="Reference documentation">Java documentation for <code>java.io.File.createTempFile(java.lang.String, java.lang.String)</code>.</a>
</format>
</para>
<para>
Portions of this page are modifications based on work created and shared by the
<format type="text/html"><a href="https://developers.google.com/terms/site-policies" title="Android Open Source Project">Android Open Source Project</a></format>
and used according to terms described in the
<format type="text/html"><a href="https://creativecommons.org/licenses/by/2.5/" title="Creative Commons 2.5 Attribution License">Creative Commons 2.5 Attribution License.</a></format></para>
</remarks>
<since version="Added in API level 1" />
<exception cref="T:Java.IO.IOException">if an error occurs when writing the file.
</exception>
</Docs>
</Member>
<Member MemberName="CreateTempFile">
<MemberSignature Language="C#" Value="public static Java.IO.File CreateTempFile (string prefix, string? suffix, Java.IO.File? directory);" />
<MemberSignature Language="ILAsm" Value=".method public static hidebysig class Java.IO.File CreateTempFile(string prefix, string suffix, class Java.IO.File directory) cil managed" />
<MemberSignature Language="DocId" Value="M:Java.IO.File.CreateTempFile(System.String,System.String,Java.IO.File)" />
<MemberSignature Language="F#" Value="static member CreateTempFile : string * string * Java.IO.File -> Java.IO.File" Usage="Java.IO.File.CreateTempFile (prefix, suffix, directory)" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>Mono.Android</AssemblyName>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName Language="C#">[Android.Runtime.Register("createTempFile", "(Ljava/lang/String;Ljava/lang/String;Ljava/io/File;)Ljava/io/File;", "")]</AttributeName>
<AttributeName Language="F#">[<Android.Runtime.Register("createTempFile", "(Ljava/lang/String;Ljava/lang/String;Ljava/io/File;)Ljava/io/File;", "")>]</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>Java.IO.File</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="prefix" Type="System.String" />
<Parameter Name="suffix" Type="System.String" />
<Parameter Name="directory" Type="Java.IO.File" />
</Parameters>
<Docs>
<param name="prefix">The prefix string to be used in generating the file's
name; must be at least three characters long</param>
<param name="suffix">The suffix string to be used in generating the file's
name; may be <c>null</c>, in which case the
suffix <c>".tmp"</c> will be used</param>
<param name="directory">The directory in which the file is to be created, or
<c>null</c> if the default temporary-file
directory is to be used</param>
<summary>Creates a new empty file in the specified directory, using the
given prefix and suffix strings to generate its name.</summary>
<returns>An abstract pathname denoting a newly-created empty file</returns>
<remarks>
<para>Creates a new empty file in the specified directory, using the
given prefix and suffix strings to generate its name. If this method
returns successfully then it is guaranteed that:
<ol>
<li> The file denoted by the returned abstract pathname did not exist
before this method was invoked, and
<li> Neither this method nor any of its variants will return the same
abstract pathname again in the current invocation of the virtual
machine.
</ol>
This method provides only part of a temporary-file facility. To arrange
for a file created by this method to be deleted automatically, use the
<c>{@link #deleteOnExit}</c> method.</para>
<para>The <c>prefix</c> argument must be at least three characters
long. It is recommended that the prefix be a short, meaningful string
such as <c>"hjb"</c> or <c>"mail"</c>. The
<c>suffix</c> argument may be <c>null</c>, in which case the
suffix <c>".tmp"</c> will be used.</para>
<para>To create the new file, the prefix and the suffix may first be
adjusted to fit the limitations of the underlying platform. If the
prefix is too long then it will be truncated, but its first three
characters will always be preserved. If the suffix is too long then it
too will be truncated, but if it begins with a period character
(<c>'.'</c>) then the period and the first three characters
following it will always be preserved. Once these adjustments have been
made the name of the new file will be generated by concatenating the
prefix, five or more internally-generated characters, and the suffix.</para>
<para>If the <c>directory</c> argument is <c>null</c> then the
system-dependent default temporary-file directory will be used. The
default temporary-file directory is specified by the system property
<c>java.io.tmpdir</c>. On UNIX systems the default value of this
property is typically <c>"/tmp"</c> or <c>"/var/tmp"</c>; on
Microsoft Windows systems it is typically <c>"C:\\WINNT\\TEMP"</c>. A different
value may be given to this system property when the Java virtual machine
is invoked, but programmatic changes to this property are not guaranteed
to have any effect upon the temporary directory used by this method.</para>
<para>Added in 1.2.</para>
<para>
<format type="text/html">
<a href="https://developer.android.com/reference/java/io/File#createTempFile(java.lang.String,%20java.lang.String,%20java.io.File)" title="Reference documentation">Java documentation for <code>java.io.File.createTempFile(java.lang.String, java.lang.String, java.io.File)</code>.</a>
</format>
</para>
<para>
Portions of this page are modifications based on work created and shared by the
<format type="text/html"><a href="https://developers.google.com/terms/site-policies" title="Android Open Source Project">Android Open Source Project</a></format>
and used according to terms described in the
<format type="text/html"><a href="https://creativecommons.org/licenses/by/2.5/" title="Creative Commons 2.5 Attribution License">Creative Commons 2.5 Attribution License.</a></format></para>
</remarks>
<since version="Added in API level 1" />
<exception cref="T:Java.Lang.IllegalArgumentException">if the length of <c>prefix</c> is less than 3.</exception>
<exception cref="T:Java.IO.IOException">if an error occurs when writing the file.
</exception>
</Docs>
</Member>
<Member MemberName="Delete">
<MemberSignature Language="C#" Value="public virtual bool Delete ();" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig newslot virtual instance bool Delete() cil managed" />
<MemberSignature Language="DocId" Value="M:Java.IO.File.Delete" />
<MemberSignature Language="F#" Value="abstract member Delete : unit -> bool
override this.Delete : unit -> bool" Usage="file.Delete " />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>Mono.Android</AssemblyName>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName Language="C#">[Android.Runtime.Register("delete", "()Z", "GetDeleteHandler")]</AttributeName>
<AttributeName Language="F#">[<Android.Runtime.Register("delete", "()Z", "GetDeleteHandler")>]</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>System.Boolean</ReturnType>
</ReturnValue>
<Parameters />
<Docs>
<summary>Deletes the file or directory denoted by this abstract pathname.</summary>
<returns>
<c>true</c> if and only if the file or directory is
successfully deleted; <c>false</c> otherwise</returns>
<remarks>
<para>Deletes the file or directory denoted by this abstract pathname. If
this pathname denotes a directory, then the directory must be empty in
order to be deleted.</para>
<para>Note that the <c>java.nio.file.Files</c> class defines the <c>java.nio.file.Files#delete(Path) delete</c> method to throw an <c>IOException</c>