|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcz.mallat.uasparser.UASparser
public class UASparser
User agent parser.
| Constructor Summary | |
|---|---|
protected |
UASparser()
Constructor for inherented classes |
|
UASparser(InputStream inputStreamToDefinitionFile)
Use the given inputstream to load the definition file from the local filesystem |
|
UASparser(String localDefinitionFilename)
Use the given filename to load the definition file from the local filesystem |
| Method Summary | |
|---|---|
protected void |
checkDataMaps()
When a class inherents from this class, it probably has to override this method |
protected void |
createInternalDataStructre(List<Section> sectionList)
Creates the internal data structes from the seciontList |
protected void |
loadDataFromFile(File definitionFile)
loads the data file and creates all internal data structs |
protected void |
loadDataFromFile(InputStream is)
loads the data file and creates all internal data structs |
UserAgentInfo |
parse(String useragent)
Parse the given user agent string and returns a UserAgentInfo object with the related data |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public UASparser(String localDefinitionFilename)
throws IOException
localDefinitionFilename -
IOException
public UASparser(InputStream inputStreamToDefinitionFile)
throws IOException
inputStreamToDefinitionFile -
IOExceptionprotected UASparser()
| Method Detail |
|---|
protected void checkDataMaps()
throws IOException
IOException
public UserAgentInfo parse(String useragent)
throws IOException
useragent -
IOException - may happen when the retrieval of the data file fails
protected void loadDataFromFile(File definitionFile)
throws IOException
definitionFile -
IOException
protected void loadDataFromFile(InputStream is)
throws IOException
is -
IOExceptionprotected void createInternalDataStructre(List<Section> sectionList)
sectionList -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||