(转载)File(File f, String child) 根据f 抽象路径名和 child 路径名字符串创建一个新 File 实例. f抽象路径名用于表示目录,child 路径名字符串用于表示目录或文件 f - 父抽象路径名 child - 子路径名字符串 File(String parent, String child) 根据 parent 路径名字符串和 child 路径名字符串创建一个新 File 实例. parent 路径名字符串用于表示目录,child 路径名字符串用于表示目录或文…
     面向对象编程就是面向抽象的父类进行编程,具体的实现不用考虑,由子类决定.<经典的说法--面向鸭子编程> eg:鸭子的编程,<对于多态的理解>     我们都习惯把使用两条腿两边走的动物,形象的叫做鸭子.这里我们的本来的鸭子就是父类(抽象类),继承且实现方法的叫做子类,就是我们把走路和鸭子一样的都叫做鸭子一样.(木头鸭子,橡皮鸭子,真实的鸭子). 接口:鸭子叫,鸭子游泳. //鸭子大叫 public interface IBark { void Bark(); } //鸭子…
String --> InputStreamByteArrayInputStream stream = new ByteArrayInputStream(str.getBytes()); InputStream --> StringString inputStream2String(InputStream is){   BufferedReader in = new BufferedReader(new InputStreamReader(is));   StringBuffer buffer…
Junit 注解 3).其它注意事项: 1).@Test运行的方法,不能有形参: 2).@Test运行的方法,不能有返回值: 3).@Test运行的方法,不能是静态方法: 4).在一个类中,可以同时定义多个@Test的测试方法: a)可以每个方法单独运行(在每个方法上点右键) b)也可以全部运行(在除测试方法的其它位置右键) 2..类加载器 1).类加载器:当我们执行某个类时,JVM会加载class文件,并产生Class对象. 不同的类,JVM会使用不同的"类加载器"去加载: 2).类…
错误: can not get file data of lua/start_v2.op [LUA ERROR] [string "require "lua/start_v2””]:1: module 'lua/start_v2' not found: no field package.preload['lua/start_v2'] no file ‘.XXX.lua' no file ‘XXX.lua' 出现原因: 使用Android studio编译成功之后,但是点开安装包闪退.原…
String --> InputStreamByteArrayInputStream stream = new ByteArrayInputStream(str.getBytes()); InputStream --> StringString inputStream2String(InputStream is){   BufferedReader in = new BufferedReader(new InputStreamReader(is));   StringBuffer buffer…
String --> InputStreamByteArrayInputStream stream = new ByteArrayInputStream(str.getBytes()); InputStream --> StringString inputStream2String(InputStream is){   BufferedReader in = new BufferedReader(new InputStreamReader(is));   StringBuffer buffer…
string str = File.ReadAllText(@"c:\temp\ascii.txt");…
how to write string to file in bash https://stackoverflow.com/questions/22713667/shell-script-how-to-write-a-string-to-file-and-to-stdout-on-console echo https://linux.die.net/man/1/echo $ touch readme.md # 追加 >> $ echo "hello world" >&…
public class File extends Object implements Serializable, Comparable<File> 构造方法: public File(String pathname) 按照完整路径实例化 public File(File parent, String child) 按照父路径和文件名实例化 成员: public static final String separator 目录分隔符 ('\'.'/'等) public static final…
public class FileKnow { public static void main(String[] args) { //构建file对象 ,参数表示文件所在的路径 File file = new File("d:\\niit.log"); //判断文件是否存在 System.out.println(file.exists()); //判断文件是否是单个的文件 System.out.println(file.isFile()); //判断文件是否是文件夹 System.ou…
读取以下两种格式的Excel : *.xls  and *.xlsx 用Apache POI API来实现,需要用到 HSSF 和 XSSF 的类库 HSSF is the POI Project's pure Java implementation of the Excel '97(-2007) (.xls) file format. XSSF is the POI Project's pure Java implementation of the Excel 2007 OOXML (.xls…
using System; using System.Text; using System.IO; using System.Security.Cryptography; namespace ConsoleApplication13 { class Program { static void Main(string[] args) { string imgPath1 = @"..\..\Images\lj.jpg"; string imgPath2 = @"..\..\Ima…
  @PostMapping("uploadExcel") public ResponseObj uploadExcel(@RequestParam("excelFile") MultipartFile file,@RequestParam("companyId") String companyId, @RequestParam("productId") String productId,HttpServletRequest…
File类概述:java.io.File类 文件和目录路径名的抽象表示形式 java把电脑中的文件和文件夹(目录)封账为了一个File类,我们可以使用File类对文件和文件夹进行操作 默认情况下,java.io 包中的类总是根据当前用户目录来解析相对路径名.此目录由系统属性 user.dir 指定,通常是 Java 虚拟机的调用目录 我们可以使用File类的方法 创建一个文件/文件夹 删除文件/文件夹 获取文件/文件夹 判断文件/文件夹 对文件夹进行遍历 获取文件的大小 File类是一个与系统无…
原文地址:http://www.cnblogs.com/fnng/p/4115607.html 作者:虫师 今天想在在win7 64位环境下使用python 操作mysql 在安装MySQL-python 时报错: _mysql.c _mysql.c(42) : fatal error C1083: Cannot open include file: 'config-win.h': No s uch file or directory error: command '"C:\Users\fnng…
今天想在在win7 64位环境下使用python 操作mysql 在安装MySQL-python 时报错: _mysql.c _mysql.c(42) : fatal error C1083: Cannot open include file: 'config-win.h': No s uch file or directory error: command '"C:\Users\fnngj\AppData\Local\Programs\Common\Microsoft\Visual C ++…
http://blog.csdn.net/shuilan0066/article/details/8738035 分类:            调试错误信息2013-03-29 19:08492人阅读评论(0)收藏举报 1 error BK1506 : cannot open file '.\Debug\????????.sbr': No such file or dire 解决方法: 从工程->设置->浏览信息->创建创建浏览信息的复选框的勾给去掉就行了 工程---属性---C/C--…
在执行commit或revert等操作时,提示“bad index file sha1 signature fatal: index file corrupt”错误,导致操作失败.这是由于git的index文件出错.需要删除.git/index文件,然后在仓库目录下运行git reset,重新生成index文件. git reset还可以删除已经commit,但未push上去的信息.…
今天打开了曾经用的一个项目,(曾经的程序是对的)弹出了两个红框 malformed or corrupted AST file...module file out of date'. 这种结构. 解决的办法是 CMD + Shift + K  (clear)清空 欢迎评论- -. 哈哈!…
adb pull /sdcard/1.txt e:/ 报错:adb: error: cannot create file/directory 'E:\': No such file or directory [处理方法:] 在e盘下新建一个文件夹123,将手机中的文件pull到123文件夹中,OK…
[root@pcidata-jenkins ansible_playbooks]# ps aux|grep rsyncroot      1799  0.0  0.0 114652   480 ?        Ss   Jun29   0:00 rsync --daemonroot     61754  0.0  0.0 112664   972 pts/2    S+   11:17   0:00 grep --color=auto rsync[root@pcidata-jenkins an…
一. db file parallel write等待事件 引自如下blog: http://oradbpedia.com/wiki/Wait_Events_-_db_file_parallel_write db文件并行写 db文件并行写等待事件属于Oracle数据库写入程序(DBWR)进程,因为它是将块从SGA写入数据文件的唯一进程.当是写入时,DBWR进程编译一组脏块,将批处理交给操作系统,并等待db文件并行写事件以完成I / O.虽然用户会话从来没有遇到db文件并行写等待事件,但这并不意味…
zipfile.BadZipFile: File is not a zip file 出现这个问题一般是文件损坏的可能性比较大…
一.问题 系统:win7 64位 在下载MySQL-python-1.2.5.zip,使用python setup.py install 安装时,出现以下报错: _mysql.c(42) : fatal error C1083: Cannot open include file: 'config-win.h': No such file or directory error: command 'C:\\Users\\qinwanxia\\AppData\\Local\\Programs\\Com…
在把library上传到bintray空间的时候报以下错误 Could not upload to 'https://api.bintray.com/content/ping/maven/comm-adapter/0.0.1/com/ping/adapter/commadapter/commadapter/0.0.1/commadapter-0.0.1.pom': HTTP/1.1 400 Bad Request [message:Unable to upload files: Maven gr…
1:错误日志 java.lang.RuntimeException: Unable to start activity ComponentInfo{com.8.activity.RecordActivity}: android.view.InflateException: Binary XML file line #167: Binary XML file line #167: Error inflating class <unknown> at android.app.ActivityThr…
今天数据库在查询数据的时候显示了这个错误: ORA-01157: cannot identify/lock data file 201 - see DBWR trace file ORA-01110: data file 201: '/u01/app/oracle/oradata/ORA11GR2/temp01.dbf' ---查看临时表空间 SYS@GOOD> select FILE_NAME, TABLESPACE_NAME from dba_temp_files; select FILE_…
error:  #5: cannot open source input file "spi.h": No such file or directory 1.出现这种问题,首先要确认头文件的命名要与文件名一致,如下: #ifndef _SPI_H #define _SPI_H #endif 2.添加路径,问题即可解决 3.确认OK,编译,问题解决!…
用Visual Studio2015 编译时,遇到如下编译错误: error C2220: warning treated as error - no 'object' file generated warning C4819: The file contains a character that cannot be represented in the current code page (936). Save the file in Unicode format to prevent dat…