optics
Class Glass

java.lang.Object
  extended by optics.Optics
      extended by optics.Glass

public class Glass
extends Optics

Class to access the glass definition files.


Field Summary
static String HOYA_ENV
          Hoya glass env
static String HOYA_URL
          Hoya glass URL
static String OHARA_ENV
          Ohara glass env
static String OHARA_URL
          Ohara glass URL
static String SCHOTT_ENV
          Schott glass env
static String SCHOTT_URL
          Schott glass url
 
Fields inherited from class optics.Optics
DEFAULT_WAVELENGTH, errorStream, fmt, MICRONS, version
 
Constructor Summary
Glass()
           
 
Method Summary
static BufferedReader getReader(String glassEnv, String glassURL)
          Static method to get the BufferedReader initially trying the env and then the url.
 
Methods inherited from class optics.Optics
getDefaultWaveLength, getErrorStream, getFormatString, getName, getStaticName, getVersion, printError, setDefaultWaveLength, setErrorStream, setFormatString, setMicrons
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SCHOTT_ENV

public static final String SCHOTT_ENV
Schott glass env

See Also:
Constant Field Values

SCHOTT_URL

public static final String SCHOTT_URL
Schott glass url

See Also:
Constant Field Values

HOYA_ENV

public static final String HOYA_ENV
Hoya glass env

See Also:
Constant Field Values

HOYA_URL

public static final String HOYA_URL
Hoya glass URL

See Also:
Constant Field Values

OHARA_ENV

public static final String OHARA_ENV
Ohara glass env

See Also:
Constant Field Values

OHARA_URL

public static final String OHARA_URL
Ohara glass URL

See Also:
Constant Field Values
Constructor Detail

Glass

public Glass()
Method Detail

getReader

public static BufferedReader getReader(String glassEnv,
                                       String glassURL)
Static method to get the BufferedReader initially trying the env and then the url. If both fails then null is returned.

Parameters:
glassEnv - the local env variable point to local file
glassURL - the alternative URL