public class HrefHtmlLink
extends java.lang.Object
Constructor and Description |
---|
HrefHtmlLink()
Consturcts a new HREF HTML link.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getCurrentHref()
Returns the currently found HREF in the line to check.
|
java.lang.String |
makeAbsolute(java.lang.String line,
java.lang.String currentPath)
Makes the current HREF absolute.
|
boolean |
next()
Finds the next HREF if available in line as set by setLineToCheck.
|
void |
setLineToCheck(java.lang.String line)
Sets the line of the HTML source code to check and manipulate.
|
public void setLineToCheck(java.lang.String line)
line
- the line of the HTML source code to check and manipulatepublic boolean next()
setLineToCheck(String)
public java.lang.String getCurrentHref()
public java.lang.String makeAbsolute(java.lang.String line, java.lang.String currentPath)
line
- the line of the HTML source code to be changedcurrentPath
- the path of the current URL to which the HREF is associatedCopyright 1998-2023 Christoph Mueller, Kaerntner Str. 56, D-70469 Stuttgart, Germany, https://www.perpus.de