jaulib v1.3.0
Jau Support Library (C++, Java, ..)
|
Limited URI toolkit to query handled protocols by the IO implementation. More...
Static Public Member Functions | |
static native List< String > | supported_protocols () |
Returns a list of supported protocol supported by libcurl network protocols, queried at runtime. More... | |
static native String | get_scheme (final String uri) |
Returns the valid uri-scheme from given uri, which is empty if no valid scheme is included. More... | |
static native boolean | protocol_supported (final String uri) |
Returns true if the uri-scheme of given uri matches a supported by libcurl network protocols otherwise false. More... | |
static native boolean | is_local_file_protocol (final String uri) |
Returns true if the uri-scheme of given uri matches the local file protocol, i.e. More... | |
Limited URI toolkit to query handled protocols by the IO implementation.
The URI scheme functionality exposed here is limited and only provided to decide whether the used implementation is able to handle the protocol. This is not a replacement for a proper URI class.
Definition at line 34 of file UriTk.java.
|
static |
Returns the valid uri-scheme from given uri, which is empty if no valid scheme is included.
The given uri must included at least a colon after the uri-scheme part.
uri | an uri |
|
static |
Returns true if the uri-scheme of given uri matches the local file
protocol, i.e.
starts with file://
.
uri | an uri to test |
|
static |
Returns true if the uri-scheme of given uri matches a supported by libcurl network protocols otherwise false.
The uri-scheme is retrieved via get_scheme() passing given uri, hence must included at least a colon after the uri-scheme part.
The libcurl supported protocols is queried at runtime, see supported_protocols().
uri | an uri to test |
|
static |
Returns a list of supported protocol supported by libcurl network protocols, queried at runtime.