Class BuddyPluginBuddy.fragmentHandler.fragmentAssembly

    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      protected fragmentAssembly​(int _id, int _length, int _chunk_size)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected int getChunksReceived()  
      protected byte[] getData()  
      protected int getID()  
      protected int getTotalChunks()  
      protected boolean receive​(int chunk_num, byte[] chunk)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • id

        private int id
      • data

        private byte[] data
      • chunk_size

        private int chunk_size
      • num_chunks

        private int num_chunks
      • chunks_received

        private java.util.Set chunks_received
    • Constructor Detail

      • fragmentAssembly

        protected fragmentAssembly​(int _id,
                                   int _length,
                                   int _chunk_size)
    • Method Detail

      • getID

        protected int getID()
      • getChunksReceived

        protected int getChunksReceived()
      • getTotalChunks

        protected int getTotalChunks()
      • receive

        protected boolean receive​(int chunk_num,
                                  byte[] chunk)
      • getData

        protected byte[] getData()