Class Dirent


  • class Dirent
    extends java.lang.Object
    Directory entry.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private int ino  
      private java.lang.String name  
      private int parentIno  
      private int type  
    • Constructor Summary

      Constructors 
      Constructor Description
      Dirent​(int ino, int parentIno, int type, java.lang.String name)
      Constructor
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      (package private) int getIno()
      Get ino.
      (package private) java.lang.String getName()
      Get name of directory entry.
      (package private) int getParentIno()
      Get ino of parent directory.
      (package private) int getType()
      Get entry type.
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Field Detail

      • ino

        private final int ino
      • parentIno

        private final int parentIno
      • type

        private final int type
      • name

        private final java.lang.String name
    • Constructor Detail

      • Dirent

        Dirent​(int ino,
               int parentIno,
               int type,
               java.lang.String name)
        Constructor
        Parameters:
        ino -
        parentIno -
        type -
        name -
    • Method Detail

      • getIno

        int getIno()
        Get ino.
        Returns:
        the i-node
      • getParentIno

        int getParentIno()
        Get ino of parent directory.
        Returns:
        the parent i-node
      • getType

        int getType()
        Get entry type.
        Returns:
        the entry type
      • getName

        java.lang.String getName()
        Get name of directory entry.

        This method returns the raw name as it is stored inside of the archive.

        Returns:
        the directory name
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
        See Also:
        Object.toString()