Interface TemporaryResourceStore


  • @Role
    public interface TemporaryResourceStore
    Interface used to read and write temporary resources.
    Since:
    7.4.6, 8.2.2, 8.3
    Version:
    $Id: 7c7af9bccda440692c15b6dd0686a61459cfcb3e $
    • Method Detail

      • createTemporaryFile

        File createTemporaryFile​(TemporaryResourceReference reference,
                                 InputStream content)
                          throws IOException
        Create a new temporary file with the specified content.
        Parameters:
        reference - the temporary resource reference
        content - the content of the temporary file
        Returns:
        the created temporary file
        Throws:
        IOException - if creating the temporary file fails
      • getTemporaryFile

        File getTemporaryFile​(TemporaryResourceReference reference)
                       throws IOException
        Get the temporary file associated to the specified resource reference.
        Parameters:
        reference - the temporary resource reference
        Returns:
        the temporary file associated to the specified resource reference
        Throws:
        IOException - if the resource path is invalid