rcs.utils
Class URL_and_FileLoader

java.lang.Object
  extended by rcs.utils.URL_and_FileLoader

public class URL_and_FileLoader
extends java.lang.Object

Class used to read text files one line at a time either as a local file or via an HTTP server.

 Related Documentation:
 RCS Library, NML Programmers Guide (Java Version)

 


Field Summary
 int bytes_read
           
 int content_length
           
static java.lang.String current_directory
           
static boolean debug_file_loading
           
static boolean debug_on
           
static boolean default_use_caches
           
 java.lang.String HTTPhost
           
 int HTTPport
           
static boolean interrupt_file_loading
           
 boolean is_local
           
 int lines_read
           
 java.lang.String name
           
 java.lang.String str
           
 java.lang.String StringToSucceed
           
 java.util.StringTokenizer tokenizer
           
 boolean TryNameSucceeded
           
 
Constructor Summary
URL_and_FileLoader(java.io.InputStream is)
           
URL_and_FileLoader(java.lang.String _name)
           
 
Method Summary
static void AddToSearchPath(java.lang.String new_dir)
           
static boolean CheckInSearchPath(java.lang.String new_dir)
           
 void close()
           
static java.util.Vector get_SearchPath()
           
 java.io.BufferedReader getBufferedReader()
           
 boolean getUseCaches()
           
 java.lang.String readLine()
           
 void setUseCaches(boolean _cache)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

content_length

public int content_length

bytes_read

public int bytes_read

lines_read

public int lines_read

default_use_caches

public static boolean default_use_caches

interrupt_file_loading

public static boolean interrupt_file_loading

debug_file_loading

public static boolean debug_file_loading

current_directory

public static java.lang.String current_directory

name

public java.lang.String name

is_local

public boolean is_local

HTTPport

public int HTTPport

HTTPhost

public java.lang.String HTTPhost

debug_on

public static boolean debug_on

str

public java.lang.String str

tokenizer

public java.util.StringTokenizer tokenizer

TryNameSucceeded

public boolean TryNameSucceeded

StringToSucceed

public java.lang.String StringToSucceed
Constructor Detail

URL_and_FileLoader

public URL_and_FileLoader(java.io.InputStream is)

URL_and_FileLoader

public URL_and_FileLoader(java.lang.String _name)
Method Detail

get_SearchPath

public static java.util.Vector get_SearchPath()

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

setUseCaches

public void setUseCaches(boolean _cache)

getUseCaches

public boolean getUseCaches()

CheckInSearchPath

public static boolean CheckInSearchPath(java.lang.String new_dir)

AddToSearchPath

public static void AddToSearchPath(java.lang.String new_dir)

readLine

public java.lang.String readLine()

getBufferedReader

public java.io.BufferedReader getBufferedReader()

close

public void close()