|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectmedisyn.ResultParser
public class ResultParser
Parses the output of the medisyn output files. Manages the resulting video requests and video files.
Nested Class Summary | |
---|---|
private class |
ResultParser.ParseLineResult
represents the result of the line-parsing |
Field Summary | |
---|---|
private static java.lang.String |
DEFAULT_INPUT_FILE
|
private static java.lang.String |
DEFAULT_USERINFO_FILE
|
private java.lang.String |
inputFile
|
private java.util.Vector<Request> |
requests
|
private static java.lang.String |
START_FOLDER
|
private java.lang.String |
userinfoFile
|
private java.util.Hashtable<java.lang.Integer,VideoFile> |
videoFiles
|
Constructor Summary | |
---|---|
ResultParser()
constructs the parser with default medisyn-inputfile and medisyn-userinfofile |
|
ResultParser(java.lang.String customInputFile,
java.lang.String customUserinfoFile)
constructs the parser with custom medisyn-inputfile and medisyn-userinfofile |
Method Summary | |
---|---|
java.util.Vector<Request> |
getRequests()
|
java.util.Hashtable<java.lang.Integer,VideoFile> |
getVideoFiles()
|
private ResultParser.ParseLineResult |
parseIntFromLine(java.lang.String line,
char separator)
parses one int from a line in which the values are separated by tabs |
boolean |
parseRequestLog()
Parse the medisyn generated request.log |
boolean |
parseUserInfo()
parse the medisyn generated userinfo.txt which contains the FileID, Popularity, Duration and Bitrate of each file |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private static final java.lang.String START_FOLDER
private static final java.lang.String DEFAULT_INPUT_FILE
private static final java.lang.String DEFAULT_USERINFO_FILE
private java.util.Vector<Request> requests
private java.util.Hashtable<java.lang.Integer,VideoFile> videoFiles
private java.lang.String inputFile
private java.lang.String userinfoFile
Constructor Detail |
---|
public ResultParser()
public ResultParser(java.lang.String customInputFile, java.lang.String customUserinfoFile)
Method Detail |
---|
public boolean parseRequestLog() throws java.lang.Exception
java.lang.Exception
public boolean parseUserInfo() throws java.lang.Exception
java.lang.Exception
private ResultParser.ParseLineResult parseIntFromLine(java.lang.String line, char separator) throws java.lang.Exception
line
-
java.lang.Exception
public java.util.Vector<Request> getRequests()
public java.util.Hashtable<java.lang.Integer,VideoFile> getVideoFiles()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |