gs.hitchin.hitchfs
Class BasicFileSystem

java.lang.Object
  extended by gs.hitchin.hitchfs.StubFakeFileOperations
      extended by gs.hitchin.hitchfs.StubFileSystem
          extended by gs.hitchin.hitchfs.BasicFileSystem
All Implemented Interfaces:
FakeFileOperations, FileSystem
Direct Known Subclasses:
MemoryFileSystem

public class BasicFileSystem
extends StubFileSystem


Constructor Summary
BasicFileSystem()
           
 
Method Summary
 int compareTo(FakeFile fake, File pathname)
           
 boolean equals(FakeFile fake, Object obj)
           
 File getAbsoluteFile(FakeFile fake)
           
 String getAbsolutePath(FakeFile fake)
           
 File getCanonicalFile(FakeFile fake)
           
 String getCanonicalPath(FakeFile fake)
           
 String getName(FakeFile fake)
          http://www.docjar.com/html/api/java/io/File.java.html
 String getParent(FakeFile fake)
          http://www.docjar.com/html/api/java/io/File.java.html
 File getParentFile(FakeFile fake)
           
 String getPath(FakeFile fake)
           
 int hashCode(FakeFile fake)
           
 boolean isAbsolute(FakeFile fake)
           
 String toString(FakeFile fake)
           
 URI toURI(FakeFile fake)
          http://www.docjar.com/html/api/java/io/File.java.html
 URL toURL(FakeFile fake)
          http://www.docjar.com/html/api/java/io/File.java.html
 
Methods inherited from class gs.hitchin.hitchfs.StubFileSystem
absolute, absoluteSplit, canonical, canonicalSplit, createTempFile, createTempFile, currentTimeMillis, file, file, file, file, file, getCurrentDirectory, getCurrentDirectorySplit, getFileOperations, getPathSeparator, getPathSeparatorChar, getSeparator, getSeparatorChar, input, input, input, isAbsolute, isCaseSensitive, listRoots, makePath, output, output, output, output, output, reader, reader, reader, register, update, writer, writer, writer, writer, writer
 
Methods inherited from class gs.hitchin.hitchfs.StubFakeFileOperations
canExecute, canRead, canWrite, createNewFile, delete, deleteOnExit, exists, getFreeSpace, getInputStream, getOutputStream, getTotalSpace, getUsableSpace, isDirectory, isFile, isHidden, lastModified, length, list, list, listFiles, listFiles, listFiles, mkdir, mkdirs, renameTo, setExecutable, setExecutable, setHidden, setLastModified, setReadable, setReadable, setReadOnly, setWritable, setWritable, touch
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BasicFileSystem

public BasicFileSystem()
Method Detail

compareTo

public int compareTo(FakeFile fake,
                     File pathname)
Specified by:
compareTo in interface FakeFileOperations
Overrides:
compareTo in class StubFakeFileOperations

equals

public boolean equals(FakeFile fake,
                      Object obj)
Specified by:
equals in interface FakeFileOperations
Overrides:
equals in class StubFakeFileOperations

getAbsoluteFile

public File getAbsoluteFile(FakeFile fake)
Specified by:
getAbsoluteFile in interface FakeFileOperations
Overrides:
getAbsoluteFile in class StubFakeFileOperations

getAbsolutePath

public String getAbsolutePath(FakeFile fake)
Specified by:
getAbsolutePath in interface FakeFileOperations
Overrides:
getAbsolutePath in class StubFakeFileOperations

getCanonicalFile

public File getCanonicalFile(FakeFile fake)
                      throws IOException
Specified by:
getCanonicalFile in interface FakeFileOperations
Overrides:
getCanonicalFile in class StubFakeFileOperations
Throws:
IOException

getCanonicalPath

public String getCanonicalPath(FakeFile fake)
                        throws IOException
Specified by:
getCanonicalPath in interface FakeFileOperations
Overrides:
getCanonicalPath in class StubFakeFileOperations
Throws:
IOException

getName

public String getName(FakeFile fake)
http://www.docjar.com/html/api/java/io/File.java.html

Specified by:
getName in interface FakeFileOperations
Overrides:
getName in class StubFakeFileOperations

getParent

public String getParent(FakeFile fake)
http://www.docjar.com/html/api/java/io/File.java.html

Specified by:
getParent in interface FakeFileOperations
Overrides:
getParent in class StubFakeFileOperations

getParentFile

public File getParentFile(FakeFile fake)
Specified by:
getParentFile in interface FakeFileOperations
Overrides:
getParentFile in class StubFakeFileOperations

getPath

public String getPath(FakeFile fake)
Specified by:
getPath in interface FakeFileOperations
Overrides:
getPath in class StubFakeFileOperations

hashCode

public int hashCode(FakeFile fake)
Specified by:
hashCode in interface FakeFileOperations
Overrides:
hashCode in class StubFakeFileOperations

isAbsolute

public boolean isAbsolute(FakeFile fake)
Specified by:
isAbsolute in interface FakeFileOperations
Overrides:
isAbsolute in class StubFakeFileOperations

toString

public String toString(FakeFile fake)
Specified by:
toString in interface FakeFileOperations
Overrides:
toString in class StubFakeFileOperations

toURI

public URI toURI(FakeFile fake)
http://www.docjar.com/html/api/java/io/File.java.html

Specified by:
toURI in interface FakeFileOperations
Overrides:
toURI in class StubFakeFileOperations

toURL

public URL toURL(FakeFile fake)
          throws MalformedURLException
http://www.docjar.com/html/api/java/io/File.java.html

Specified by:
toURL in interface FakeFileOperations
Overrides:
toURL in class StubFakeFileOperations
Throws:
MalformedURLException


Copyright © 2012. All Rights Reserved.