Class DirectoryContextSource

    • Constructor Detail

      • DirectoryContextSource

        public DirectoryContextSource​(IBytecodeProvider legacyProvider,
                                      java.io.File baseDirectory)
    • Method Detail

      • getName

        public java.lang.String getName()
        Description copied from interface: IContextSource
        Get a human-readable name to identify this context source.
        Specified by:
        getName in interface IContextSource
        Returns:
        a human-readable name
      • getInputStream

        public java.io.InputStream getInputStream​(java.lang.String resource)
                                           throws java.io.IOException
        Description copied from interface: IContextSource
        Get an input stream for a specific resource. This will return null if a directory is requested.
        Specified by:
        getInputStream in interface IContextSource
        Parameters:
        resource - the resource to request
        Returns:
        an input stream
        Throws:
        java.io.IOException - if an input stream could not be opened
      • createOutputSink

        public IContextSource.IOutputSink createOutputSink​(IResultSaver saver)
        Description copied from interface: IContextSource
        Create a sink that can write the decompiled output from this context element.

        If this context source type does not support writing, return a null sink.

        Specified by:
        createOutputSink in interface IContextSource
        Parameters:
        saver - the source result saver for this decompiler, for delegation
        Returns:
        the output sink, or null if unwritable