org.jtheque.core.utils.file.jt
Class JTZippedFileWriter

java.lang.Object
  extended by org.jtheque.core.utils.file.jt.JTZippedFileWriter
All Implemented Interfaces:
IJTFileWriter

public abstract class JTZippedFileWriter
extends java.lang.Object
implements IJTFileWriter

A writer for JT zipped file.

Author:
Baptiste Wicht

Constructor Summary
JTZippedFileWriter()
           
 
Method Summary
 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.jtheque.core.utils.file.jt.able.IJTFileWriter
writeFile
 

Constructor Detail

JTZippedFileWriter

public JTZippedFileWriter()
Method Detail

writeFile

public final void writeFile(java.io.File file,
                            BasicDataSource source)
                     throws org.jtheque.utils.io.FileException
Description copied from interface: IJTFileWriter
Write a JT file to a File object.

Specified by:
writeFile in interface IJTFileWriter
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

public final void writeFile(java.lang.String path,
                            BasicDataSource source)
                     throws org.jtheque.utils.io.FileException
Description copied from interface: IJTFileWriter
Write a JT file to a file path.

Specified by:
writeFile in interface IJTFileWriter
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

public final void writeFile(java.io.FileOutputStream stream,
                            BasicDataSource source)
                     throws org.jtheque.utils.io.FileException
Description copied from interface: IJTFileWriter
Write a JT file to a stream.

Specified by:
writeFile in interface IJTFileWriter
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.