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

java.lang.Object
  extended by org.jtheque.core.utils.file.jt.JTFileWriter
All Implemented Interfaces:
IJTFileWriter
Direct Known Subclasses:
JTDFileWriter

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

A writer for JT File.

Author:
Baptiste Wicht

Constructor Summary
JTFileWriter()
           
 
Method Summary
 void writeFile(java.io.BufferedOutputStream stream, BasicDataSource source)
          Write a JT file to a stream.
abstract  void writeFile(java.io.DataOutputStream 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JTFileWriter

public JTFileWriter()
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.

writeFile

public final void writeFile(java.io.BufferedOutputStream 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.

writeFile

public abstract void writeFile(java.io.DataOutputStream 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.