gnu.inet.gopher
Class DirectoryEntry

java.lang.Object
  extended by gnu.inet.gopher.DirectoryEntry

public final class DirectoryEntry
extends java.lang.Object

A gopher directory entry.

Author:
Chris Burdess

Field Summary
static int BINARY
          Item is a binary file.
static int BINHEX
          Item is a BinHex Macintosh file.
static int CSO_PHONE_BOOK
          Item is a CSO phone-book server.
static int DIRECTORY
          Item is a directory.
static int DOS_ARCHIVE
          Item is a DOS binary archive of some sort.
static int ERROR
          Error.
static int FILE
          Item is a file.
static int GIF
          Item is a GIF format graphics file.
static int IMAGE
          Item is some kind of image file.
static int INDEX_SEARCH
          Item is an Index-Search server.
static int REDUNDANT
          Item is a redundant server.
static int TELNET
          Item points to a text-based Telnet session.
static int TN3270
          Item points to a text-based tn3270 session.
static int UUENCODED
          Item is a UNIX uuencoded file.
 
Method Summary
 java.lang.String getHostname()
          Returns the hostname for the content of this entry.
 int getPort()
          Returns the port on which the content for this entry can be retrieved.
 java.lang.String getSelector()
          Returns the selector for this entry.
 java.lang.String getTitle()
          Returns the title for this entry.
 int getType()
          Returns the type of this entry.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

FILE

public static final int FILE
Item is a file.

See Also:
Constant Field Values

DIRECTORY

public static final int DIRECTORY
Item is a directory.

See Also:
Constant Field Values

CSO_PHONE_BOOK

public static final int CSO_PHONE_BOOK
Item is a CSO phone-book server.

See Also:
Constant Field Values

ERROR

public static final int ERROR
Error.

See Also:
Constant Field Values

BINHEX

public static final int BINHEX
Item is a BinHex Macintosh file.

See Also:
Constant Field Values

DOS_ARCHIVE

public static final int DOS_ARCHIVE
Item is a DOS binary archive of some sort.

See Also:
Constant Field Values

UUENCODED

public static final int UUENCODED
Item is a UNIX uuencoded file.

See Also:
Constant Field Values

INDEX_SEARCH

public static final int INDEX_SEARCH
Item is an Index-Search server.

See Also:
Constant Field Values

TELNET

public static final int TELNET
Item points to a text-based Telnet session.

See Also:
Constant Field Values

BINARY

public static final int BINARY
Item is a binary file.

See Also:
Constant Field Values

REDUNDANT

public static final int REDUNDANT
Item is a redundant server.

See Also:
Constant Field Values

TN3270

public static final int TN3270
Item points to a text-based tn3270 session.

See Also:
Constant Field Values

GIF

public static final int GIF
Item is a GIF format graphics file.

See Also:
Constant Field Values

IMAGE

public static final int IMAGE
Item is some kind of image file.

See Also:
Constant Field Values
Method Detail

getType

public int getType()
Returns the type of this entry.


getTitle

public java.lang.String getTitle()
Returns the title for this entry.


getSelector

public java.lang.String getSelector()
Returns the selector for this entry. This is used to retrieve the content for the entry.


getHostname

public java.lang.String getHostname()
Returns the hostname for the content of this entry.


getPort

public int getPort()
Returns the port on which the content for this entry can be retrieved.



© Copyright 2003 The Free Software Foundation, all rights reserved