Package com.borland.primetime.vfs

Examples of com.borland.primetime.vfs.Filesystem


        public void run()
        {
            Stack directoryStack=new Stack();
            directoryStack.push( classUrl);
            Filesystem system=classUrl.getFilesystem();
            ClassWriter classwriter=new ClassWriter();
            final long startTime=System.currentTimeMillis();
            try
            {
                while ( ! directoryStack.isEmpty())
                {
                    Url currentDirectory=(Url)directoryStack.pop();
                    Url[] contents=system.getChildren( currentDirectory, null,
                        Filesystem.TYPE_BOTH);
                    for ( int i=0; i<contents.length; i++)
                    {
                        if ( system.isDirectory( contents[i]))
                            directoryStack.push( contents[i]);
                        else
                        {
                            if ( contents[i].getFileExtension().
                                equals( "class") &&
                                system.getLastModified( contents[i])>
                                lastModified)
                            {
System.out.println( "Analyzing "+contents[i].toString());
                                BufferedInputStream bis=
                                    new BufferedInputStream(
                                    system.getInputStream( contents[i]));
                                classwriter.readClass( bis);
                                DBClass.addClassToDB( classwriter,
                                    db);
                                bis.close();
                            }
View Full Code Here

TOP

Related Classes of com.borland.primetime.vfs.Filesystem

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.