Package zombie.fileSystem
Class MemoryFileDevice
java.lang.Object
zombie.fileSystem.MemoryFileDevice
- All Implemented Interfaces:
IFileDevice
public final class MemoryFileDevice extends java.lang.Object implements IFileDevice
-
Constructor Summary
Constructors Constructor Description MemoryFileDevice()
-
Method Summary
Modifier and Type Method Description IFile
createFile(IFile iFile)
java.io.InputStream
createStream(java.lang.String string, java.io.InputStream inputStream)
void
destroyFile(IFile iFile)
void
destroyStream(java.io.InputStream inputStream)
java.lang.String
name()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
MemoryFileDevice
public MemoryFileDevice()
-
-
Method Details
-
createFile
- Specified by:
createFile
in interfaceIFileDevice
-
destroyFile
- Specified by:
destroyFile
in interfaceIFileDevice
-
createStream
public java.io.InputStream createStream(java.lang.String string, java.io.InputStream inputStream) throws java.io.IOException- Specified by:
createStream
in interfaceIFileDevice
- Throws:
java.io.IOException
-
destroyStream
public void destroyStream(java.io.InputStream inputStream)- Specified by:
destroyStream
in interfaceIFileDevice
-
name
public java.lang.String name()- Specified by:
name
in interfaceIFileDevice
-