public class ArchiveDevNode extends AccessibleAbstractArchiveComponent
| Modifier and Type | Field and Description |
|---|---|
private char |
devtype
the devtype.
|
private int |
major
the major-value.
|
private int |
minor
the minor-value.
|
| Constructor and Description |
|---|
ArchiveDevNode(java.lang.String name,
int mode,
char devtype,
int major,
int minor)
Creates a dev-node.
|
| Modifier and Type | Method and Description |
|---|---|
void |
accept(ArchiveComponentVisitor visitor)
calls back to the appropriate handle-method.
|
char |
getDevtype() |
int |
getMajor() |
int |
getMinor() |
getModegetNameprivate final char devtype
private final int major
private final int minor
public ArchiveDevNode(java.lang.String name,
int mode,
char devtype,
int major,
int minor)
name - the name of the dev-nodemode - the access permission of the dev-nodedevtype - the devtype must be 'b' for block device or 'c' for character devicemajor - the major of the dev-nodeminor - the minor of the dev-nodepublic char getDevtype()
public int getMajor()
public int getMinor()
public void accept(ArchiveComponentVisitor visitor) throws java.io.FileNotFoundException, java.io.IOException, IllegalDeviceTypeException
Visitablevisitor - the visiting visitorjava.io.FileNotFoundExceptionjava.io.IOExceptionIllegalDeviceTypeException