|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.lang.Thread
org.ath.converters.ScriptLineCounter
public class ScriptLineCounter
| Nested Class Summary | |
|---|---|
static class |
ScriptLineCounter.FileFormats
Enumeration of the file formats supported. |
static class |
ScriptLineCounter.InputFileState
Enumeration of the supported input file types that also returns the corresponding file extension. |
static class |
ScriptLineCounter.OutputFileState
Enumeration of the supported output file types that also returns the corresponding file extension. |
| Nested classes/interfaces inherited from class java.lang.Thread |
|---|
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler |
| Field Summary | |
|---|---|
static java.lang.String |
APP_NAME
|
static java.lang.String |
APP_VERSION
|
| Fields inherited from class java.lang.Thread |
|---|
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
| Constructor Summary | |
|---|---|
ScriptLineCounter()
Default Constructor |
|
ScriptLineCounter(ScriptLineCounter origin)
Copy Constructor. |
|
| Method Summary | |
|---|---|
void |
addCharacterMapping(java.lang.String character,
java.lang.String mapping)
Add a new character mapping set |
void |
addIgnoreCharacter(java.lang.String character)
Add to ignore list, stored in lowercase. |
ScriptLineCounter.FileFormats |
getActiveFileFormat()
|
java.lang.String |
getACTOR_TITLE()
|
int |
getCHARACTER_MAX_PARTS()
|
java.lang.String |
getCHARACTER_TITLE()
|
java.util.List<java.lang.String> |
getCharacterIgnore()
|
java.util.SortedMap<java.lang.String,java.lang.String> |
getCharacterMapping()
|
java.util.Map<java.lang.String,java.lang.String> |
getCharacterNames()
|
java.lang.String |
getCSV_COLUMN_NAME()
|
java.lang.String |
getCSV_COLUMN_TEXT()
|
int |
getCSV_SKIP_LINES()
|
java.lang.String |
getDbgfile()
|
int |
getDbglevel()
|
int |
getDetectLines()
|
java.lang.String |
getDirectory()
|
java.lang.String |
getEncoding()
|
java.lang.String |
getEPISODE_TITLE()
|
java.util.SortedMap<java.lang.Integer,Episode> |
getEpisodes()
|
java.lang.String |
getExcelfile()
|
static java.lang.String |
getExceptionMsg(java.lang.Exception exception)
Convert an exception into a string |
java.lang.String |
getEXTRAINFO_TITLE()
|
java.lang.String |
getEXTRANAMES_TITLE()
|
java.lang.String |
getFileFilter()
|
SLCGui |
getGui()
|
java.lang.String |
getIGNOREDNAMES_TITLE()
|
java.lang.String |
getMatch()
|
java.lang.String |
getPassword()
|
java.lang.String |
getTOTAL_TITLE()
|
boolean |
isAlternateLines()
|
boolean |
isConsoleMode()
|
boolean |
isConsoleVerbose()
|
boolean |
isCountSeparateLines()
|
boolean |
isDbg()
|
boolean |
isDisplayZero()
|
boolean |
isEncodingIsSet()
|
boolean |
isExcelExtra()
|
boolean |
isGuiMode()
|
boolean |
isIgnoreCharacter(java.lang.String character)
Check to see if this is an ignored character. |
boolean |
isIgnoreMinimal()
|
boolean |
isIncludeReacts()
|
boolean |
isNoConsole()
|
boolean |
isOutputContent()
|
boolean |
isRunning()
|
boolean |
isSortedByLines()
|
boolean |
isSortedByName()
|
void |
run()
Main entry-point. |
void |
setActiveFileFormat(ScriptLineCounter.FileFormats fileFormats)
|
void |
setActiveFileFormat(java.lang.String newFileFormat)
Usable names: 0 .. 4 (and up to the matching name of the FileFormats enumeration) |
void |
setACTOR_TITLE(java.lang.String ACTOR_TITLE)
|
void |
setAlternateLines(boolean alternateLines)
|
void |
setCHARACTER_MAX_PARTS(int cHARACTER_MAX_PARTS)
|
void |
setCHARACTER_TITLE(java.lang.String CHARACTER_TITLE)
|
void |
setCharacterName(java.lang.String characterName,
java.lang.String actorName)
|
void |
setConsoleMode(boolean consoleMode)
|
void |
setConsoleVerbose(boolean consoleVerbose)
|
void |
setCountSeparateLines(boolean countSeparateLines)
|
void |
setCSV_COLUMN_NAME(java.lang.String cSV_COLUMN_NAME)
|
void |
setCSV_COLUMN_TEXT(java.lang.String cSV_COLUMN_TEXT)
|
void |
setCSV_SKIP_LINES(int cSV_SKIP_LINES)
|
void |
setDbg(boolean dbg)
|
void |
setDbgfile(java.lang.String dbgfile)
|
void |
setDbglevel(int dbglevel)
|
void |
setDetectLines(int detectLines)
|
void |
setDirectory(java.lang.String directory)
|
void |
setDisplayZero(boolean displayZero)
|
void |
setEncoding(java.lang.String encoding)
|
void |
setEncodingIsSet(boolean encodingIsSet)
|
void |
setEPISODE_TITLE(java.lang.String EPISODE_TITLE)
|
void |
setExcelExtra(boolean excelExtra)
|
void |
setExcelfile(java.lang.String excelfile)
|
void |
setEXTRAINFO_TITLE(java.lang.String eXTRAINFO_TITLE)
|
void |
setEXTRANAMES_TITLE(java.lang.String eXTRANAMES_TITLE)
|
void |
setFileFilter(java.lang.String fileFilter)
|
void |
setGui(SLCGui gui)
|
void |
setGuiMode(boolean guiMode)
|
void |
setIGNOREDNAMES_TITLE(java.lang.String iGNOREDNAMES_TITLE)
|
void |
setIgnoreMinimal(boolean ignoreMinimal)
|
void |
setIncludeReacts(boolean includeReacts)
|
void |
setMatch(java.lang.String match)
|
void |
setNoConsole(boolean noConsole)
|
void |
setOutputContent(boolean outputContent)
|
void |
setPassword(java.lang.String password)
|
void |
setSortedByLines(boolean linesSorted)
|
void |
setSortedByName(boolean nameSorted)
|
void |
setTOTAL_TITLE(java.lang.String TOTAL_TITLE)
|
static java.lang.String |
StrRepeat(java.lang.String str,
int repeats)
Repeat a string a few times |
void |
writeErrorLog(java.lang.String msg)
Write an error message to the console (if quiet isn't set) and also to the log, if enabled. |
void |
writeLogLine(int level,
java.lang.String msg)
Write a log line if the debug-level is at least level. |
void |
writeLogLine(java.lang.String msg)
Write a time-stamped message to the log file, if the name is know and debugging is enabled. |
| Methods inherited from class java.lang.Thread |
|---|
activeCount, checkAccess, clone, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String APP_NAME
public static final java.lang.String APP_VERSION
| Constructor Detail |
|---|
public ScriptLineCounter()
public ScriptLineCounter(ScriptLineCounter origin)
origin - | Method Detail |
|---|
public void run()
run in interface java.lang.Runnablerun in class java.lang.Thread
public static java.lang.String StrRepeat(java.lang.String str,
int repeats)
str - the inputrepeats - this number of times
public static java.lang.String getExceptionMsg(java.lang.Exception exception)
exception - an exception to convert into a message
public void writeErrorLog(java.lang.String msg)
msg - The messagepublic void writeLogLine(java.lang.String msg)
msg - The message
public void writeLogLine(int level,
java.lang.String msg)
level - the level to trigger atmsg - the message to logpublic boolean isDbg()
public void setDbg(boolean dbg)
dbg - the dbg to setpublic java.lang.String getDbgfile()
public void setDbgfile(java.lang.String dbgfile)
dbgfile - the dbgfile to setpublic int getDbglevel()
public void setDbglevel(int dbglevel)
dbglevel - the debug level to setpublic java.util.SortedMap<java.lang.Integer,Episode> getEpisodes()
public boolean isIncludeReacts()
public void setIncludeReacts(boolean includeReacts)
includeReacts - the includeReacts to setpublic boolean isConsoleMode()
public void setConsoleMode(boolean consoleMode)
consoleMode - the consoleMode to setpublic boolean isConsoleVerbose()
public void setConsoleVerbose(boolean consoleVerbose)
consoleVerbose - the consoleVerbose to setpublic boolean isNoConsole()
public void setNoConsole(boolean noConsole)
noConsole - the noConsole to setpublic java.lang.String getExcelfile()
public void setExcelfile(java.lang.String excelfile)
excelfile - the excelfile to setpublic boolean isGuiMode()
public void setGuiMode(boolean guiMode)
guiMode - the guiMode to setpublic SLCGui getGui()
public void setGui(SLCGui gui)
gui - the gui to setpublic java.lang.String getDirectory()
public void setDirectory(java.lang.String directory)
directory - the directory to setpublic java.lang.String getMatch()
public void setMatch(java.lang.String match)
match - the match to setpublic boolean isSortedByLines()
public void setSortedByLines(boolean linesSorted)
linesSorted - the linesSorted to setpublic boolean isSortedByName()
public void setSortedByName(boolean nameSorted)
nameSorted - the nameSorted to setpublic java.lang.String getFileFilter()
public void setFileFilter(java.lang.String fileFilter)
fileFilter - the fileFilter to setpublic boolean isAlternateLines()
public void setAlternateLines(boolean alternateLines)
alternateLines - the alternateLines to setpublic boolean isDisplayZero()
public void setDisplayZero(boolean displayZero)
displayZero - the displayZero to setpublic int getDetectLines()
public void setDetectLines(int detectLines)
detectLines - the detectLines to setpublic boolean isRunning()
public java.lang.String getCHARACTER_TITLE()
public void setCHARACTER_TITLE(java.lang.String CHARACTER_TITLE)
CHARACTER_TITLE - the CHARACTER_TITLE to setpublic java.lang.String getACTOR_TITLE()
public void setACTOR_TITLE(java.lang.String ACTOR_TITLE)
ACTOR_TITLE - the ACTOR_TITLE to setpublic java.lang.String getEPISODE_TITLE()
public void setEPISODE_TITLE(java.lang.String EPISODE_TITLE)
EPISODE_TITLE - the EPISODE_TITLE to setpublic java.lang.String getTOTAL_TITLE()
public void setTOTAL_TITLE(java.lang.String TOTAL_TITLE)
TOTAL_TITLE - the tOTAL_TITLE to setpublic java.lang.String getEXTRAINFO_TITLE()
public void setEXTRAINFO_TITLE(java.lang.String eXTRAINFO_TITLE)
eXTRAINFO_TITLE - the eXTRAINFO_TITLE to setpublic java.lang.String getEXTRANAMES_TITLE()
public void setEXTRANAMES_TITLE(java.lang.String eXTRANAMES_TITLE)
eXTRANAMES_TITLE - the eXTRANAMES_TITLE to setpublic java.lang.String getIGNOREDNAMES_TITLE()
public void setIGNOREDNAMES_TITLE(java.lang.String iGNOREDNAMES_TITLE)
iGNOREDNAMES_TITLE - the iGNOREDNAMES_TITLE to setpublic java.util.List<java.lang.String> getCharacterIgnore()
public void addIgnoreCharacter(java.lang.String character)
character - public boolean isIgnoreCharacter(java.lang.String character)
character -
public java.util.Map<java.lang.String,java.lang.String> getCharacterNames()
public void setCharacterName(java.lang.String characterName,
java.lang.String actorName)
characterName - the characterName to setactorName - the actor playing the characterpublic java.lang.String getPassword()
public void setPassword(java.lang.String password)
password - the password to setpublic java.lang.String getEncoding()
public boolean isEncodingIsSet()
public void setEncodingIsSet(boolean encodingIsSet)
encodingIsSet - the encodingIsSet to setpublic void setEncoding(java.lang.String encoding)
encoding - the encoding to setpublic boolean isCountSeparateLines()
public void setCountSeparateLines(boolean countSeparateLines)
countSeparateLines - the countSeparateLines to setpublic boolean isOutputContent()
public void setOutputContent(boolean outputContent)
outputContent - the outputContent to setpublic boolean isIgnoreMinimal()
public void setIgnoreMinimal(boolean ignoreMinimal)
ignoreMinimal - the ignoreMinimal to setpublic boolean isExcelExtra()
public void setExcelExtra(boolean excelExtra)
excelExtra - the excelExtra to set
public void addCharacterMapping(java.lang.String character,
java.lang.String mapping)
character - the character to map tomapping - a list of , or ; separated character names to convert to 'character'public java.util.SortedMap<java.lang.String,java.lang.String> getCharacterMapping()
public ScriptLineCounter.FileFormats getActiveFileFormat()
public void setActiveFileFormat(java.lang.String newFileFormat)
newFileFormat - the activeFileFormat to setpublic void setActiveFileFormat(ScriptLineCounter.FileFormats fileFormats)
public java.lang.String getCSV_COLUMN_NAME()
public void setCSV_COLUMN_NAME(java.lang.String cSV_COLUMN_NAME)
cSV_COLUMN_NAME - the cSV_COLUMN_NAME to setpublic java.lang.String getCSV_COLUMN_TEXT()
public void setCSV_COLUMN_TEXT(java.lang.String cSV_COLUMN_TEXT)
cSV_COLUMN_TEXT - the cSV_COLUMN_TEXT to setpublic int getCSV_SKIP_LINES()
public void setCSV_SKIP_LINES(int cSV_SKIP_LINES)
cSV_SKIP_LINES - the cSV_SKIP_LINES to setpublic int getCHARACTER_MAX_PARTS()
public void setCHARACTER_MAX_PARTS(int cHARACTER_MAX_PARTS)
cHARACTER_MAX_PARTS - the cHARACTER_MAX_PARTS to set
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||