question: public static boolean isAttachment ( String contentDisposition ) { return contentDisposition != null && contentDisposition . regionMatches ( true , 0 , "attachment" , 0 , 10 ) ; }
target:  Returns true if the download meant to be treated as an attachment.