|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jtheque.core.utils.file.jt.JTFileReader
public abstract class JTFileReader
A reader for JT Files.
Constructor Summary | |
---|---|
JTFileReader()
|
Method Summary | |
---|---|
JTFile |
readFile(java.io.BufferedInputStream stream)
Read a JT File from a stream. |
abstract JTFile |
readFile(java.io.DataInputStream stream)
Read a JT File. |
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public JTFileReader()
Method Detail |
---|
public final JTFile readFile(java.io.File file) throws org.jtheque.utils.io.FileException
IJTFileReader
readFile
in interface IJTFileReader
file
- The file to read from.
org.jtheque.utils.io.FileException
- Throws when an error occurs during the reading.public final JTFile readFile(java.lang.String path) throws org.jtheque.utils.io.FileException
IJTFileReader
readFile
in interface IJTFileReader
path
- The path to the file to read from.
org.jtheque.utils.io.FileException
- Throws when an error occurs during the reading.public final JTFile readFile(java.io.FileInputStream stream) throws org.jtheque.utils.io.FileException
IJTFileReader
readFile
in interface IJTFileReader
stream
- The stream to read from.
org.jtheque.utils.io.FileException
- Throws when an error occurs during the reading.public final JTFile readFile(java.io.BufferedInputStream stream) throws org.jtheque.utils.io.FileException
IJTFileReader
readFile
in interface IJTFileReader
stream
- The stream to read from.
org.jtheque.utils.io.FileException
- Throws when an error occurs during the reading.public abstract JTFile readFile(java.io.DataInputStream stream) throws org.jtheque.utils.io.FileException
stream
- The data input stream to read from.
org.jtheque.utils.io.FileException
- Throws when the file is corrupted.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |