public class MemoryFileSystem extends FileSystem
MemoryFileSystem
will maps the read/write operations to memory.Constructor and Description |
---|
MemoryFileSystem() |
Modifier and Type | Method and Description |
---|---|
byte[] |
getFileContent(String fileName)
Returns the raw content of the specified file.
|
List<String> |
getFileNames()
File names that in this memory file system.
|
com.aspose.csporter.helpers.Stream |
readFile(String fileName,
IOConfig options)
Create a stream for reading dependencies.
|
com.aspose.csporter.helpers.Stream |
writeFile(String fileName,
IOConfig options)
Create a stream for writing dependencies.
|
public byte[] getFileContent(String fileName) throws FileNotFoundException
FileNotFoundException
if the specified file is not existing.fileName
- FileNotFoundException
public com.aspose.csporter.helpers.Stream readFile(String fileName, IOConfig options) throws IOException
readFile
in class FileSystem
fileName
- options
- IOException
public com.aspose.csporter.helpers.Stream writeFile(String fileName, IOConfig options)
writeFile
in class FileSystem
fileName
- options
- Copyright © 2018. All rights reserved.