netcom.mds
Class FileShare

java.lang.Object
  extended bynetcom.mds.AbstractShare
      extended bynetcom.mds.FileShare
All Implemented Interfaces:
java.lang.Comparable, java.io.Serializable

public class FileShare
extends AbstractShare

Title: File Share

Description: This represents a shared File resource by a PServer

Copyright: Copyright (c) 2002

Company: NETCOM

See Also:
ChatShare, Serialized Form

Field Summary
 java.lang.String size
          A String that represnts the size of the FileShare
 
Fields inherited from class netcom.mds.AbstractShare
access_list, id, name_list_pairs, ps_name, share_name, source
 
Constructor Summary
FileShare(java.lang.String ps_name, java.lang.String share_name, AddressPort source, java.lang.String id, java.lang.String[] access_list, java.util.List[] name_list_pairs, java.lang.String size)
          Constructs a ChatShare object representing a ChatRoom on a PServer
 
Method Summary
 int compareTo(java.lang.Object o)
          This compareTo is unique to FileShare and compares two FileShares based on there share_name
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

size

public final java.lang.String size
A String that represnts the size of the FileShare

Constructor Detail

FileShare

public FileShare(java.lang.String ps_name,
                 java.lang.String share_name,
                 AddressPort source,
                 java.lang.String id,
                 java.lang.String[] access_list,
                 java.util.List[] name_list_pairs,
                 java.lang.String size)
Constructs a ChatShare object representing a ChatRoom on a PServer

Parameters:
ps_name - A String containingname of the PServer to add the share to
share_name - A String representing the name of the Share
source - An InetSocketAddress that is the Socket of the PServer with the Share
id - A unique String that represents this spedcific share. Used to get data from PServer
access_list - An array of Strings containing all PClients who have permission to Share. null if everyone has access
name_list_pairs - An array of Lists that have the name lists representing the Share and used for searching for shares within PSDatas
size - A String that represents the size of the FileShare
Method Detail

compareTo

public int compareTo(java.lang.Object o)
This compareTo is unique to FileShare and compares two FileShares based on there share_name

Specified by:
compareTo in interface java.lang.Comparable
Specified by:
compareTo in class AbstractShare
Parameters:
o - Object to compare this ChatShare to