net.spy.util
Class SpyLDIF

java.lang.Object
  extended byjava.util.Dictionary
      extended byjava.util.Hashtable
          extended bynet.spy.util.SpyLDIF
All Implemented Interfaces:
Cloneable, Map, Serializable

public class SpyLDIF
extends Hashtable

An LDIF Entry (returned by SpyLDIFReader).

See Also:
SpyLDIFReader, Serialized Form

Constructor Summary
SpyLDIF()
          Get a new SpyLDIF object that's not initialized
SpyLDIF(Hashtable h)
          Get a new SpyLDIF object from a Hashtable
SpyLDIF(String ldifEntry)
          Return a new SpyLDIF object from the passed in LDIF entry
 
Method Summary
 int getInt(String key)
          Get an int value from the LDIF entry
 String getLDIF()
          Get LDIF text from this LDIF object
 String getString(String key)
          Get a string value from the LDIF entry
static Vector parseLDIF(Reader r)
          Parse the data from an LDIF file, may include multiple entries.
 
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, toString, values
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SpyLDIF

public SpyLDIF()
Get a new SpyLDIF object that's not initialized


SpyLDIF

public SpyLDIF(Hashtable h)
Get a new SpyLDIF object from a Hashtable


SpyLDIF

public SpyLDIF(String ldifEntry)
Return a new SpyLDIF object from the passed in LDIF entry

Method Detail

parseLDIF

public static Vector parseLDIF(Reader r)
Parse the data from an LDIF file, may include multiple entries.


getString

public String getString(String key)
Get a string value from the LDIF entry


getInt

public int getInt(String key)
Get an int value from the LDIF entry


getLDIF

public String getLDIF()
Get LDIF text from this LDIF object