Package ghidra.formats.gfilesystem
Interface DerivedFileProducer
-
public interface DerivedFileProducer
Used byFileSystemService.getDerivedFile(FSRL, String, DerivedFileProducer, TaskMonitor)
to produce a derived file from a source file.The
InputStream
returned from the method will be closed by the caller.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.io.InputStream
produceDerivedStream(java.io.File srcFile)
Callback method intended to be implemented by the caller toFileSystemService.getDerivedFile(FSRL, String, DerivedFileProducer, TaskMonitor)
.
-
-
-
Method Detail
-
produceDerivedStream
java.io.InputStream produceDerivedStream(java.io.File srcFile) throws java.io.IOException, CancelledException
Callback method intended to be implemented by the caller toFileSystemService.getDerivedFile(FSRL, String, DerivedFileProducer, TaskMonitor)
.The implementation needs to return an
InputStream
that contains the bytes of the derived file.- Parameters:
srcFile
-File
location of the source file (usually in the file cache)- Returns:
- a new
InputStream
that will produce all the bytes of the derived file. - Throws:
java.io.IOException
- if there is a problem while producing the InputStream.CancelledException
- if the user canceled.
-
-