public static GeneralPathImpl createRoot(final FileSystem fs, final String path, boolean isRealPath) { return new GeneralPathImpl(fs, path, true, isRealPath, true); }
@Override public Path getFileName() { if (getNameCount() == 0) { return null; } return getName(getNameCount() - 1); }
@Override public String toString() { if (toStringFormat == null) { toStringFormat = toString(false); } return toStringFormat; }
@Override public String getClusterId() { final String fsId = ((FileSystemId) path.getFileSystem()).id(); final String segmentId = ((SegmentedPath) path).getSegmentId(); return fsId + File.separator + segmentId; }
@Override public void setTimes(final FileTime lastModifiedTime, final FileTime lastAccessTime, final FileTime createTime) throws IOException { throw new NotImplementedException(); }
public static GeneralPathImpl create(final FileSystem fs, final String path, boolean isRealPath) { return create(fs, path, isRealPath, false); }
@Override public String[] segmentIds() { return new String[]{segmentedPath.getSegmentId()}; } };
@Override protected RootInfo setupRoot(FileSystem fs, String path, String host, boolean isRoot) { return new RootInfo(0, true, true, new byte[0]); }
@Override public long size() { if (lazySizeLoader != null) { return lazySizeLoader.get(); } return size; }
private Path emptyPath() { return newPath(fs, "", host, isRealPath, true); }
@Override public void close() throws java.io.IOException { super.close(); } };
@Override public String getClusterId() { final String fsId = ((FileSystemId) path.getFileSystem()).id(); final String segmentId = ((SegmentedPath) path).getSegmentId(); return fsId + File.separator + segmentId; }
@Override public Module simpleModuleInstance(Path nioModuleRootPath) { throw new NotImplementedException(); } };
public SimpleWindowsFileStore(final File[] roots, final FileSystem fs, final String path) { this(roots, GeneralPathImpl.create(fs, path, false)); }
@Override protected Path newRoot(FileSystem fs, String substring, String host, boolean realPath) { return new GeneralPathImpl(fs, substring, true, realPath, true); }
@Override public long size() { if (lazySizeLoader != null) { return lazySizeLoader.get(); } return size; }
@Override public String getClusterId() { final String fsId = ((FileSystemId) path.getFileSystem()).id(); final String segmentId = ((SegmentedPath) path).getSegmentId(); return fsId + File.separator + segmentId; }
public static GeneralPathImpl create(final FileSystem fs, final String path, boolean isRealPath) { return create(fs, path, isRealPath, false); }
@Override protected Path newPath(final FileSystem fs, final String substring, String host, final boolean isRealPath, final boolean isNormalized) { return new GeneralPathImpl(fs, substring, false, isRealPath, isNormalized); }
@Override protected Path newRoot(FileSystem fs, String substring, String host, boolean realPath) { return new GeneralPathImpl(fs, substring, true, realPath, true); }