Package ghidra.formats.gfilesystem
Interface FileSystemService.DerivedStreamProducer
-
- Enclosing class:
- FileSystemService
public static interface FileSystemService.DerivedStreamProducerUsed bygetDerivedByteProvider()to produce a derivative stream from a source file.The
InputStreamreturned from the method needs to supply the bytes of the derived file and will be closed by the caller.Example:
fsService.getDerivedByteProvider( containerFSRL, null, "the_derived_file", -1, () -> new MySpecialtyInputstream(), monitor);
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.io.InputStreamproduceDerivedStream()Callback method intended to be implemented by the caller toFileSystemService.getDerivedByteProvider(FSRL, FSRL, String, long, DerivedStreamProducer, TaskMonitor)
-
-
-
Method Detail
-
produceDerivedStream
java.io.InputStream produceDerivedStream() throws java.io.IOException, CancelledExceptionCallback method intended to be implemented by the caller toFileSystemService.getDerivedByteProvider(FSRL, FSRL, String, long, DerivedStreamProducer, TaskMonitor)The implementation needs to return an
InputStreamthat contains the bytes of the derived file.- 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 InputStreamCancelledException- if the user canceled
-
-