rossi.fstools.fs.ext2fs
Class Ext2Device

java.lang.Object
  extended byrossi.fstools.fs.ext2fs.Ext2Device
All Implemented Interfaces:
Device, FsObject

public class Ext2Device
extends java.lang.Object
implements Device

Represents a device.


Constructor Summary
Ext2Device(Ext2Inode inode)
          Create a device from an Inode.
 
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

Ext2Device

public Ext2Device(Ext2Inode inode)
Create a device from an Inode.

Parameters:
inode - a Ext2Inode
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