Class URLFile

java.lang.Object
  |
  +--URLFile

public final class URLFile
extends java.lang.Object

source
This class was reused from another project and was undocumented.


Field Summary
(package private)  java.io.DataInputStream bitfileFile
           
(package private)  int bitfileMask
           
(package private)  int bitfileRack
           
(package private) static int BREAK_EVEN
           
private  java.lang.StringBuffer contents
           
(package private)  java.io.DataInputStream dis
           
(package private) static int END_OF_STREAM
           
(package private)  boolean fatal
           
(package private) static int INDEX_BIT_COUNT
           
(package private) static int LENGTH_BIT_COUNT
           
(package private) static int PACIFIER_COUNT
           
(package private) static int SIZE_INCREMENT
          Returns contents of URL as a string with each newline replaced with lineWhiteSpacing.
(package private)  boolean uncompress
           
(package private)  java.net.URL url
           
(package private)  boolean useCache
           
(package private)  int[] window
           
(package private) static int WINDOW_SIZE
           
 
Constructor Summary
URLFile(java.lang.String urlIn, boolean addRandomNumber)
          Oen URL with appended random number if desired.
URLFile(java.net.URL url, boolean uncompress)
           
URLFile(java.net.URL urlIn, boolean uncompress, boolean useCache)
           
 
Method Summary
 void ExpandFile()
           
 void fatal_error(java.lang.String s)
           
 java.lang.String getContentsAsString()
          Returns contents of URL as a string.
 java.lang.String[] getContentsAsStrings()
          Returns contents of URL as an array of strings.
 java.lang.String getContentsAsStringWithLineSpacing(java.lang.String lineWhiteSpacing, boolean isTrans, java.lang.String previous)
           
 void init()
           
 int InputBit()
           
 long InputBits(int bit_count)
           
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

INDEX_BIT_COUNT

static final int INDEX_BIT_COUNT

LENGTH_BIT_COUNT

static final int LENGTH_BIT_COUNT

WINDOW_SIZE

static final int WINDOW_SIZE

BREAK_EVEN

static final int BREAK_EVEN

END_OF_STREAM

static final int END_OF_STREAM

PACIFIER_COUNT

static final int PACIFIER_COUNT

window

int[] window

url

java.net.URL url

dis

java.io.DataInputStream dis

bitfileFile

java.io.DataInputStream bitfileFile

bitfileMask

int bitfileMask

bitfileRack

int bitfileRack

uncompress

boolean uncompress

fatal

boolean fatal

useCache

boolean useCache

contents

private java.lang.StringBuffer contents

SIZE_INCREMENT

static final int SIZE_INCREMENT
Returns contents of URL as a string with each newline replaced with lineWhiteSpacing. If it is for transaction data, individual time stamp field is skipped. If previous string provided, terminates reading of URL if start with same data. String returned is displayed unedited in the Transaction Ticker.
Constructor Detail

URLFile

public URLFile(java.lang.String urlIn,
               boolean addRandomNumber)
        throws java.net.MalformedURLException
Oen URL with appended random number if desired.

URLFile

public URLFile(java.net.URL url,
               boolean uncompress)

URLFile

public URLFile(java.net.URL urlIn,
               boolean uncompress,
               boolean useCache)
Method Detail

ExpandFile

public void ExpandFile()

InputBit

public int InputBit()

InputBits

public long InputBits(int bit_count)

fatal_error

public void fatal_error(java.lang.String s)

init

public void init()

getContentsAsStrings

public java.lang.String[] getContentsAsStrings()
Returns contents of URL as an array of strings.

getContentsAsString

public java.lang.String getContentsAsString()
Returns contents of URL as a string.

getContentsAsStringWithLineSpacing

public java.lang.String getContentsAsStringWithLineSpacing(java.lang.String lineWhiteSpacing,
                                                           boolean isTrans,
                                                           java.lang.String previous)