) {output.write (in); Inch=Input.read (); } input.close (); Output.close (); } Else { if(compresstype==1) {//135*90--90*135 if((float) (Old_w/old_h) //3:4 at this time for 90:135//if the original image is smaller than the diagram you want to compress, do not compress if(Old_w new_w2) {Width=Old_w; } Else{width=new_w2; } if(Old_h new_h2) {Height=Old_h; } Else{Hei
Recently free time to tidy up a commonly used tools, repeating the wheel is a waste of time, if not correct or need to improve the place, welcome advice ... Packagecom.hsuchan.business.utils;ImportJava.io.File;ImportJava.io.FileOutputStream;Importjava.io.IOException;ImportJava.io.InputStream;ImportJava.net.URL;Importjava.util.Properties;ImportOrg.apache.log4j.Logger;/*** Java Properties File Operations Tool
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.