gov.nasa.pds.harvest.file
Class FileSize

java.lang.Object
  extended by gov.nasa.pds.harvest.file.FileSize

public class FileSize
extends Object

Class representation of being able to specify units along with a file size.

Author:
mcayanan

Constructor Summary
FileSize(long size, String units)
          Constructor.
 
Method Summary
 long getSize()
           
 String getUnits()
           
 boolean hasUnits()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FileSize

public FileSize(long size,
                String units)
Constructor.

Parameters:
size - The file size.
units - A units designation.
Method Detail

getSize

public long getSize()
Returns:
the size.

getUnits

public String getUnits()
Returns:
the units.

hasUnits

public boolean hasUnits()
Returns:
Determines whether a units value was defined.


Copyright © 2010–2015 Planetary Data System. All rights reserved.