Package org.basex.io
Class IOUrl
java.lang.Object
org.basex.io.IO
org.basex.io.IOUrl
IO reference, representing a URL.- Author:
- BaseX Team 2005-21, BSD License, Christian Gruen
-
Field Summary
Fields inherited from class org.basex.io.IO
BASEXSUFFIX, BLOCKSIZE, BXSSUFFIX, CSVSUFFIX, ENTRIES, FILEPREF, GZSUFFIX, HTMLSUFFIXES, IGNORESUFFIX, JARSUFFIX, JSONSUFFIX, JSSUFFIXES, len, LOGSUFFIX, MAXATTS, NODEPOWER, NODESIZE, pth, RAW, TARGZSUFFIX, TARSUFFIX, TGZSUFFIX, TMPSUFFIX, TXTSUFFIXES, XARSUFFIX, XMLSUFFIX, XQMSUFFIX, XQSUFFIX, XQSUFFIXES, XSLSUFFIXES, ZIPSUFFIX, ZIPSUFFIXES -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns a connection to the URL.static voidIgnore certificates.static voidIgnore Hostname verification.Returns an input source.Returns an input stream.booleanisDir()Tests if this is a local directory instance, or if the path ends with a slash.byte[]read()Returns the binary contents.Returns a stream source.
-
Constructor Details
-
IOUrl
Constructor.- Parameters:
url- url
-
-
Method Details
-
read
Description copied from class:IOReturns the binary contents.- Specified by:
readin classIO- Returns:
- binary contents
- Throws:
IOException- I/O exception
-
inputSource
Description copied from class:IOReturns an input source.- Specified by:
inputSourcein classIO- Returns:
- input source
-
streamSource
Description copied from class:IOReturns a stream source.- Specified by:
streamSourcein classIO- Returns:
- stream source
-
inputStream
Description copied from class:IOReturns an input stream.- Specified by:
inputStreamin classIO- Returns:
- input stream
- Throws:
IOException- I/O exception
-
connection
Returns a connection to the URL.- Returns:
- connection
- Throws:
IOException- I/O exception
-
isDir
public boolean isDir()Description copied from class:IOTests if this is a local directory instance, or if the path ends with a slash. -
ignoreHostname
public static void ignoreHostname()Ignore Hostname verification. -
ignoreCert
public static void ignoreCert()Ignore certificates.
-