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

sss.openstar.attachments.StreamPersister.scala Maven / Gradle / Ivy

package sss.openstar.attachments

import java.io.InputStream

import scala.util.Try

case class UniqueLocator(location: String, size: Option[Long] = None)

trait StreamPersister {

  def saveStream(in: InputStream, path: String*): Try[UniqueLocator]
  def getStream(location: UniqueLocator): Try[InputStream]

}





© 2015 - 2024 Weber Informatics LLC | Privacy Policy