Path.Of 메서드
정의
중요
일부 정보는 릴리스되기 전에 상당 부분 수정될 수 있는 시험판 제품과 관련이 있습니다. Microsoft는 여기에 제공된 정보에 대해 어떠한 명시적이거나 묵시적인 보증도 하지 않습니다.
오버로드
| 속성 | Description |
|---|---|
| Of(URI) |
사용되지 않음.
URI를 |
| Of(String, String[]) |
사용되지 않음.
|
Of(URI)
주의
Use 'Java.Nio.FileNio.IPath.Of'. This class will be removed in a future release.
URI를 Path 변환하여 반환합니다.
[Android.Runtime.Register("of", "(Ljava/net/URI;)Ljava/nio/file/Path;", "", ApiSince=34)]
[System.Obsolete("Use 'Java.Nio.FileNio.IPath.Of'. This class will be removed in a future release.")]
public static Java.Nio.FileNio.IPath? Of(Java.Net.URI? uri);
[<Android.Runtime.Register("of", "(Ljava/net/URI;)Ljava/nio/file/Path;", "", ApiSince=34)>]
[<System.Obsolete("Use 'Java.Nio.FileNio.IPath.Of'. This class will be removed in a future release.")>]
static member Of : Java.Net.URI -> Java.Nio.FileNio.IPath
매개 변수
- uri
- URI
변환할 URI
반품
결과 Path
- 특성
설명
URI를 Path 변환하여 반환합니다.
이 메서드는 공급자를 FileSystemProvider#installedProviders() installed 반복하여 지정된 URI의 URI URI#getScheme scheme 로 식별되는 공급자를 찾습니다. URI 체계는 사례와 관계없이 비교됩니다. 공급자가 발견되면 해당 FileSystemProvider#getPath getPath 메서드가 호출되어 URI를 변환합니다.
URI 스키마 "file"로 식별되는 기본 공급자의 경우 지정된 URI에는 비어있지 않은 경로 구성 요소와 정의되지 않은 쿼리 및 조각 구성 요소가 있습니다. 기관 구성 요소가 있는지 여부는 플랫폼별로 다릅니다. 반환 Path 된 파일 시스템과 연결됩니다 FileSystems#getDefault default .
기본 공급자는 클래스와 유사한 <em>왕복</em> 보증을 java.io.File 제공합니다. 지정된 Pathp의 경우 원래PathURI, 및 새 Path 항목이 <모두 동일한 Java 가상 머신에서 생성되는 한 블록 인용Path.of(>p..()).equals(Path#toAbsolutePath() toAbsolutePath())Path#toUri() toUri</blockquote>가 보장됩니다. 다른 공급자가 보증을 하는지 여부는 공급자별로 지정되므로 지정되지 않습니다.
11에 추가되었습니다.
에 대한 java.nio.file.Path.of(java.net.URI)Java 설명서
이 페이지의 일부는 만들고 공유한 작업을 기반으로 하며 에 설명된 조건에 따라 사용됩니다.
적용 대상
Of(String, String[])
주의
Use 'Java.Nio.FileNio.IPath.Of'. This class will be removed in a future release.
[Android.Runtime.Register("of", "(Ljava/lang/String;[Ljava/lang/String;)Ljava/nio/file/Path;", "", ApiSince=34)]
[System.Obsolete("Use 'Java.Nio.FileNio.IPath.Of'. This class will be removed in a future release.")]
public static Java.Nio.FileNio.IPath? Of(string? first, params string[]? more);
[<Android.Runtime.Register("of", "(Ljava/lang/String;[Ljava/lang/String;)Ljava/nio/file/Path;", "", ApiSince=34)>]
[<System.Obsolete("Use 'Java.Nio.FileNio.IPath.Of'. This class will be removed in a future release.")>]
static member Of : string * string[] -> Java.Nio.FileNio.IPath
매개 변수
- first
- String
- more
- String[]
반품
- 특성