Java Code Examples for java.nio.file.Path#getClass()
The following examples show how to use
java.nio.file.Path#getClass() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: MCRPath.java From mycore with GNU General Public License v3.0 | 5 votes |
public static MCRPath toMCRPath(final Path other) { if (other == null) { throw new NullPointerException(); } if (!(other instanceof MCRPath)) { throw new ProviderMismatchException("other is not an instance of MCRPath: " + other.getClass()); } return (MCRPath) other; }
Example 2
Source File: FilterPath.java From lucene-solr with Apache License 2.0 | 5 votes |
/** Override this to customize the unboxing of Path * from various operations */ protected Path toDelegate(Path path) { if (path instanceof FilterPath) { FilterPath fp = (FilterPath) path; if (fp.fileSystem != fileSystem) { throw new ProviderMismatchException("mismatch, expected: " + fileSystem.provider().getClass() + ", got: " + fp.fileSystem.provider().getClass()); } return fp.delegate; } else { throw new ProviderMismatchException("mismatch, expected: FilterPath, got: " + path.getClass()); } }
Example 3
Source File: FilterFileSystemProvider.java From lucene-solr with Apache License 2.0 | 5 votes |
protected Path toDelegate(Path path) { if (path instanceof FilterPath) { FilterPath fp = (FilterPath) path; if (fp.fileSystem != fileSystem) { throw new ProviderMismatchException("mismatch, expected: " + fileSystem.provider().getClass() + ", got: " + fp.fileSystem.provider().getClass()); } return fp.delegate; } else { throw new ProviderMismatchException("mismatch, expected: FilterPath, got: " + path.getClass()); } }
Example 4
Source File: PathFileObject.java From TencentKona-8 with GNU General Public License v2.0 | 4 votes |
protected PathFileObject(JavacPathFileManager fileManager, Path path) { fileManager.getClass(); // null check path.getClass(); // null check this.fileManager = fileManager; this.path = path; }
Example 5
Source File: PathFileObject.java From jdk8u60 with GNU General Public License v2.0 | 4 votes |
protected PathFileObject(JavacPathFileManager fileManager, Path path) { fileManager.getClass(); // null check path.getClass(); // null check this.fileManager = fileManager; this.path = path; }
Example 6
Source File: PathFileObject.java From openjdk-jdk8u with GNU General Public License v2.0 | 4 votes |
protected PathFileObject(JavacPathFileManager fileManager, Path path) { fileManager.getClass(); // null check path.getClass(); // null check this.fileManager = fileManager; this.path = path; }
Example 7
Source File: PathFileObject.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 4 votes |
protected PathFileObject(JavacPathFileManager fileManager, Path path) { fileManager.getClass(); // null check path.getClass(); // null check this.fileManager = fileManager; this.path = path; }
Example 8
Source File: PathFileObject.java From hottub with GNU General Public License v2.0 | 4 votes |
protected PathFileObject(JavacPathFileManager fileManager, Path path) { fileManager.getClass(); // null check path.getClass(); // null check this.fileManager = fileManager; this.path = path; }
Example 9
Source File: PathFileObject.java From openjdk-8-source with GNU General Public License v2.0 | 4 votes |
protected PathFileObject(JavacPathFileManager fileManager, Path path) { fileManager.getClass(); // null check path.getClass(); // null check this.fileManager = fileManager; this.path = path; }
Example 10
Source File: PathFileObject.java From openjdk-8 with GNU General Public License v2.0 | 4 votes |
protected PathFileObject(JavacPathFileManager fileManager, Path path) { fileManager.getClass(); // null check path.getClass(); // null check this.fileManager = fileManager; this.path = path; }