|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.io.File
ome.tools.FileSystem
public class FileSystem
Extends Sun Microsystems java.io.File for J2SE 5 only. This class provides methods that are available in version Java 2 Platform Standard Edition version 6.0. Only two of these methods are used for a specific purpose within this application. The methods are getTotalSpace() and getFreeSpace(). These methods will be used to monitor a specific filesystem and determine if maximum points may be exceeded.
Copyright 2007 Glencoe Software Inc. All rights reserved. Use is subject to license terms supplied in LICENSE.txt
Field Summary |
---|
Fields inherited from class java.io.File |
---|
pathSeparator, pathSeparatorChar, separator, separatorChar |
Constructor Summary | |
---|---|
FileSystem(File parent,
String child)
pass-thru constructor |
|
FileSystem(String pathname)
pass-thru constructor |
|
FileSystem(String parent,
String child)
pass-thru constructor |
|
FileSystem(URI uri)
pass-thru constructor |
Method Summary | |
---|---|
boolean |
equals(Object object)
Public equals implementation based on name only (very loose equals) |
long |
free(String mountRoot)
This method will return the free space in kilobytes TODO - resolve the slash mount |
int |
hashCode()
Public hashcode implementation based on String hash() return |
static void |
main(String[] args)
|
long |
size()
This method is used to get the used space of a File or FileSystem in bytes |
String |
toString()
Public toString implementation |
long |
used()
This method is used to get the used space of a File or FileSystem in kilobytes |
Methods inherited from class java.io.File |
---|
canExecute, canRead, canWrite, compareTo, createNewFile, createTempFile, createTempFile, delete, deleteOnExit, exists, getAbsoluteFile, getAbsolutePath, getCanonicalFile, getCanonicalPath, getFreeSpace, getName, getParent, getParentFile, getPath, getTotalSpace, getUsableSpace, isAbsolute, isDirectory, isFile, isHidden, lastModified, length, list, list, listFiles, listFiles, listFiles, listRoots, mkdir, mkdirs, renameTo, setExecutable, setExecutable, setLastModified, setReadable, setReadable, setReadOnly, setWritable, setWritable, toURI, toURL |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public FileSystem(String pathname)
pathname
- File.File(String)
public FileSystem(URI uri)
uri
- File.File(URI)
public FileSystem(String parent, String child)
parent
- child
- File.File(String, String)
public FileSystem(File parent, String child)
parent
- child
- File.File(File, String)
Method Detail |
---|
public long size()
public long used()
public long free(String mountRoot) throws RuntimeException
RuntimeException
public String toString()
toString
in class File
public boolean equals(Object object)
equals
in class File
object
-
public int hashCode()
hashCode
in class File
public static void main(String[] args) throws IOException
IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Version: Beta-4.2.0-r7571-b29
Copyright © 2009 The University of Dundee. All Rights Reserved.