Interface BinaryStore


public interface BinaryStore
Abstraction for storing binaries
  • Method Summary

    Modifier and Type Method Description
    java.io.InputStream get​(java.lang.String reference)
    Return an input stream for the identifier
    java.lang.String put​(java.lang.String id, java.io.InputStream stream, long length)
    Return the reference for the
  • Method Details

    • get

      java.io.InputStream get​(java.lang.String reference) throws java.io.IOException
      Return an input stream for the identifier
      Parameters:
      reference - binary reference
      Returns:
      Throws:
      java.io.IOException
    • put

      java.lang.String put​(java.lang.String id, java.io.InputStream stream, long length) throws java.io.IOException
      Return the reference for the
      Parameters:
      id - binary identifier
      stream - stream to store
      length - length of the stream
      Returns:
      Throws:
      java.io.IOException