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

com.jetbrains.plugin.structure.jar.PluginDescriptorResult.kt Maven / Gradle / Ivy

Go to download

Base library for parsing JetBrains plugins. Used by other JetBrains Plugins structure libraries.

The newest version!
package com.jetbrains.plugin.structure.jar

import java.io.Closeable
import java.io.InputStream
import java.nio.file.Path

sealed class PluginDescriptorResult {
  data class Found(
    val path: Path,
    val inputStream: InputStream
  ) : PluginDescriptorResult(), Closeable {
    override fun close() {
      inputStream.close()
    }
  }

  object NotFound : PluginDescriptorResult()

  data class Failed(val path: Path, val exception: Exception) : PluginDescriptorResult()
}





© 2015 - 2024 Weber Informatics LLC | Privacy Policy