|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface DataReader
Interface for data readers that reads User-Agent informations for implementations of UserAgentStringParser.
| Method Summary | |
|---|---|
Data |
read(java.lang.String data)
Reads UAS data from the given String. |
Data |
read(java.net.URL url,
java.nio.charset.Charset charset)
Reads UAS data from the given URL. |
| Method Detail |
|---|
Data read(java.net.URL url,
java.nio.charset.Charset charset)
URL.
The implementing class must ensure that no error leads to a termination of this operation. In case of an error
this operation must return Data.EMPTY and all error information must be stored in a log.
url - the URL where the UAS data can be retrievedcharset - the character set in which the data should be read
Data instance or Data.EMPTYData read(java.lang.String data)
String.
The implementing class must ensure that no error leads to a termination of this operation. In case of an error
this operation must return Data.EMPTY and all error information must be stored in a log.
data - a string of UAS data
Data instance or Data.EMPTY
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||