MemoryFileSystem
Contents
[
Hide
]MemoryFileSystem class
The MemoryFileSystem will maps the read/write operations to memory.
Methods
constructor
| Name | Description |
|---|---|
| constructor() |
Result:
getFileNames
| Name | Description |
|---|---|
| getFileNames() | File names that in this memory file system. |
Result:
getFileContent
| Name | Description |
|---|---|
| getFileContent(fileName) | Returns the raw content of the specified file. Throw System.IO.FileNotFoundException if the specified file is not existing. |
Parameters:
| Name | Type | Description |
|---|---|---|
| fileNam | String | null |
Result: byte[]
readFile
| Name | Description |
|---|---|
| readFile(fileName, options) | Create a stream for reading dependencies. |
Parameters:
| Name | Type | Description |
|---|---|---|
| fileNam | String | null |
| option | IOConfig | null |
Result: Stream
writeFile
| Name | Description |
|---|---|
| writeFile(fileName, options) | Create a stream for writing dependencies. |
Parameters:
| Name | Type | Description |
|---|---|---|
| fileNam | String | null |
| option | IOConfig | null |
Result: Stream