gs.hitchin.hitchfs
Class IOFileSystem

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

public class IOFileSystem
extends MemoryFileSystem


Constructor Summary
IOFileSystem()
           
 
Method Summary
 boolean delete(FakeFile fake)
           
 InputStream getInputStream(FakeFile fake)
           
 OutputStream getOutputStream(FakeFile fake, boolean append)
           
 long length(FakeFile fake)
           
 
Methods inherited from class gs.hitchin.hitchfs.MemoryFileSystem
canExecute, canRead, canWrite, createNewFile, deleteOnExit, exists, isDirectory, isFile, isHidden, isOwner, lastModified, list, list, listAsList, listFiles, listFiles, listFiles, listFiles, listRoots, lookup, mkdir, mkdirs, printFS, register, renameTo, setExecutable, setExecutable, setHidden, setLastModified, setReadable, setReadable, setReadOnly, setWritable, setWritable, touch
 
Methods inherited from class gs.hitchin.hitchfs.BasicFileSystem
compareTo, equals, getAbsoluteFile, getAbsolutePath, getCanonicalFile, getCanonicalPath, getName, getParent, getParentFile, getPath, hashCode, isAbsolute, toString, toURI, toURL
 
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, makePath, output, output, output, output, output, reader, reader, reader, update, writer, writer, writer, writer, writer
 
Methods inherited from class gs.hitchin.hitchfs.StubFakeFileOperations
getFreeSpace, getTotalSpace, getUsableSpace
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IOFileSystem

public IOFileSystem()
Method Detail

delete

public boolean delete(FakeFile fake)
Specified by:
delete in interface FakeFileOperations
Overrides:
delete in class MemoryFileSystem

getInputStream

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

getOutputStream

public OutputStream getOutputStream(FakeFile fake,
                                    boolean append)
                             throws IOException
Specified by:
getOutputStream in interface FakeFileOperations
Overrides:
getOutputStream in class StubFakeFileOperations
Throws:
IOException

length

public long length(FakeFile fake)
Specified by:
length in interface FakeFileOperations
Overrides:
length in class StubFakeFileOperations


Copyright © 2012. All Rights Reserved.