public class DomainNameReader extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
DomainNameReader.ReaderNextState
This is the final return state of reading a domain name.
|
| Constructor and Description |
|---|
DomainNameReader(InputTextReader reader,
StringBuilder buffer,
String current,
UrlDetectorOptions options,
com.linkedin.urls.detection.DomainNameReader.CharacterHandler characterHandler)
Creates a new instance of the DomainNameReader object.
|
| Modifier and Type | Method and Description |
|---|---|
DomainNameReader.ReaderNextState |
readDomainName()
Reads the Dns and returns the next state the state machine should take in throwing this out, or continue processing
if this is a valid domain name.
|
public DomainNameReader(InputTextReader reader, StringBuilder buffer, String current, UrlDetectorOptions options, com.linkedin.urls.detection.DomainNameReader.CharacterHandler characterHandler)
reader - The input stream to read.buffer - The string buffer to use for storing a domain name.current - The current string that was thought to be a domain name.options - The detector options of this reader.characterHandler - The handler to call on each non-matching character to count matching quotes and stuff.public DomainNameReader.ReaderNextState readDomainName()
Copyright © 2016. All rights reserved.