Interface URLParser


public interface URLParser
Reads a url out of text, rejecting anything malformed.
  • Method Summary

    Modifier and Type
    Method
    Description
    @NonNull Optional<URL>
    parse(@Nullable String string)
    Parses a url.
  • Method Details

    • parse

      @NonNull Optional<URL> parse(@Nullable String string)
      Parses a url.
      Parameters:
      string - the text, may be null
      Returns:
      the url, or empty if the text is not one