All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.joern.console.CpgConverter.scala Maven / Gradle / Ivy

There is a newer version: 4.0.131
Show newest version
package io.joern.console

import io.shiftleft.codepropertygraph.cpgloading.{CpgLoader, ProtoCpgLoader}

import java.nio.file.Paths

object CpgConverter {

  def convertProtoCpgToFlatgraph(srcFilename: String, dstFilename: String): Unit = {
    val cpg = ProtoCpgLoader.loadFromProtoZip(srcFilename, Option(Paths.get(dstFilename)))
    cpg.close()
  }

  @deprecated("method got renamed to `convertProtoCpgToFlatgraph, please use that instead", "joern v3")
  def convertProtoCpgToOverflowDb(srcFilename: String, dstFilename: String): Unit =
    convertProtoCpgToFlatgraph(srcFilename, dstFilename)

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy