BASEXSUFFIX, BLOCKSIZE, BXSSUFFIX, CSVSUFFIX, ENTRIES, FILEPREF, GZSUFFIX, HTMLSUFFIXES, JARSUFFIX, JSONSUFFIX, JSSUFFIX, LOGSUFFIX, MAXATTS, NODEPOWER, NODESIZE, OFFCOMP, OFFNUM, RAW, TARGZSUFFIX, TARSUFFIX, TGZSUFFIX, TXTSUFFIXES, XARSUFFIX, XMLSUFFIX, XMLSUFFIXES, XQMSUFFIX, XQSUFFIX, XQSUFFIXES, XSLSUFFIXES, ZIPSUFFIX, ZIPSUFFIXES
Modifier and Type | Method and Description |
---|---|
URLConnection |
connection()
Returns a connection to the URL.
|
String |
dir()
Returns the directory path.
|
InputSource |
inputSource()
Returns an input source.
|
InputStream |
inputStream()
Returns an input stream.
|
static boolean |
isFileURL(String url)
Checks if the specified string is a valid file URL.
|
IO |
merge(String path)
Merges two paths.
|
byte[] |
read()
Returns the binary contents.
|
StreamSource |
streamSource()
Returns a stream source.
|
static String |
toFile(String url)
Normalizes the specified URL and creates a new instance of this class.
|
public IOUrl(String url)
url
- urlpublic byte[] read() throws IOException
IO
read
in class IO
IOException
- I/O exceptionpublic InputSource inputSource()
IO
inputSource
in class IO
public StreamSource streamSource()
IO
streamSource
in class IO
public InputStream inputStream() throws IOException
IO
inputStream
in class IO
IOException
- I/O exceptionpublic URLConnection connection() throws IOException
IOException
- I/O exceptionpublic static boolean isFileURL(String url)
url
- url to be testedCopyright © 2005–2015 BaseX Team. All rights reserved.