# Development-Java-Tools **Repository Path**: nixs/Development-Java-Tools ## Basic Information - **Project Name**: Development-Java-Tools - **Description**: Development Java Tools,java开发tools及示例程序 - **Primary Language**: Java - **License**: Apache-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2016-06-13 - **Last Updated**: 2020-12-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README ![加菲猫](http://pic.cnblogs.com/avatar/614759/20150806155546.png) ## Development-Java-Tools ———Development Java Tools,java开发tools及示例程序 ###1.fastjson * Intellij IDEA maven工程 junit junit 3.8.1 test com.alibaba fastjson 1.2.4 ####2.DocumentReadToString /* 按字节读取字符串 */ /* 个人感觉最好的方式,(一次读完)读字节就读字节吧,读完转码一次不就好了 */ /** * @Desc 按照指定路径以utf-8读取文件,返回文件内容. * Created by nixinsheng on 16/5/18 | 上午11:11. * * public static String readToString(String FILE_IN) */ ###3.StringToTime /** * String 类型转换成 Time类型 * * @param dateString * @return * * public final static java.sql.Timestamp string2Time(String dateString) */ ###4.ShellUtils /////////////////////兼容Linux/Unix/Android adb shell///////////////////////////////////////// System.out.println("******执行命令行开始******"); String[] cmds = {"cd /Users/nixinsheng/","pwd","ls -la"}; System.out.println(ShellUtils.execCommand(cmds,false,true).successMsg); ###注意:(2016-05-25)String[] cmds里命令一起使用,但是执行顺序有待验证; ![Result](https://github.com/wvqusrtg/Development-Java-Tools/blob/master/%E6%88%AA%E5%9B%BE%E8%AE%B0%E5%BD%95/ShellUtils1.gif?raw=true) ![Result2](https://github.com/wvqusrtg/Development-Java-Tools/blob/master/%E6%88%AA%E5%9B%BE%E8%AE%B0%E5%BD%95/ShellUtils2.gif?raw=true) ##关于作者 ```javascript Name:nixs(倪新生) E-mail:1911398892@qq.com Company:Asiainfo Blog:http://www.cnblogs.com/wvqusrtg ```