javatools.unix
Class Passwd

java.lang.Object
  |
  +--javatools.unix.Passwd

public class Passwd
extends java.lang.Object

Class for reading Unix /etc/passwd file.


Nested Class Summary
 class Passwd.Entry
           
 
Field Summary
(package private)  java.util.Map byName
           
(package private)  java.util.Map byUid
           
 
Constructor Summary
Passwd(java.io.File file)
           
Passwd(java.lang.String fileName)
           
 
Method Summary
 Passwd.Entry findByName(java.lang.String name)
           
 Passwd.Entry findByUid(int uid)
           
(package private)  void init(java.io.BufferedReader in)
           
(package private)  void init(java.io.File file)
           
(package private)  void init(java.lang.String fileName)
           
 void Passwd(java.io.BufferedReader in)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

byName

java.util.Map byName

byUid

java.util.Map byUid
Constructor Detail

Passwd

public Passwd(java.lang.String fileName)
       throws java.io.FileNotFoundException,
              java.io.IOException

Passwd

public Passwd(java.io.File file)
       throws java.io.FileNotFoundException,
              java.io.IOException
Method Detail

Passwd

public void Passwd(java.io.BufferedReader in)
            throws java.io.IOException
java.io.IOException

findByName

public Passwd.Entry findByName(java.lang.String name)

findByUid

public Passwd.Entry findByUid(int uid)

init

void init(java.lang.String fileName)
    throws java.io.FileNotFoundException,
           java.io.IOException
java.io.FileNotFoundException
java.io.IOException

init

void init(java.io.File file)
    throws java.io.FileNotFoundException,
           java.io.IOException
java.io.FileNotFoundException
java.io.IOException

init

void init(java.io.BufferedReader in)
    throws java.io.IOException
java.io.IOException