Package com.powsybl.commons.io.mmap
Class MemoryMapFileMock
- java.lang.Object
-
- com.powsybl.commons.io.mmap.MemoryMapFileMock
-
- All Implemented Interfaces:
MemoryMappedFile
,AutoCloseable
public class MemoryMapFileMock extends Object implements MemoryMappedFile
- Author:
- Geoffroy Jamgotchian
-
-
Constructor Summary
Constructors Constructor Description MemoryMapFileMock()
-
-
-
Method Detail
-
exists
public boolean exists()
- Specified by:
exists
in interfaceMemoryMappedFile
-
getBuffer
public ByteBuffer getBuffer(int size) throws IOException
- Specified by:
getBuffer
in interfaceMemoryMappedFile
- Throws:
IOException
-
close
public void close() throws IOException
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceMemoryMappedFile
- Throws:
IOException
-
-