Class InternalMountPoint

  • All Implemented Interfaces:
    java.lang.Cloneable

    public class InternalMountPoint
    extends FileSystemType
    A data class to signify the Internal Mount Point for a filesystem.
    Author:
    Karan Vahi
    • Constructor Detail

      • InternalMountPoint

        public InternalMountPoint()
        The default constructor.
      • InternalMountPoint

        public InternalMountPoint​(java.lang.String mountPoint)
        The overloaded constructor.
        Parameters:
        mountPoint - the mount point of the system.
      • InternalMountPoint

        public InternalMountPoint​(java.lang.String mountPoint,
                                  java.lang.String totalSize,
                                  java.lang.String freeSize)
        The overloaded constructor.
        Parameters:
        mountPoint - the mount point of the system.
        totalSize - the total size of the system.
        freeSize - the free size
    • Method Detail

      • isEmpty

        public boolean isEmpty()
        A convenience method that returns true if all the attributes values are uninitialized or empty strings. Useful for serializing the object as XML.
        Returns:
        boolean
      • toXML

        public void toXML​(java.io.Writer writer,
                          java.lang.String indent)
                   throws java.io.IOException
        Writes out the xml description of the object.
        Specified by:
        toXML in class AbstractSiteData
        Parameters:
        writer - is a Writer opened and ready for writing. This can also be a StringWriter for efficient output.
        indent - the indent to use.
        Throws:
        java.io.IOException - if something fishy happens to the stream.