本文整理汇总了Java中org.vertx.java.core.file.FileSystem类的典型用法代码示例。如果您正苦于以下问题:Java FileSystem类的具体用法?Java FileSystem怎么用?Java FileSystem使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
FileSystem类属于org.vertx.java.core.file包,在下文中一共展示了FileSystem类的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: AsyncFileWatcher
import org.vertx.java.core.file.FileSystem; //导入依赖的package包/类
public AsyncFileWatcher(
final EventBus eventBus,
final FileSystem fileSystem,
final List<Path> paths,
final boolean readChunks,
final int maxReadSize) {
m_eventBus = eventBus;
m_fileSystem = fileSystem;
m_paths = paths;
m_pointers = new ConcurrentHashMap();
m_readChunks = readChunks;
m_maxReadSize = maxReadSize;
// Populate pointers
for (Path path : paths) {
m_pointers.put(path, new FilePointer(null, 0L));
}
}
示例2: handle
import org.vertx.java.core.file.FileSystem; //导入依赖的package包/类
@Override
public void handle(final Long timerId) {
final FileSystem fs = m_fileSystem;
final List<Path> paths = m_paths; // file paths
for (final Path path : paths) {
m_logger.trace("Inspecting file: {}", path);
// Check that file exists before proceeding further...
if (Files.exists(path)) {
fs.props(path.toString(), new AsyncResultHandler<FileProps>() {
@Override
public void handle(final AsyncResult<FileProps> ar) {
handleFileProps(ar, path);
}
});
}
}
}
示例3: fileSystem
import org.vertx.java.core.file.FileSystem; //导入依赖的package包/类
@Override
public FileSystem fileSystem() {
return null;
}
示例4: fileSystem
import org.vertx.java.core.file.FileSystem; //导入依赖的package包/类
@Override
public FileSystem fileSystem() {
return null;
}
示例5: getFileSystem
import org.vertx.java.core.file.FileSystem; //导入依赖的package包/类
public FileSystem getFileSystem() {
return vertx.fileSystem();
}
示例6: cleanWebjarsDir
import org.vertx.java.core.file.FileSystem; //导入依赖的package包/类
private void cleanWebjarsDir() {
FileSystem fileSystem = vertx.fileSystem();
if (fileSystem.existsSync(WEBJARS_DIR)) {
fileSystem.deleteSync(WEBJARS_DIR, true);
}
}
示例7: fileSystem
import org.vertx.java.core.file.FileSystem; //导入依赖的package包/类
/**
* Returns the Vert.x file system object.
*
* @return Vert.x file system
*/
private FileSystem fileSystem() {
return m_filter.getVertx().fileSystem();
}