Package org.uberfire.java.nio.base

Examples of org.uberfire.java.nio.base.GeneralPathImpl


        if ( !path.toFile().exists() ) {
            throw new NoSuchFileException( path.toString() );
        }

        final GeneralPathImpl gPath = toGeneralPathImpl( path );

        final V view = gPath.getAttrView( type );

        if ( view == null && type == BasicFileAttributeView.class || type == SimpleBasicFileAttributeView.class ) {
            final V newView = (V) new SimpleBasicFileAttributeView( gPath );
            gPath.addAttrView( newView );
            return newView;
        }

        return view;
    }
View Full Code Here


    }

    private ExtendedAttributeView getFileAttributeView( final Path path,
                                                        final String name,
                                                        final LinkOption... options ) {
        final GeneralPathImpl gPath = toGeneralPathImpl( path );

        final ExtendedAttributeView view = gPath.getAttrView( name );

        if ( view == null && name.equals( "basic" ) ) {
            final SimpleBasicFileAttributeView newView = new SimpleBasicFileAttributeView( gPath );
            gPath.addAttrView( newView );
            return newView;
        }
        return view;
    }
View Full Code Here

TOP

Related Classes of org.uberfire.java.nio.base.GeneralPathImpl

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.