Interface Store

  • All Known Implementing Classes:
    DirectoryStore

    public interface Store
    Created by andrzej on 08.08.2016.
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      long count()
      Returns number of elements in store
      java.nio.channels.ReadableByteChannel getContent​(tigase.xmpp.jid.BareJID uploader, java.lang.String slotId, java.lang.String filename)
      Method to retrieve content of file from slot
      void remove​(tigase.xmpp.jid.BareJID uploader, java.lang.String slotId)
      Method removes content of slot
      void setContent​(tigase.xmpp.jid.BareJID uploader, java.lang.String slotId, java.lang.String filename, long size, java.nio.channels.ReadableByteChannel source)
      Method to set content of file to slot
      long size()
      Returns size used by store
    • Method Detail

      • count

        long count()
            throws java.io.IOException
        Returns number of elements in store
        Throws:
        java.io.IOException
      • size

        long size()
           throws java.io.IOException
        Returns size used by store
        Throws:
        java.io.IOException
      • getContent

        java.nio.channels.ReadableByteChannel getContent​(tigase.xmpp.jid.BareJID uploader,
                                                         java.lang.String slotId,
                                                         java.lang.String filename)
                                                  throws java.io.IOException
        Method to retrieve content of file from slot
        Throws:
        java.io.IOException
      • setContent

        void setContent​(tigase.xmpp.jid.BareJID uploader,
                        java.lang.String slotId,
                        java.lang.String filename,
                        long size,
                        java.nio.channels.ReadableByteChannel source)
                 throws java.io.IOException
        Method to set content of file to slot
        Throws:
        java.io.IOException
      • remove

        void remove​(tigase.xmpp.jid.BareJID uploader,
                    java.lang.String slotId)
             throws java.io.IOException
        Method removes content of slot
        Throws:
        java.io.IOException