net.sourceforge.rssowl.util.shop
Class SimpleFileShop

java.lang.Object
  extended bynet.sourceforge.rssowl.util.shop.SimpleFileShop
Direct Known Subclasses:
FileShop

public class SimpleFileShop
extends Object

SimpleFileShop defines methods to copy a file into another

Version:
1.1.3
Author:
Benjamin Pasero

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(InputStream fis, OutputStream fos)
          Copy one file to another
static void copy(String src, 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

OP_ABORTED

public static final int OP_ABORTED
FileShop constant: Operation was aborted

See Also:
Constant Field Values

OP_FAILED

public static final int OP_FAILED
FileShop constant: Operation failed

See Also:
Constant Field Values

OP_SUCCESSFULL

public static final int OP_SUCCESSFULL
FileShop constant: Operation was successfull

See Also:
Constant Field Values
Constructor Detail

SimpleFileShop

protected SimpleFileShop()
This utility class constructor is protected

Method Detail

copy

public static void copy(InputStream fis,
                        OutputStream fos)
Copy one file to another

Parameters:
fis - The source stream
fos - The destination stream

copy

public static void copy(String src,
                        String dest)
                 throws IOException
Copy one file to another

Parameters:
src - The path of the sourcefile
dest - The path of the destinationfile
Throws:
IOException - In case of an IO Error


RSSOwl - RSS / RDF / Atom Newsreader

SourceForge.net Logo