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