Code example for StringBuilder

Methods: append, toString

0
					iStream = archive.getItemInputStream(coverPath);
					bmp = BitmapFactory.decodeStream(iStream,null,bmpOption);
					 
					//.................................... 
					//Save bitmap to file 
					File file = new File(mCachePath + fileID + ".jpg");
					FileOutputStream out = new FileOutputStream(file);
					bmp.compress(Bitmap.CompressFormat.JPEG,70,out);
 
					//.................................... 
					out.close();
					bmp.recycle(); bmp = null;
					 
					rtn = true;
				}catch(Exception e){
					System.err.println("Error creating thumb " + e.getMessage());
					if(bmp != null){ bmp.recycle(); bmp = null; }//if
				}//try 
				 
				if(iStream != null){
					try{ iStream.close(); }catch(Exception e){}