|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectsears.file.SubtitleFile
sears.file.SrtFile
public class SrtFile
Class SrtFile.
Summary:
This class represent a srt subtitle file.
Specialize the SubtitleFile for srt type subtitles.
Field Summary |
---|
Fields inherited from class sears.file.SubtitleFile |
---|
END_OF_LINE, file, fileChanged, subtitleList, temporaryFile |
Constructor Summary | |
---|---|
SrtFile()
Constructor SrtFile. |
|
SrtFile(java.io.File file,
java.util.ArrayList<Subtitle> subtitleList)
Constructor SrtFile. |
|
SrtFile(java.lang.String file,
java.util.ArrayList<Subtitle> subtitleList)
Constructor SrtFile. |
Method Summary | |
---|---|
protected SubtitleFile |
getNewInstance()
Method getNewInstance. |
protected void |
parse()
Method parse. |
void |
writeToFile(java.io.File fileToWrite)
Method writeToFile. |
void |
writeToTemporaryFile()
Method writeToTemporaryFile. |
Methods inherited from class sears.file.SubtitleFile |
---|
accentRepair, addFakeSub, addSubtitle, addSubtitle, append, delay, delay, delay, fileChanged, getContentDirectory, getFile, getSubtitleAtDate, getSubtitles, getTemporaryFile, htmlRepair, isFileChanged, magicResynchro, normalizeDuration, normalizeDuration, orderRepair, resynchro, setFile, shiftToZero, split, stringToTime, timeRepair, timeToString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SrtFile()
public SrtFile(java.io.File file, java.util.ArrayList<Subtitle> subtitleList)
file
- The (File) to open.subtitleList
- The (ArrayList) List of subtitles.public SrtFile(java.lang.String file, java.util.ArrayList<Subtitle> subtitleList)
file
- The (String) path to file to open.subtitleList
- The (ArrayList) List of subtitles.Method Detail |
---|
protected void parse()
SubtitleFile
parse
in class SubtitleFile
public void writeToFile(java.io.File fileToWrite)
SubtitleFile
writeToFile
in class SubtitleFile
fileToWrite
- The File to write the file.public void writeToTemporaryFile()
SubtitleFile
writeToTemporaryFile
in class SubtitleFile
protected SubtitleFile getNewInstance()
SubtitleFile
getNewInstance
in class SubtitleFile
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |