@Override public long size() { if ( lazySizeLoader != null ) { return lazySizeLoader.get(); } return size; }
@Override public Path getFileName() { if ( getNameCount() == 0 ) { return null; } return getName( getNameCount() - 1 ); }
@Override public void setTimes( final FileTime lastModifiedTime, final FileTime lastAccessTime, final FileTime createTime ) throws IOException { throw new NotImplementedException(); }
protected void loadDotFile( final Path path ) { final Properties content = new Properties(); content.load( newInputStream( dot( path ) ) ); if ( path instanceof AttrHolder ) { ( (AttrHolder) path ).getAttrStorage().loadContent( content ); } }
@Override public Path getParent() { if ( getNameCount() <= 0 ) { return null; } if ( getNameCount() == 1 ) { return getRoot(); } return newPath( fs, substring( -1, getNameCount() - 2 ), host, isRealPath, isNormalized ); }
public void clearCache() { file = null; attrsStorage.clear(); }
public static GeneralPathImpl create( final FileSystem fs, final String path, boolean isRealPath ) { return create( fs, path, isRealPath, false ); }
public void load( final InputStream in ) { load( in, true ); }
public static GeneralPathImpl createRoot( final FileSystem fs, final String path, boolean isRealPath ) { return new GeneralPathImpl( fs, path, true, isRealPath, true ); }
@Override public <V extends AttributeView> V getAttrView( final String name ) { return attrsStorage.getAttrView( name ); }
@Override public String toString() { if ( toStringFormat == null ) { toStringFormat = toString( false ); } return toStringFormat; }
@Override public Properties toProperties() { return buildProperties( false ); }
@Override public boolean hasNext() { return i < getNameCount(); }
@Override public Map<String, Object> readAllAttributes() { return readAttributes( "*" ); }
@Override public <V extends AttributeView> void addAttrView( final V view ) { attrsStorage.addAttrView( view ); }
public void store( final OutputStream out ) { store( out, true ); }
private Path emptyPath() { return newPath( fs, "", host, isRealPath, true ); }
@Override protected Path newRoot( FileSystem fs, String substring, String host, boolean realPath ) { return new GeneralPathImpl( fs, substring, true, realPath, true ); }
@Override public <V extends AttributeView> V getAttrView( final Class<V> type ) { return attrsStorage.getAttrView( type ); }
@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 ); }