rossi.fstools.fs.reiserfs
Class ReiserDevice

java.lang.Object
  extended byrossi.fstools.fs.reiserfs.ReiserDevice
All Implemented Interfaces:
Device, FsObject

public class ReiserDevice
extends java.lang.Object
implements Device

Representation of a unix device.


Constructor Summary
ReiserDevice(StatDataItem inode)
          Crate the device from the inode (stat data)
 
Method Summary
 int getMajor()
          Get the major device type.
 int getMinor()
          Get the minor device type.
 boolean isBlockDev()
           
 boolean isCharDev()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ReiserDevice

public ReiserDevice(StatDataItem inode)
Crate the device from the inode (stat data)

Parameters:
inode - a StatDataItem
Method Detail

isBlockDev

public boolean isBlockDev()
Specified by:
isBlockDev in interface Device
Returns:
true if this represents a block device

isCharDev

public boolean isCharDev()
Specified by:
isCharDev in interface Device
Returns:
true if this is a character device

getMajor

public int getMajor()
Description copied from interface: Device
Get the major device type.

Specified by:
getMajor in interface Device
Returns:
the major device number

getMinor

public int getMinor()
Description copied from interface: Device
Get the minor device type.

Specified by:
getMinor in interface Device
Returns:
the minor device number