finance.cik
Class CikCompanyNameSymbols

java.lang.Object
  extended by finance.cik.CikCompanyNameSymbols

public final class CikCompanyNameSymbols
extends java.lang.Object

User: lyon Date: Jul 22, 2007 Time: 2:17:53 PM Copyright DocJava, Inc. 2005.


Method Summary
 void add(CikCompanyNameSymbol ccns)
           
 void addCiksCompany()
           
 void addCikSymbolCompany()
          This is a very fast, precomputed way to obtain the symbolCIKCompany list.
 void addSymbolCompany()
           
static java.lang.String[] filter(java.lang.String[] sa)
           
static int getCik(java.lang.String tickerSymbol)
           
 CikCompanyNameSymbol getCikCompanyNameSymbol(java.lang.String symbol)
          Uses the symbol for a simple string lookup.
static CikCompanyNameSymbols getInstanceFromURL()
           
static java.lang.String[] getMergedList(java.io.File f)
           
 CikCompanyNameSymbol[] getRecords()
           
static java.lang.String[] getSymbolCikCompany()
           
static java.lang.String[] getSymbolsAndCompanyNames()
           
static void main(java.lang.String[] args)
           
static void main2(java.lang.String[] args)
           
static void makeBigList(java.lang.String[] args)
           
 void saveCsv(java.io.File f)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstanceFromURL

public static CikCompanyNameSymbols getInstanceFromURL()
                                                throws java.io.IOException
Throws:
java.io.IOException

getSymbolCikCompany

public static java.lang.String[] getSymbolCikCompany()
                                              throws java.io.IOException
Throws:
java.io.IOException

addCikSymbolCompany

public void addCikSymbolCompany()
                         throws java.io.IOException
This is a very fast, precomputed way to obtain the symbolCIKCompany list. The alternative is too slow for real-time work.

Throws:
java.io.IOException

getSymbolsAndCompanyNames

public static java.lang.String[] getSymbolsAndCompanyNames()
                                                    throws java.io.IOException
Throws:
java.io.IOException

add

public void add(CikCompanyNameSymbol ccns)

getMergedList

public static java.lang.String[] getMergedList(java.io.File f)
                                        throws java.io.FileNotFoundException
Throws:
java.io.FileNotFoundException

addSymbolCompany

public void addSymbolCompany()
                      throws java.io.IOException
Throws:
java.io.IOException

addCiksCompany

public void addCiksCompany()
                    throws java.io.IOException
Throws:
java.io.IOException

saveCsv

public void saveCsv(java.io.File f)
             throws java.io.IOException
Throws:
java.io.IOException

filter

public static java.lang.String[] filter(java.lang.String[] sa)

makeBigList

public static void makeBigList(java.lang.String[] args)
                        throws java.io.IOException
Throws:
java.io.IOException

getCik

public static int getCik(java.lang.String tickerSymbol)
                  throws java.io.IOException
Throws:
java.io.IOException

getCikCompanyNameSymbol

public CikCompanyNameSymbol getCikCompanyNameSymbol(java.lang.String symbol)
Uses the symbol for a simple string lookup. Very fast. But returns null if the symbol is not found.

Parameters:
symbol - a tick symbol. Is converted to upper case.
Returns:
null if symbol not found

getRecords

public CikCompanyNameSymbol[] getRecords()

main

public static void main(java.lang.String[] args)
                 throws java.io.IOException
Throws:
java.io.IOException

main2

public static void main2(java.lang.String[] args)
                  throws java.io.IOException,
                         javax.swing.text.BadLocationException
Throws:
java.io.IOException
javax.swing.text.BadLocationException