站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > NetBeans API Javadoc 4.1.0

TurboUtil (NetBeans VCS API) - NetBeans API Javadoc 4.1.0

 

org.netbeans.modules.vcscore.turbo
Class TurboUtil

java.lang.Object
  extended byorg.netbeans.modules.vcscore.turbo.TurboUtil

public final class TurboUtil
extends Object

Various utility methods eliminating boilerplate constructions over Turbo API goes here.


Method Summary
static DirReaderListener dirReaderListener(FileSystem fs)
          Returns DirReaderListener implementation that populates the cache from the command data execuded over given FS.
static FileReaderListener fileReaderListener(FileSystem fs)
          Returns FileReaderListener implementation that populates the cache from the command data execuded over given FS.
static FileObject[] listFiles(FileObject fileObject)
          Return all files in given folder (inluding virtuals) never null.
static FileObject[] listFolders(FileObject fileObject)
          Return all filder in given folder (inluding virtuals) never null.
static boolean refreshFolder(FileObject folder)
          Refreshes folder content's metadata.
static boolean refreshRecursively(FileObject folder)
          Recursively refreshes folder content's metadata.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

listFolders

public static FileObject[] listFolders(FileObject fileObject)
Return all filder in given folder (inluding virtuals) never null.


listFiles

public static FileObject[] listFiles(FileObject fileObject)
Return all files in given folder (inluding virtuals) never null.


refreshFolder

public static boolean refreshFolder(FileObject folder)
Refreshes folder content's metadata.

Returns:
true If the folder was successfully refreshed.

refreshRecursively

public static boolean refreshRecursively(FileObject folder)
Recursively refreshes folder content's metadata.

Returns:
true If the folder was successfully refreshed.

fileReaderListener

public static FileReaderListener fileReaderListener(FileSystem fs)
Returns FileReaderListener implementation that populates the cache from the command data execuded over given FS.

It's used by e.g. LIST command.

Parameters:
fs - filesystem that allows to properly match command output to fileobjects

dirReaderListener

public static DirReaderListener dirReaderListener(FileSystem fs)
Returns DirReaderListener implementation that populates the cache from the command data execuded over given FS.

Parameters:
fs - filesystem that allows to properly match command output to fileobjects

 

Built on May 4 2005.  |  Portions Copyright 1997-2005 Sun Microsystems, Inc. All rights reserved.