org.jtheque.core.utils.file.jt.impl
Class JTDFile

java.lang.Object
  extended by org.jtheque.core.utils.file.jt.impl.JTDFile
All Implemented Interfaces:
JTFile, JTNotZippedFile

public final class JTDFile
extends java.lang.Object
implements JTNotZippedFile

Cette classe réprésente un fichier JTD et toutes ses caractèristiques.

Author:
Baptiste Wicht

Constructor Summary
JTDFile()
          Construct a new JTDFile.
 
Method Summary
 AbstractJTFileHeader getHeader()
          Return the header of the file.
 java.io.DataInputStream getStream()
          Return the strem to the file.
 boolean isCorrectSeparators()
          Set if the file has the correct separators or not.
 boolean isValid()
          Indicate if the file is valid.
 void setCorrectSeparators(boolean correctSeparators)
          Set if the file has the correct separators or not.
 void setStream(java.io.DataInputStream stream)
          Set the stream.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JTDFile

public JTDFile()
Construct a new JTDFile.

Method Detail

getHeader

public AbstractJTFileHeader getHeader()
Description copied from interface: JTNotZippedFile
Return the header of the file.

Specified by:
getHeader in interface JTNotZippedFile
Returns:
The JT Header.

getStream

public java.io.DataInputStream getStream()
Return the strem to the file.

Returns:
The stream to the file.

setStream

public void setStream(java.io.DataInputStream stream)
Set the stream.

Parameters:
stream - The stream to the file.

isValid

public boolean isValid()
Description copied from interface: JTFile
Indicate if the file is valid.

Specified by:
isValid in interface JTFile
Returns:
true if the file is valid else false.

setCorrectSeparators

public void setCorrectSeparators(boolean correctSeparators)
Description copied from interface: JTNotZippedFile
Set if the file has the correct separators or not.

Specified by:
setCorrectSeparators in interface JTNotZippedFile
Parameters:
correctSeparators - true if the file has correct separators else false.

isCorrectSeparators

public boolean isCorrectSeparators()
Description copied from interface: JTNotZippedFile
Set if the file has the correct separators or not.

Specified by:
isCorrectSeparators in interface JTNotZippedFile
Returns:
true if the file has correct separators else false.


Copyright © 2009 JTheque. All Rights Reserved.