Class CompressedSectionProvider
- java.lang.Object
-
- ghidra.app.util.bin.format.dwarf4.next.sectionprovider.CompressedSectionProvider
-
- All Implemented Interfaces:
DWARFSectionProvider
,java.io.Closeable
,java.lang.AutoCloseable
public class CompressedSectionProvider extends java.lang.Object implements DWARFSectionProvider
Fetches DWARF section data that has been compressed from an underlyingDWARFSectionProvider
.Note, this code has not been tested against real data but is included here as it was in the original DWARF code base. This section provider is not currently registered in the
DWARFSectionProviderFactory
and as such will not be used.TODO: the decompressed data should be stored in something other than in-memory byte arrays, probably should use tmp files.
-
-
Constructor Summary
Constructors Constructor Description CompressedSectionProvider(DWARFSectionProvider sp)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
ByteProvider
getSectionAsByteProvider(java.lang.String sectionName)
boolean
hasSection(java.lang.String... sectionNames)
-
-
-
Constructor Detail
-
CompressedSectionProvider
public CompressedSectionProvider(DWARFSectionProvider sp)
-
-
Method Detail
-
hasSection
public boolean hasSection(java.lang.String... sectionNames)
- Specified by:
hasSection
in interfaceDWARFSectionProvider
-
getSectionAsByteProvider
public ByteProvider getSectionAsByteProvider(java.lang.String sectionName) throws java.io.IOException
- Specified by:
getSectionAsByteProvider
in interfaceDWARFSectionProvider
- Throws:
java.io.IOException
-
close
public void close()
- Specified by:
close
in interfacejava.lang.AutoCloseable
- Specified by:
close
in interfacejava.io.Closeable
- Specified by:
close
in interfaceDWARFSectionProvider
-
-