code: public void recycle() {
      	while(buffer.size()>0)
      		buffer.poll().recycle();
      	
      	if(activeFrame!=null)
      		activeFrame.recycle();
      	
          activeFrame=null;
  		activeData=null;
  		byteIndex=0;		        
      }
docs: Recycles input stream