摘要: 工具类: 调用接口: controller 调用方法代码: 阅读全文
posted @ 2015-10-16 17:05 Smile_灰太狼 阅读(411) 评论(0) 推荐(0) 编辑
摘要: package com.school.util;import java.awt.Graphics;import java.awt.Image;import java.awt.image.BufferedImage;import java.io.File;import java.io.IOExcept... 阅读全文
posted @ 2015-06-26 18:17 Smile_灰太狼 阅读(1720) 评论(0) 推荐(0) 编辑
摘要: public static void main(String[]args) throws IOException{ String path = "E:/图片/111.jpg"; //图片地址 File file = new File... 阅读全文
posted @ 2015-06-26 17:58 Smile_灰太狼 阅读(11616) 评论(0) 推荐(0) 编辑
摘要: import java.awt.image.BufferedImage; import java.io.ByteArrayInputStream; import java.io.ByteArrayOutputStream; import java.io.File; ... 阅读全文
posted @ 2015-06-26 13:13 Smile_灰太狼 阅读(2958) 评论(0) 推荐(0) 编辑
摘要: 1、序列化是干什么的? 简单说就是为了保存在内存中的各种对象的状态,并且可以把保存的对象状态再读出来。虽然你可以用你自己的各种各样的方法来保存Object States,但是Java给你提供一种应该比你自己好的保存对象状态的机制,那就是序列化。 2、什么情况下需要序列化 a)当你想把的内存中的对象保 阅读全文
posted @ 2015-06-16 16:55 Smile_灰太狼 阅读(27624) 评论(0) 推荐(6) 编辑