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

All Known Implementing Classes:
JTDFileReader, JTFileReader

public interface IJTFileReader

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

Author:
Baptiste Wicht

Method Summary
 JTFile readFile(java.io.BufferedInputStream stream)
          Read a JT File from a stream.
 JTFile readFile(java.io.File file)
          Read a JT File from a File object.
 JTFile readFile(java.io.FileInputStream stream)
          Read a JT File from a stream.
 JTFile readFile(java.lang.String path)
          Read a JT File from a filepath.
 

Method Detail

readFile

JTFile readFile(java.io.File file)
                throws org.jtheque.utils.io.FileException
Read a JT File from a File object.

Parameters:
file - The file to read from.
Returns:
The JT File.
Throws:
org.jtheque.utils.io.FileException - Throws when an error occurs during the reading.

readFile

JTFile readFile(java.lang.String path)
                throws org.jtheque.utils.io.FileException
Read a JT File from a filepath.

Parameters:
path - The path to the file to read from.
Returns:
The JT File.
Throws:
org.jtheque.utils.io.FileException - Throws when an error occurs during the reading.

readFile

JTFile readFile(java.io.FileInputStream stream)
                throws org.jtheque.utils.io.FileException
Read a JT File from a stream.

Parameters:
stream - The stream to read from.
Returns:
The JT File.
Throws:
org.jtheque.utils.io.FileException - Throws when an error occurs during the reading.

readFile

JTFile readFile(java.io.BufferedInputStream stream)
                throws org.jtheque.utils.io.FileException
Read a JT File from a stream.

Parameters:
stream - The stream to read from.
Returns:
The JT File.
Throws:
org.jtheque.utils.io.FileException - Throws when an error occurs during the reading.


Copyright © 2009 JTheque. All Rights Reserved.