/** * Get the root entry * * @return the root entry */ public DirectoryNode getRoot() { if (_root == null) { _root = new DirectoryNode(_property_table.getRoot(), this, null); } return _root; }
/** * create a new DirectoryEntry * * @param name the name of the new DirectoryEntry * * @return the new DirectoryEntry * * @exception IOException if the directory can't be created */ public DirectoryEntry createDirectory(final String name) throws IOException { DirectoryProperty property = new DirectoryProperty(name); DirectoryNode rval = new DirectoryNode(property, _nfilesystem, this); _nfilesystem.addDirectory(property); (( DirectoryProperty ) getProperty()).addChild(property); _entries.add(rval); _byname.put(name, rval); return rval; }
childNode = new DirectoryNode(childDir, _nfilesystem, this);
/** * Get the root entry * * @return the root entry */ public DirectoryNode getRoot() { if (_root == null) { _root = new DirectoryNode(_property_table.getRoot(), this, null); } return _root; }
/** * Get the root entry * * @return the root entry */ public DirectoryNode getRoot() { if (_root == null) { _root = new DirectoryNode(_property_table.getRoot(), this, null); } return _root; }
/** * Get the root entry * * @return the root entry */ public DirectoryNode getRoot() { if (_root == null) { _root = new DirectoryNode(_property_table.getRoot(), this, null); } return _root; }
/** * get the root entry * * @return the root entry */ public DirectoryNode getRoot() { if (_root == null) { _root = new DirectoryNode(_property_table.getRoot(), this, null); } return _root; }
/** * get the root entry * * @return the root entry */ public DirectoryNode getRoot() { if (_root == null) { _root = new DirectoryNode(_property_table.getRoot(), this, null); } return _root; }
/** * create a new DirectoryEntry * * @param name the name of the new DirectoryEntry * * @return the new DirectoryEntry * * @exception IOException */ public DirectoryEntry createDirectory(final String name) throws IOException { DirectoryNode rval; DirectoryProperty property = new DirectoryProperty(name); if(_ofilesystem != null) { rval = new DirectoryNode(property, _ofilesystem, this); _ofilesystem.addDirectory(property); } else { rval = new DirectoryNode(property, _nfilesystem, this); _nfilesystem.addDirectory(property); } (( DirectoryProperty ) getProperty()).addChild(property); _entries.add(rval); _byname.put(name, rval); return rval; }
/** * create a new DirectoryEntry * * @param name the name of the new DirectoryEntry * * @return the new DirectoryEntry * * @exception IOException */ public DirectoryEntry createDirectory(final String name) throws IOException { DirectoryNode rval; DirectoryProperty property = new DirectoryProperty(name); if(_ofilesystem != null) { rval = new DirectoryNode(property, _ofilesystem, this); _ofilesystem.addDirectory(property); } else { rval = new DirectoryNode(property, _nfilesystem, this); _nfilesystem.addDirectory(property); } (( DirectoryProperty ) getProperty()).addChild(property); _entries.add(rval); _byname.put(name, rval); return rval; }
/** * create a new DirectoryEntry * * @param name the name of the new DirectoryEntry * * @return the new DirectoryEntry * * @exception IOException if the directory can't be created */ public DirectoryEntry createDirectory(final String name) throws IOException { DirectoryProperty property = new DirectoryProperty(name); DirectoryNode rval = new DirectoryNode(property, _nfilesystem, this); _nfilesystem.addDirectory(property); (( DirectoryProperty ) getProperty()).addChild(property); _entries.add(rval); _byname.put(name, rval); return rval; }
childNode = new DirectoryNode(childDir, _ofilesystem, this); } else { childNode = new DirectoryNode(childDir, _nfilesystem, this);
childNode = new DirectoryNode(childDir, _ofilesystem, this); } else { childNode = new DirectoryNode(childDir, _nfilesystem, this);
childNode = new DirectoryNode(childDir, _nfilesystem, this);