package com.fh.controller.ruitai.util;

import java.io.BufferedInputStream;
import java.io.File;
import java.io.FileInputStream; public class TomcatUtil {
/**
* @Description 读取文件
* @author 张洋.
* @date
* @return
* @throws ExceptionFile
*/
public static String GetIdentified() throws Exception { //
File f = new File(TomcatUtil.class.getClassLoader().getResource("tomcatdentified.txt").getPath().replaceAll("%20", " "));
FileInputStream input = new FileInputStream(f);
BufferedInputStream buf = new BufferedInputStream(input);
byte[] b = new byte[(int) f.length()];
input.read(b);
input.close();
String identified=new String(b);
return identified;
}
public static void main(String[] args) {
try {
GetIdentified();
} catch (Exception e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
}
}

最新文章

  1. paip.信用卡账单处理分类bug o21
  2. js设置输入框失去光标与光标选中时样式
  3. sh脚本学习之: sh脚本 、sed、awk
  4. PDO 查询mysql返回字段整型变为String型解决方法
  5. 为什么我要称自己为Javascript程序员
  6. [设计模式]<<设计模式之禅>>之关于单一职责原则
  7. 教程-for do、while do 中循环退出
  8. Help View修复
  9. RxJava使用场景小结
  10. 关于ios8斯坦福公开课第二课
  11. 【linux】 Makefile之make menuconfig /uImage
  12. RMAN duplicate from active 时遭遇 ORA-17627 ORA-12154
  13. scala map
  14. [笔记]使用Keepalived实现Nginx主从热备
  15. CentOS 7 实现zabbix agent 自动添加,并链接到指定的模版
  16. sublime快捷方式
  17. WordPress 本地建站
  18. jdbctemplate 获取数据表结构的方法&注意事项
  19. vue + vue-router+vuex+elementUI开发环境搭建
  20. what's the 二叉树

热门文章

  1. BZOJ2194:快速傅立叶之二(FFT)
  2. LeNet 分类 FashionMNIST
  3. c#根据当前时间获取本周,本月,本年度等时间段和DateTime日期格式化
  4. Codeforces Round #533 (Div. 2) C. Ayoub and Lost Array 【dp】
  5. MyBatis动态sql语句归纳
  6. fastTime格式化时间
  7. MVC学习十:MVC 特性作用和MVC 验证
  8. Visual Studio 中常用的快捷键
  9. 协议类接口 - SPI
  10. js中哪些值会被认为false?