Skip navigation links
C D E G H I M N P R S T U V 

C

canReadChars(int) - Method in class com.linkedin.urls.detection.InputTextReader
Returns true if the reader has more the specified number of chars.
CharUtils - Class in com.linkedin.urls.detection
 
com.linkedin.urls - package com.linkedin.urls
 
com.linkedin.urls.detection - package com.linkedin.urls.detection
 
create(String) - Static method in class com.linkedin.urls.NormalizedUrl
Returns a normalized url given a single url.
create(String) - Static method in class com.linkedin.urls.Url
Returns a url given a single url.
createUrl() - Method in class com.linkedin.urls.UrlMarker
 

D

detect() - Method in class com.linkedin.urls.detection.UrlDetector
Detects the urls and returns a list of detected url strings.
DomainNameReader - Class in com.linkedin.urls.detection
The domain name reader reads input from a InputTextReader and validates if the content being read is a valid domain name.
DomainNameReader(InputTextReader, StringBuilder, String, UrlDetectorOptions, DomainNameReader.CharacterHandler) - Constructor for class com.linkedin.urls.detection.DomainNameReader
Creates a new instance of the DomainNameReader object.
DomainNameReader.ReaderNextState - Enum in com.linkedin.urls.detection
This is the final return state of reading a domain name.

E

eof() - Method in class com.linkedin.urls.detection.InputTextReader
Checks if the current stream is at the end.

G

getBacktracked() - Method in class com.linkedin.urls.detection.UrlDetector
Gets the number of characters that were backtracked while reading the input.
getBacktrackedCount() - Method in class com.linkedin.urls.detection.InputTextReader
Gets the total number of characters that were backtracked when reading.
getBytes() - Method in class com.linkedin.urls.HostNormalizer
 
getFragment() - Method in class com.linkedin.urls.Url
 
getFullUrl() - Method in class com.linkedin.urls.Url
Note that this includes the fragment
getFullUrlWithoutFragment() - Method in class com.linkedin.urls.Url
 
getHost() - Method in class com.linkedin.urls.NormalizedUrl
 
getHost() - Method in class com.linkedin.urls.Url
 
getHostBytes() - Method in class com.linkedin.urls.NormalizedUrl
Returns the byte representation of the ip address.
getHostBytes() - Method in class com.linkedin.urls.Url
Always returns null for non normalized urls.
getNextPart() - Method in enum com.linkedin.urls.UrlPart
 
getNormalizedHost() - Method in class com.linkedin.urls.HostNormalizer
 
getOriginalUrl() - Method in class com.linkedin.urls.Url
 
getOriginalUrl() - Method in class com.linkedin.urls.UrlMarker
 
getPassword() - Method in class com.linkedin.urls.Url
 
getPath() - Method in class com.linkedin.urls.NormalizedUrl
 
getPath() - Method in class com.linkedin.urls.Url
 
getPort() - Method in class com.linkedin.urls.Url
port = 0 means it hasn't been set yet.
getPosition() - Method in class com.linkedin.urls.detection.InputTextReader
Gets the current position in the stream.
getQuery() - Method in class com.linkedin.urls.Url
 
getRawHost() - Method in class com.linkedin.urls.Url
 
getRawPath() - Method in class com.linkedin.urls.Url
 
getScheme() - Method in class com.linkedin.urls.Url
 
getUrlMarker() - Method in class com.linkedin.urls.Url
 
getUsername() - Method in class com.linkedin.urls.Url
 
getValue() - Method in enum com.linkedin.urls.detection.UrlDetectorOptions
Gets the numeric value of the enum
goBack() - Method in class com.linkedin.urls.detection.InputTextReader
Goes back a single character.

H

hasFlag(UrlDetectorOptions) - Method in enum com.linkedin.urls.detection.UrlDetectorOptions
Checks if the current options have the specified flag.
HostNormalizer - Class in com.linkedin.urls
Normalizes the host by converting hex characters to the actual textual representation, changes ip addresses to a formal format.
HostNormalizer(String) - Constructor for class com.linkedin.urls.HostNormalizer
 

I

indexOf(UrlPart) - Method in class com.linkedin.urls.UrlMarker
 
