fr.gael.drb.impl.ftp
Class FtpNode
java.lang.Object
fr.gael.drb.DrbDefaultNodesChangeProducer
fr.gael.drb.DrbAbstractNode
fr.gael.drb.impl.DrbNodeImpl
fr.gael.drb.impl.URLNode
fr.gael.drb.impl.ftp.FtpNode
- All Implemented Interfaces:
- DrbMutableNode, DrbNode, DrbNodesChangeListener, DrbNodesChangeProducer, EventListener
public class FtpNode
- extends URLNode
FTP node implementation
|
Constructor Summary |
FtpNode(URL url_node)
Build a FTP node with an URL |
| Methods inherited from class fr.gael.drb.DrbAbstractNode |
appendChild, appendReference, getAttribute, getChildAt, getChildrenCount, getContent, getFirstChild, getIndex, getItemType, getLastChild, getNamespaceBindings, getNamespaceURI, getNextSibling, getOccurrence, getPreviousSibling, getRoot, getValue, getValueType, getXPathName, getXPathName, hasChild, insertChild, removeChild, rename, replaceChild, setAttributes, setNamespaceBindings, setNamespaceURI, setValue, toString |
FtpNode
public FtpNode(URL url_node)
- Build a FTP node with an URL
- Parameters:
url_node - the URL
createNode
protected URLNode createNode(URL url)
- This method create a FtpNode with an URL
- Overrides:
createNode in class URLNode
- Parameters:
url - The URL
- Returns:
- URLNode : The new node created
getChildren
public DrbNodeList getChildren()
- This method return the list of children of the ftp node
- Overrides:
getChildren in class URLNode
- Returns:
- DrbNodeList the list of the children
getAttributes
public final DrbAttributeList getAttributes()
- The attributes of the node. The file nodes have no specific attribute and
this operation returns therefore a null value at each call. The
attributes are:
The following table specifies the attributes that are available for a
file. No atribute is provided optionally. The type of the attribute are
expressed using the type identifer of the fr.gael.drb.value.Value class.
| Name |
Description |
Value Type |
| size |
the length of the file in bytes. If the file is a directory, the size
is equal to 0. |
UNSIGNED_LONG_ID |
| modified |
the date the file was last modified. |
DATE_ID |
| readable |
true whether the application can read the file. false otherwise. |
BOOLEAN_ID |
| writable |
true whether the application can write the file. false otherwise. |
BOOLEAN_ID |
| hidden |
true whether the file is hidden. false otherwise. |
BOOLEAN_ID |
Synchronisation note: the accesses to the file are synchronized.
- Overrides:
getAttributes in class DrbAbstractNode
- Returns:
- the lsit of attributes of the file.
Copyright© 2001-2009 GAEL Consultant. All rights reserved. Use is subject to license terms .