public void stopLoading ( ) { if ( imageUrl == null ) return ; // SourcePicture has never been used yet Tools . log ( "SourcePicture.stopLoading: called on " + imageUrl ) ; if ( pictureStatusCode == LOADING ) { reader . abort ( ) ; abortFlag = true ; //reader.dispose(); //setStatus( ERROR, "Cache Loading was stopped " + imageUrl.toString() ); //sourcePictureBufferedImage = null; // actually the thread reading the image continues } }
this method can be invoked to stop the current reader