com.jetbrains.plugin.structure.jar.PluginDescriptorResult.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of structure-base Show documentation
Show all versions of structure-base Show documentation
Base library for parsing JetBrains plugins. Used by other JetBrains Plugins structure libraries.
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()
}