/** * @param rootName The root file name. * @param fileSystemOptions The FileSystem options. */ protected RamFileSystem(final FileName rootName, final FileSystemOptions fileSystemOptions) { super(rootName, null, fileSystemOptions); this.cache = Collections.synchronizedMap(new HashMap<FileName, RamFileData>()); // create root final RamFileData rootData = new RamFileData(rootName); rootData.setType(FileType.FOLDER); rootData.setLastModified(System.currentTimeMillis()); this.cache.put(rootName, rootData); }
/** * @param rootName The root file name. * @param fileSystemOptions The FileSystem options. */ protected RamFileSystem(final FileName rootName, final FileSystemOptions fileSystemOptions) { super(rootName, null, fileSystemOptions); this.cache = Collections.synchronizedMap(new HashMap<FileName, RamFileData>()); // create root final RamFileData rootData = new RamFileData(rootName); rootData.setType(FileType.FOLDER); rootData.setLastModified(System.currentTimeMillis()); this.cache.put(rootName, rootData); }
/** * @param rootName The root file name. * @param fileSystemOptions The FileSystem options. */ protected RamFileSystem(final FileName rootName, final FileSystemOptions fileSystemOptions) { super(rootName, null, fileSystemOptions); this.cache = Collections.synchronizedMap(new HashMap<FileName, RamFileData>()); // create root final RamFileData rootData = new RamFileData(rootName); rootData.setType(FileType.FOLDER); rootData.setLastModified(System.currentTimeMillis()); this.cache.put(rootName, rootData); }
/** * @param rootName The root file name. * @param fileSystemOptions The FileSystem options. */ protected RamFileSystem(final FileName rootName, final FileSystemOptions fileSystemOptions) { super(rootName, null, fileSystemOptions); this.cache = Collections.synchronizedMap(new HashMap<FileName, RamFileData>()); // create root final RamFileData rootData = new RamFileData(rootName); rootData.setType(FileType.FOLDER); rootData.setLastModified(System.currentTimeMillis()); this.cache.put(rootName, rootData); }
public void attach(final RamFileObject fo) { if (fo.getName() == null) { throw new IllegalArgumentException("Null argument"); } RamFileData data = this.cache.get(fo.getName()); if (data == null) { data = new RamFileData(fo.getName()); } fo.setData(data); }
public void attach(final RamFileObject fo) { if (fo.getName() == null) { throw new IllegalArgumentException("Null argument"); } RamFileData data = this.cache.get(fo.getName()); if (data == null) { data = new RamFileData(fo.getName()); } fo.setData(data); }
public void attach(final RamFileObject fo) { if (fo.getName() == null) { throw new IllegalArgumentException("Null argument"); } RamFileData data = this.cache.get(fo.getName()); if (data == null) { data = new RamFileData(fo.getName()); } fo.setData(data); }
public void attach(final RamFileObject fo) { if (fo.getName() == null) { throw new IllegalArgumentException("Null argument"); } RamFileData data = this.cache.get(fo.getName()); if (data == null) { data = new RamFileData(fo.getName()); } fo.setData(data); }