Package ghidra.formats.gfilesystem
Interface DerivedFileProducer
-
public interface DerivedFileProducerUsed byFileSystemService.getDerivedFile(FSRL, String, DerivedFileProducer, TaskMonitor)to produce a derived file from a source file.The
InputStreamreturned from the method will be closed by the caller.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.io.InputStreamproduceDerivedStream(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, CancelledExceptionCallback method intended to be implemented by the caller toFileSystemService.getDerivedFile(FSRL, String, DerivedFileProducer, TaskMonitor).The implementation needs to return an
InputStreamthat contains the bytes of the derived file.- Parameters:
srcFile-Filelocation of the source file (usually in the file cache)- Returns:
- a new
InputStreamthat 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.
-
-