net.spy.memcached
Class BuildInfo

java.lang.Object
  extended by java.util.Dictionary<K,V>
      extended by java.util.Hashtable<Object,Object>
          extended by java.util.Properties
              extended by net.spy.memcached.BuildInfo
All Implemented Interfaces:
Serializable, Cloneable, Map<Object,Object>

public class BuildInfo
extends Properties

Information regarding this spy.jar build. The following properties will be set at build time:

See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.util.Properties
defaults
 
Constructor Summary
  BuildInfo()
          Get an instance of BuildInfo that describes the spy.jar build.
protected BuildInfo(String resource)
          Get an instance of BuildInfo that describes the build info found in the given resource.
 
Method Summary
 Date getBuildDate()
          Get the date of this build.
 URL getFile(String rel)
          Get a URL to a file within this classloader.
static void main(String[] args)
          Print out the build properties.
 String toString()
          String me.
 
Methods inherited from class java.util.Properties
getProperty, getProperty, list, list, load, load, loadFromXML, propertyNames, save, setProperty, store, store, storeToXML, storeToXML, stringPropertyNames
 
Methods inherited from class java.util.Hashtable
clear, clone, contains, containsKey, containsValue, elements, entrySet, equals, get, hashCode, isEmpty, keys, keySet, put, putAll, rehash, remove, size, values
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

BuildInfo

public BuildInfo()
          throws IOException
Get an instance of BuildInfo that describes the spy.jar build.

Throws:
IOException

BuildInfo

protected BuildInfo(String resource)
             throws IOException
Get an instance of BuildInfo that describes the build info found in the given resource.

Throws:
IOException
Method Detail

getBuildDate

public Date getBuildDate()
Get the date of this build.


getFile

public URL getFile(String rel)
            throws FileNotFoundException
Get a URL to a file within this classloader.

Parameters:
rel - the relative name (i.e. net.spy.changelog)
Returns:
the URL
Throws:
FileNotFoundException - if the file cannot be found

toString

public String toString()
String me.

Overrides:
toString in class Hashtable<Object,Object>

main

public static void main(String[] args)
                 throws Exception
Print out the build properties.

Throws:
Exception