InputTextReader - Class in com.linkedin.urls.detection
Class used to read a text input character by character.
InputTextReader(String) - Constructor for class com.linkedin.urls.detection.InputTextReader
Creates a new instance of the InputTextReader using the content to read.
isAlpha(char) - Static method in class com.linkedin.urls.detection.CharUtils
Checks if character is a valid alphabetic character.
isAlphaNumeric(char) - Static method in class com.linkedin.urls.detection.CharUtils
Checks if character is a valid alphanumeric character.
isDot(char) - Static method in class com.linkedin.urls.detection.CharUtils
Checks if character is a dot.
isHex(char) - Static method in class com.linkedin.urls.detection.CharUtils
Checks if character is a valid hex character.
isNumeric(char) - Static method in class com.linkedin.urls.detection.CharUtils
Checks if character is a valid numeric character.
isUnreserved(char) - Static method in class com.linkedin.urls.detection.CharUtils
Checks if character is a valid unreserved character.
isWhiteSpace(char) - Static method in class com.linkedin.urls.detection.CharUtils
 

M

MAX_BACKTRACK_MULTIPLIER - Static variable in class com.linkedin.urls.detection.InputTextReader
The number of times something can be backtracked is this multiplier times the length of the string.

N

normalize() - Method in class com.linkedin.urls.Url
Returns a normalized url given a url object
NormalizedUrl - Class in com.linkedin.urls
Returns a normalized version of a url instead of the original url string.
NormalizedUrl(UrlMarker) - Constructor for class com.linkedin.urls.NormalizedUrl
 

P

peek(int) - Method in class com.linkedin.urls.detection.InputTextReader
Peeks at the next number of chars and returns as a string without incrementing the current index.
peekChar(int) - Method in class com.linkedin.urls.detection.InputTextReader
Gets the character in the array offset by the current index.

R

read() - Method in class com.linkedin.urls.detection.InputTextReader
Reads a single char from the content stream and increments the index.
readDomainName() - Method in class com.linkedin.urls.detection.DomainNameReader
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.

S

seek(int) - Method in class com.linkedin.urls.detection.InputTextReader
Moves the index to the specified position.
setIndex(UrlPart, int) - Method in class com.linkedin.urls.UrlMarker
 
setIndices(int[]) - Method in class com.linkedin.urls.UrlMarker
This is used in TestUrlMarker to set indices more easily.
setOriginalUrl(String) - Method in class com.linkedin.urls.UrlMarker
 
setRawHost(String) - Method in class com.linkedin.urls.Url
 
setRawPath(String) - Method in class com.linkedin.urls.Url
 
splitByDot(String) - Static method in class com.linkedin.urls.detection.CharUtils
Splits a string without the use of a regex, which could split either by isDot() or %2e

T

toString() - Method in class com.linkedin.urls.Url
 

U

unsetIndex(UrlPart) - Method in class com.linkedin.urls.UrlMarker
 
Url - Class in com.linkedin.urls
Creating own Uri class since java.net.Uri would throw parsing exceptions for URL's considered ok by browsers.
Url(UrlMarker) - Constructor for class com.linkedin.urls.Url
 
UrlDetector - Class in com.linkedin.urls.detection
 
UrlDetector(String, UrlDetectorOptions) - Constructor for class com.linkedin.urls.detection.UrlDetector
Creates a new UrlDetector object used to find urls inside of text.
UrlDetector.ReadEndState - Enum in com.linkedin.urls.detection
The states to use to continue writing or not.
UrlDetectorOptions - Enum in com.linkedin.urls.detection
The options to use when detecting urls.
UrlMarker - Class in com.linkedin.urls
 
UrlMarker() - Constructor for class com.linkedin.urls.UrlMarker
 
UrlPart - Enum in com.linkedin.urls
 

V

valueOf(String) - Static method in enum com.linkedin.urls.detection.DomainNameReader.ReaderNextState
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum com.linkedin.urls.detection.UrlDetector.ReadEndState
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum com.linkedin.urls.detection.UrlDetectorOptions
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum com.linkedin.urls.UrlPart
Returns the enum constant of this type with the specified name.
values() - Static method in enum com.linkedin.urls.detection.DomainNameReader.ReaderNextState
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum com.linkedin.urls.detection.UrlDetector.ReadEndState
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum com.linkedin.urls.detection.UrlDetectorOptions
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum com.linkedin.urls.UrlPart
Returns an array containing the constants of this enum type, in the order they are declared.
C D E G H I M N P R S T U V 
Skip navigation links

Copyright © 2016. All rights reserved.