|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sourceforge.rssowl.util.shop.SimpleFileShop
public class SimpleFileShop
SimpleFileShop defines methods to copy a file into another
| Field Summary | |
|---|---|
static int |
OP_ABORTED
FileShop constant: Operation was aborted |
static int |
OP_FAILED
FileShop constant: Operation failed |
static int |
OP_SUCCESSFULL
FileShop constant: Operation was successfull |
| Constructor Summary | |
|---|---|
protected |
SimpleFileShop()
This utility class constructor is protected |
| Method Summary | |
|---|---|
static void |
copy(java.io.File src,
java.io.File dest)
Copy one file to another |
static void |
copy(java.io.InputStream fis,
java.io.OutputStream fos)
Copy one file to another |
static void |
copy(java.lang.String src,
java.lang.String dest)
Copy one file to another |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int OP_ABORTED
public static final int OP_FAILED
public static final int OP_SUCCESSFULL
| Constructor Detail |
|---|
protected SimpleFileShop()
| Method Detail |
|---|
public static void copy(java.io.InputStream fis,
java.io.OutputStream fos)
fis - The source streamfos - The destination stream
public static void copy(java.lang.String src,
java.lang.String dest)
throws java.io.IOException
src - The path of the sourcefiledest - The path of the destinationfile
java.io.IOException - In case of an IO Error
public static void copy(java.io.File src,
java.io.File dest)
throws java.io.IOException
src - The sourcefiledest - The destinationfile
java.io.IOException - In case of an IO Error
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||