Package org.basex.io

Class IOUrl

java.lang.Object
org.basex.io.IO
org.basex.io.IOUrl

public final class IOUrl extends IO
IO reference, representing a URL.
Author:
BaseX Team 2005-21, BSD License, Christian Gruen
  • Constructor Details

    • IOUrl

      public IOUrl(String url)
      Constructor.
      Parameters:
      url - url
  • Method Details

    • read

      public byte[] read() throws IOException
      Description copied from class: IO
      Returns the binary contents.
      Specified by:
      read in class IO
      Returns:
      binary contents
      Throws:
      IOException - I/O exception
    • inputSource

      public InputSource inputSource()
      Description copied from class: IO
      Returns an input source.
      Specified by:
      inputSource in class IO
      Returns:
      input source
    • streamSource

      public StreamSource streamSource()
      Description copied from class: IO
      Returns a stream source.
      Specified by:
      streamSource in class IO
      Returns:
      stream source
    • inputStream

      public InputStream inputStream() throws IOException
      Description copied from class: IO
      Returns an input stream.
      Specified by:
      inputStream in class IO
      Returns:
      input stream
      Throws:
      IOException - I/O exception
    • connection

      public URLConnection connection() throws IOException
      Returns a connection to the URL.
      Returns:
      connection
      Throws:
      IOException - I/O exception
    • isDir

      public boolean isDir()
      Description copied from class: IO
      Tests if this is a local directory instance, or if the path ends with a slash.
      Overrides:
      isDir in class IO
      Returns:
      result of check
    • ignoreHostname

      public static void ignoreHostname()
      Ignore Hostname verification.
    • ignoreCert

      public static void ignoreCert()
      Ignore certificates.