About File Copy Class

Hi,I am wondering if there is a direct file copy class in the JDK.In my memory,there is one,but what is the name?or I have a bad memory?
[164 byte] By [lgylym@gmail.coma] at [2007-11-27 4:37:49]
# 1
No there is not class that does this in the base JDK.What does this have to do with Swing?
camickra at 2007-7-12 9:48:09 > top of Java-index,Desktop,Core GUI APIs...
# 2
Sorry,I' m afraid I speak in a wrong forum...
lgylym@gmail.coma at 2007-7-12 9:48:09 > top of Java-index,Desktop,Core GUI APIs...
# 3

this is code i have used before and it works quite well, and fast

try

{

FileChannel in = new FileInputStream("file location").getChannel();

FileChannel out = new FileOutputStream("file location").getChannel();

in.transferTo(0, in.size(), out);

in.close();

out.close();

}catch(Exception e){

status.setText("Could not Back Up data base.");

}

Nibura at 2007-7-12 9:48:09 > top of Java-index,Desktop,Core GUI APIs...