rossi.fstools.fs
Interface Device

All Superinterfaces:
FsObject
All Known Implementing Classes:
Ext2Device, ReiserDevice

public interface Device
extends FsObject

Representation of a unix device.


Method Summary
 int getMajor()
          Get the major device type.
 int getMinor()
          Get the minor device type.
 boolean isBlockDev()
           
 boolean isCharDev()
           
 

Method Detail

isBlockDev

public boolean isBlockDev()
Returns:
true if this represents a block device

isCharDev

public boolean isCharDev()
Returns:
true if this is a character device

getMajor

public int getMajor()
Get the major device type.

Returns:
the major device number

getMinor

public int getMinor()
Get the minor device type.

Returns:
the minor device number