其实这里用到的是对象序列化
FileOutputStream fos = new FileOutputStream("E:/电路业务侧信息导入模板.xls");
ByteArrayOutputStream bos = new ByteArrayOutputStream();
ObjectOutputStream oos = new ObjectOutputStream(bos);
String fosStr = fos.toString();
System.out.println(fosStr);
oos.writeObject(fosStr);
byte[] bytes = bos.toByteArray();
ByteArrayInputStream bis = new ByteArrayInputStream(bytes);
ObjectInputStream ois = new ObjectInputStream(bis);
System.out.println(ois.readObject().toString());
FileInputStream fis = new FileInputStream(ois.readObject().toString());
System.out.println(fis.toString());