Class ClasspathPyImporter

All Implemented Interfaces:
Serializable
Direct Known Subclasses:
ClasspathPyImporterDerived

public class ClasspathPyImporter extends importer<String>
See Also:
  • Field Details

  • Constructor Details

    • ClasspathPyImporter

      public ClasspathPyImporter(PyType subType)
    • ClasspathPyImporter

      public ClasspathPyImporter()
  • Method Details

    • get_data

      public String get_data(String path)
      Return the contents of the jarred file at the specified path as bytes.
      Specified by:
      get_data in class importer<String>
      Parameters:
      path - a String path name within the archive
      Returns:
      a String of data in binary mode (no CRLF)
    • get_source

      public String get_source(String fullname)
      Return the source code for the module as a string (using newline characters for line endings)
      Parameters:
      fullname - the fully qualified name of the module
      Returns:
      a String of the module's source code or null