Package ghidra.formats.gfilesystem
Interface FileSystemService.DerivedStreamPushProducer
-
- Enclosing class:
- FileSystemService
public static interface FileSystemService.DerivedStreamPushProducer
Used bygetDerivedByteProviderPush()
to produce a derivative stream from a source file.The implementation needs to write bytes to the supplied
OutputStream
.Example:
fsService.getDerivedByteProviderPush( containerFSRL, null, "the_derived_file", -1, os -> FileUtilities.copyStream(my_input_stream, os), monitor);
See
push(OutputStream)
.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
push(java.io.OutputStream os)
Callback method intended to be implemented by the caller togetDerivedByteProviderPush()
-
-
-
Method Detail
-
push
void push(java.io.OutputStream os) throws java.io.IOException, CancelledException
Callback method intended to be implemented by the caller togetDerivedByteProviderPush()
- Parameters:
os
-OutputStream
that the implementor should write the bytes to. Do not close the stream when done- Throws:
java.io.IOException
- if there is a problem while writing to the OutputStreamCancelledException
- if the user canceled
-
-