Update DiskSpace.java

Added the necessary convert and revert methods to DiskSpace. Convert returns byte array of the object. Revert returns the object of the byte array.