Data Request Broker
2-3-release

fr.gael.drb.impl.ftp
Class FtpNode

java.lang.Object
  extended by fr.gael.drb.DrbDefaultNodesChangeProducer
      extended by fr.gael.drb.DrbAbstractNode
          extended by fr.gael.drb.impl.DrbNodeImpl
              extended by fr.gael.drb.impl.URLNode
                  extended by fr.gael.drb.impl.ftp.FtpNode
All Implemented Interfaces:
DrbMutableNode, DrbNode, DrbNodesChangeListener, DrbNodesChangeProducer, EventListener

public class FtpNode
extends URLNode

FTP node implementation


Field Summary
 
Fields inherited from class fr.gael.drb.impl.URLNode
inputstream, url
 
Fields inherited from interface fr.gael.drb.DrbItem
ATTRIBUTE_ITEM, NODE_ITEM, UNDEFINED_ITEM, VALUE_ITEM
 
Constructor Summary
FtpNode(URL url_node)
          Build a FTP node with an URL
 
Method Summary
protected  URLNode createNode(URL url)
          This method create a FtpNode with an URL
 DrbAttributeList getAttributes()
          The attributes of the node.
 DrbNodeList getChildren()
          This method return the list of children of the ftp node
 
Methods inherited from class fr.gael.drb.impl.URLNode
allowsMultiOccurrence, equals, getImpl, getName, getNamedChild, getParent, getPath, hasImpl
 
Methods inherited from class fr.gael.drb.impl.DrbNodeImpl
close, createAttribute, createNode, flush, getProvider
 
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
 
Methods inherited from class fr.gael.drb.DrbDefaultNodesChangeProducer
addNodesChangeListener, getListenerList, nodesChanged, nodesInserted, nodesRemoved, removeNodesChangeListener, setListenerList, structureChanged
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

FtpNode

public FtpNode(URL url_node)
Build a FTP node with an URL

Parameters:
url_node - the URL
Method Detail

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.

Data Request Broker - DRB API®
2-3-release

Copyright© 2001-2009 GAEL Consultant. All rights reserved. Use is subject to license terms .