TheStreamThumbnailTaskandFileThumbnailTaskclasses have had theirwritemethods modified to throw theUnsupportedFormatExceptionand not return abooleanon return. AddedThumbnailator.createThumbnail(InputStream, OutputStream, String, int, int)which can be used to specify the format to use for the output data....
{thrownewIllegalArgumentException("Cannot set the format type if a specific output "+"format has not been specified."); }if(!ThumbnailatorUtils.isSupportedOutputFormatType(outputFormat, formatType)) {thrownewIllegalArgumentException("Specified format type ("+ formatType +") is not "...
main java/net/coobird/thumbnailator builders filters geometry makers name resizers tasks util ThumbnailParameter.java Thumbnailator.java Thumbnails.java package-info.java resources test .gitattributes .gitignore LICENSE README.md pom.xml Latest commit ...
*@throwsIllegalArgumentException If an unsupported format is * specified. */publicBuilder<T>outputFormat(String format){if(!ThumbnailatorUtils.isSupportedOutputFormat(format)) {thrownewIllegalArgumentException("Specified format is not supported: "+ format ); } updateStatus(Properties.OUTPUT_...
示例1: isSupportedOutputFormat_SupportedFormat ▲点赞 2▼ importnet.coobird.thumbnailator.util.ThumbnailatorUtils;//导入依赖的package包/类@TestpublicvoidisSupportedOutputFormat_SupportedFormat(){// given a supported formatString format ="JPEG";// whenbooleanisSupported =ThumbnailatorUtils.isSupportedOutputFor...
TheStreamThumbnailTaskandFileThumbnailTaskclasses have had theirwritemethods modified to throw theUnsupportedFormatExceptionand not return abooleanon return. AddedThumbnailator.createThumbnail(InputStream, OutputStream, String, int, int)which can be used to specify the format to use for the output data....