FileDocCategorySizeDatePackage
CopyExample.javaAPI DocExample1427Wed May 18 09:39:00 BST 2005com.discursive.jccook.io

CopyExample

public class CopyExample extends Object

Fields Summary
Constructors Summary
Methods Summary
public static voidmain(java.lang.String[] args)

		new CopyExample().start();
	
public voidstart()

		try {
			Writer writer = new FileWriter( "test.dat" );
			InputStream inputStream = 
				getClass().getResourceAsStream("./test.resource");
			CopyUtils.copy( inputStream, writer );
			writer.close();
			inputStream.close();
		} catch (IOException e) {
			System.out.println( "Error copying data" );
		}