X connection to localhost:10.0 broken (explicit kill or server shutdown).
X connection to localhost:10.0 broken (explicit kill or server shutdown). Starting RapidMiner using the non-GUI script named…
프로그램 개발 관련 각종 팁 모음
X connection to localhost:10.0 broken (explicit kill or server shutdown). Starting RapidMiner using the non-GUI script named…
1 2 3 |
package some.package;<br /><br />import java.io.BufferedInputStream;<br />import java.io.BufferedOutputStream;<br />import java.io.File;<br />import java.io.FileInputStream;<br />import java.io.FileOutputStream;<br />import java.io.FileNotFoundException;<br />import java.io.IOException;<br /><br />/**<br /> * This class contains static methods that perform <br />operations on files<br /> * Due to limitations of File objects across NFS mounted <br />filesystems<br /> * this class provides a workaround<br /> *<br /> */<br /><br />public final class FileUtils<br />{<br /> /** Private constructor to prevent instantiation.<br /> * All of the methods of this class are static.<br /> */<br /> private FileUtils()<br /> {<br /> //prevent instantiation;<br /> }<br /><br /> /** Copy a File<br /> * The renameTo method does not allow action across NFS <br />mounted filesystems<br /> * this method is the workaround<br /> *<br /> * @param fromFile The existing File<br /> * @param toFile The new File<br /> * @return <code>true</code> if and only if the renaming <br />succeeded;<br /> * <code>false</code> otherwise<br /> */<br /> public final static boolean copy (File fromFile, File toFile)<br /> {<br /> try<br /> {<br /> FileInputStream in = new FileInputStream(fromFile);<br /> FileOutputStream out = new FileOutputStream(toFile);<br /> BufferedInputStream inBuffer = new BufferedInputStream<br />(in);<br /> BufferedOutputStream outBuffer = new <br />BufferedOutputStream(out);<br /><br /> int theByte = 0;<br /><br /> while ((theByte = inBuffer.read()) > -1)<br /> {<br /> outBuffer.write(theByte);<br /> }<br /><br /> outBuffer.close();<br /> inBuffer.close();<br /> out.close();<br /> in.close();<br /><br /> // cleanupif files are not the same length<br /> if (fromFile.length() != toFile.length())<br /> {<br /> toFile.delete();<br /> <br /> return false;<br /> }<br /> <br /> return true;<br /> }<br /> catch (IOException e)<br /> {<br /> return false;<br /> }<br /> }<br /><br /> /** Move a File<br /> * The renameTo method does not allow action across NFS <br />mounted filesystems<br /> * this method is the workaround<br /> *<br /> * @param fromFile The existing File<br /> * @param toFile The new File<br /> * @return <code>true</code> if and only if the renaming <br />succeeded;<br /> * <code>false</code> otherwise<br /> */<br /> public final static boolean move (File fromFile, File toFile)<br /> {<br /> if(fromFile.renameTo(toFile))<br /> {<br /> return true;<br /> }<br /><br /> // delete if copy was successful, otherwise move will fail<br /> if (copy(fromFile, toFile))<br /> {<br /> return fromFile.delete();<br /> }<br /><br /> return false;<br /> }<br />}<br /><br /><br />http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4073756<br /> |
출처: http://www.chazzuka.com/blog/index.php?p=47&t=jquery-vs-prototype-javascript-framework.html
MySQL Migration Toolkit을 이용하여 MS Access에 있는 데이터를 옮기던 중에 다음과 같은 오류가 발생하였습니다. 2. Data Bulk…
.href 와 .repalce()는 모두 location의 하위객채로 브라우저에서 URL이동때 쓰인다. 그러나 쓰는 형태를 보면 알겠지만 .href 는 프로퍼티고,…
dspack 설치 후 아래와 같은 컴파일 에러가 날 경우 [Error] DirectShow9.pas(616): Undeclared identifier: ‘REFERENCE_TIME’ [Tools-Environment Options-Library]에서 아래…
1. jdbc 드라이버 파일 복사SQL Server 2005용 jdbc 드라이버 파일 sqljdbc.jar를 c:\Program Files\tomcat\common\lib\에 복사SQL Server 2000일 경우…
Indy9/10 델파이 버전별 자동 설치 프로그램http://www.atozed.com/indy/plus/files.en.aspx Indy9의 FTP 컴포넌트는 파일 크기와 관련된 변수의 타입이 Integer로 되어 있어…
SYMPTOMSWhile using the Microsoft SQL Server 2000 Driver for JDBC, you may experience the following exception:java.sql.SQLException: [Microsoft][SQLServer…