org.jtheque.core.utils.file.jt.able
Interface IJTFileWriter

All Known Implementing Classes:
JTDFileWriter, JTFileWriter, JTZippedFileWriter

public interface IJTFileWriter

Cette interface permet de généraliser les writer de fichier JTheque.

Author:
Baptiste Wicht

Method Summary
 void writeFile(java.io.BufferedOutputStream stream, BasicDataSource source)
          Write a JT file to a stream.
 void writeFile(java.io.File file, BasicDataSource source)
          Write a JT file to a File object.
 void writeFile(java.io.FileOutputStream stream, BasicDataSource source)
          Write a JT file to a stream.
 void writeFile(java.lang.String path, BasicDataSource source)
          Write a JT file to a file path.
 

Method Detail

writeFile

void writeFile(java.io.File file,
               BasicDataSource source)
               throws org.jtheque.utils.io.FileException
Write a JT file to a File object.

Parameters:
file - The file to write to.
source - The datasource.
Throws:
org.jtheque.utils.io.FileException - Throws when an error occurs during the writing process.

writeFile

void writeFile(java.lang.String path,
               BasicDataSource source)
               throws org.jtheque.utils.io.FileException
Write a JT file to a file path.

Parameters:
path - The path of the file to write to.
source - The datasource.
Throws:
org.jtheque.utils.io.FileException - Throws when an error occurs during the writing process.

writeFile

void writeFile(java.io.FileOutputStream stream,
               BasicDataSource source)
               throws org.jtheque.utils.io.FileException
Write a JT file to a stream.

Parameters:
stream - The stream to write to.
source - The datasource.
Throws:
org.jtheque.utils.io.FileException - Throws when an error occurs during the writing process.

writeFile

void writeFile(java.io.BufferedOutputStream stream,
               BasicDataSource source)
               throws org.jtheque.utils.io.FileException
Write a JT file to a stream.

Parameters:
stream - The stream to write to.
source - The datasource.
Throws:
org.jtheque.utils.io.FileException - Throws when an error occurs during the writing process.


Copyright © 2009 JTheque. All Rights Reserved.