@Test public void testGet() throws URISyntaxException, IOException { String scheme = "file"; assertTrue(getFileSystemWithoutSafetyNet(scheme + ": try { getFileSystemWithoutSafetyNet(scheme + ": } catch (IOException ioe) { assertTrue(ioe.getMessage().startsWith("Found local file path with authority '")); } assertTrue(getFileSystemWithoutSafetyNet(scheme + ":/test/test") instanceof LocalFileSystem); assertTrue(getFileSystemWithoutSafetyNet(scheme + ":test/test") instanceof LocalFileSystem); assertTrue(getFileSystemWithoutSafetyNet("/test/test") instanceof LocalFileSystem); assertTrue(getFileSystemWithoutSafetyNet("test/test") instanceof LocalFileSystem); }
public static FileSystem get(URI uri) throws IOException { return FileSystemSafetyNet.wrapWithSafetyNetWhenActivated(getUnguardedFileSystem(uri)); }
FileSystem { public static FileSystem get(URI uri) throws IOException { return FileSystemSafetyNet.wrapWithSafetyNetWhenActivated(getUnguardedFileSystem(uri)); } }
FileSystem { public static FileSystem get(URI uri) throws IOException { return FileSystemSafetyNet.wrapWithSafetyNetWhenActivated(getUnguardedFileSystem(uri)); }  }
FileSystem { public static FileSystem get(URI uri) throws IOException { return FileSystemSafetyNet.wrapWithSafetyNetWhenActivated(getUnguardedFileSystem(uri)); }  static void initialize(Configuration config); static FileSystem getLocalFileSystem(); static FileSystem get(URI uri); @Internal static FileSystem getUnguardedFileSystem(final URI fsUri); static URI getDefaultFsUri(); abstract Path getWorkingDirectory(); abstract Path getHomeDirectory(); abstract URI getUri(); abstract FileStatus getFileStatus(Path f); abstract BlockLocation[] getFileBlockLocations(FileStatus file, long start, long len); abstract FSDataInputStream open(Path f, int bufferSize); abstract FSDataInputStream open(Path f); RecoverableWriter createRecoverableWriter(); @Deprecated long getDefaultBlockSize(); abstract FileStatus[] listStatus(Path f); boolean exists(final Path f); abstract boolean delete(Path f, boolean recursive); abstract boolean mkdirs(Path f); @Deprecated FSDataOutputStream create(
			Path f,
			boolean overwrite,
			int bufferSize,
			short replication,
			long blockSize); @Deprecated FSDataOutputStream create(Path f, boolean overwrite); abstract FSDataOutputStream create(Path f, WriteMode overwriteMode); abstract boolean rename(Path src, Path dst); abstract boolean isDistributedFS(); abstract FileSystemKind getKind(); boolean initOutPathLocalFS(Path outPath, WriteMode writeMode, boolean createDirectory); boolean initOutPathDistFS(Path outPath, WriteMode writeMode, boolean createDirectory); }
FileSystem { public static FileSystem get(URI uri) throws IOException { return FileSystemSafetyNet.wrapWithSafetyNetWhenActivated(getUnguardedFileSystem(uri)); }  static void initialize(Configuration config); static FileSystem getLocalFileSystem(); static FileSystem get(URI uri); @Internal static FileSystem getUnguardedFileSystem(final URI fsUri); static URI getDefaultFsUri(); abstract Path getWorkingDirectory(); abstract Path getHomeDirectory(); abstract URI getUri(); abstract FileStatus getFileStatus(Path f); abstract BlockLocation[] getFileBlockLocations(FileStatus file, long start, long len); abstract FSDataInputStream open(Path f, int bufferSize); abstract FSDataInputStream open(Path f); RecoverableWriter createRecoverableWriter(); @Deprecated long getDefaultBlockSize(); abstract FileStatus[] listStatus(Path f); boolean exists(final Path f); abstract boolean delete(Path f, boolean recursive); abstract boolean mkdirs(Path f); @Deprecated FSDataOutputStream create(
			Path f,
			boolean overwrite,
			int bufferSize,
			short replication,
			long blockSize); @Deprecated FSDataOutputStream create(Path f, boolean overwrite); abstract FSDataOutputStream create(Path f, WriteMode overwriteMode); abstract boolean rename(Path src, Path dst); abstract boolean isDistributedFS(); abstract FileSystemKind getKind(); boolean initOutPathLocalFS(Path outPath, WriteMode writeMode, boolean createDirectory); boolean initOutPathDistFS(Path outPath, WriteMode writeMode, boolean createDirectory);  }