[]Struct jni_android_sys::java::net::URL

#[repr(transparent)]
pub struct URL(_);

public final class URL

Required feature: "java-net-URL"

Methods

impl URL

pub fn new_String_String_int_String<'env>(
    __jni_env: &'env Env,
    arg0: impl Into<Option<&'env String>>,
    arg1: impl Into<Option<&'env String>>,
    arg2: i32,
    arg3: impl Into<Option<&'env String>>
) -> Result<Local<'env, URL>, Local<'env, Throwable>>
[src]

URL

Required features: "java-lang-String"

pub fn new_String_String_String<'env>(
    __jni_env: &'env Env,
    arg0: impl Into<Option<&'env String>>,
    arg1: impl Into<Option<&'env String>>,
    arg2: impl Into<Option<&'env String>>
) -> Result<Local<'env, URL>, Local<'env, Throwable>>
[src]

URL

Required features: "java-lang-String"

pub fn new_String_String_int_String_URLStreamHandler<'env>(
    __jni_env: &'env Env,
    arg0: impl Into<Option<&'env String>>,
    arg1: impl Into<Option<&'env String>>,
    arg2: i32,
    arg3: impl Into<Option<&'env String>>,
    arg4: impl Into<Option<&'env URLStreamHandler>>
) -> Result<Local<'env, URL>, Local<'env, Throwable>>
[src]

URL

Required features: "java-lang-String", "java-net-URLStreamHandler"

pub fn new_String<'env>(
    __jni_env: &'env Env,
    arg0: impl Into<Option<&'env String>>
) -> Result<Local<'env, URL>, Local<'env, Throwable>>
[src]

URL

Required features: "java-lang-String"

pub fn new_URL_String<'env>(
    __jni_env: &'env Env,
    arg0: impl Into<Option<&'env URL>>,
    arg1: impl Into<Option<&'env String>>
) -> Result<Local<'env, URL>, Local<'env, Throwable>>
[src]

URL

Required features: "java-lang-String", "java-net-URL"

pub fn new_URL_String_URLStreamHandler<'env>(
    __jni_env: &'env Env,
    arg0: impl Into<Option<&'env URL>>,
    arg1: impl Into<Option<&'env String>>,
    arg2: impl Into<Option<&'env URLStreamHandler>>
) -> Result<Local<'env, URL>, Local<'env, Throwable>>
[src]

URL

Required features: "java-lang-String", "java-net-URL", "java-net-URLStreamHandler"

pub fn getQuery<'env>(
    &'env self
) -> Result<Option<Local<'env, String>>, Local<'env, Throwable>>
[src]

getQuery

Required features: "java-lang-String"

pub fn getPath<'env>(
    &'env self
) -> Result<Option<Local<'env, String>>, Local<'env, Throwable>>
[src]

getPath

Required features: "java-lang-String"

pub fn getUserInfo<'env>(
    &'env self
) -> Result<Option<Local<'env, String>>, Local<'env, Throwable>>
[src]

getUserInfo

Required features: "java-lang-String"

pub fn getAuthority<'env>(
    &'env self
) -> Result<Option<Local<'env, String>>, Local<'env, Throwable>>
[src]

getAuthority

Required features: "java-lang-String"

pub fn getPort<'env>(&'env self) -> Result<i32, Local<'env, Throwable>>[src]

pub fn getDefaultPort<'env>(&'env self) -> Result<i32, Local<'env, Throwable>>[src]

pub fn getProtocol<'env>(
    &'env self
) -> Result<Option<Local<'env, String>>, Local<'env, Throwable>>
[src]

getProtocol

Required features: "java-lang-String"

pub fn getHost<'env>(
    &'env self
) -> Result<Option<Local<'env, String>>, Local<'env, Throwable>>
[src]

getHost

Required features: "java-lang-String"

pub fn getFile<'env>(
    &'env self
) -> Result<Option<Local<'env, String>>, Local<'env, Throwable>>
[src]

getFile

Required features: "java-lang-String"

pub fn getRef<'env>(
    &'env self
) -> Result<Option<Local<'env, String>>, Local<'env, Throwable>>
[src]

getRef

Required features: "java-lang-String"

pub fn equals<'env>(
    &'env self,
    arg0: impl Into<Option<&'env Object>>
) -> Result<bool, Local<'env, Throwable>>
[src]

equals

Required features: "java-lang-Object"

pub fn hashCode<'env>(&'env self) -> Result<i32, Local<'env, Throwable>>[src]

pub fn sameFile<'env>(
    &'env self,
    arg0: impl Into<Option<&'env URL>>
) -> Result<bool, Local<'env, Throwable>>
[src]

sameFile

Required features: "java-net-URL"

pub fn toString<'env>(
    &'env self
) -> Result<Option<Local<'env, String>>, Local<'env, Throwable>>
[src]

toString

Required features: "java-lang-String"

pub fn toExternalForm<'env>(
    &'env self
) -> Result<Option<Local<'env, String>>, Local<'env, Throwable>>
[src]

toExternalForm

Required features: "java-lang-String"

pub fn toURI<'env>(
    &'env self
) -> Result<Option<Local<'env, URI>>, Local<'env, Throwable>>
[src]

toURI

Required features: "java-net-URI"

pub fn openConnection<'env>(
    &'env self
) -> Result<Option<Local<'env, URLConnection>>, Local<'env, Throwable>>
[src]

openConnection

Required features: "java-net-URLConnection"

pub fn openConnection_Proxy<'env>(
    &'env self,
    arg0: impl Into<Option<&'env Proxy>>
) -> Result<Option<Local<'env, URLConnection>>, Local<'env, Throwable>>
[src]

openConnection

Required features: "java-net-Proxy", "java-net-URLConnection"

pub fn openStream<'env>(
    &'env self
) -> Result<Option<Local<'env, InputStream>>, Local<'env, Throwable>>
[src]

openStream

Required features: "java-io-InputStream"

pub fn getContent<'env>(
    &'env self
) -> Result<Option<Local<'env, Object>>, Local<'env, Throwable>>
[src]

getContent

Required features: "java-lang-Object"

pub fn getContent_Class_array<'env>(
    &'env self,
    arg0: impl Into<Option<&'env ObjectArray<Class, Throwable>>>
) -> Result<Option<Local<'env, Object>>, Local<'env, Throwable>>
[src]

getContent

Required features: "java-lang-Class", "java-lang-Object"

pub fn setURLStreamHandlerFactory<'env>(
    __jni_env: &'env Env,
    arg0: impl Into<Option<&'env URLStreamHandlerFactory>>
) -> Result<(), Local<'env, Throwable>>
[src]

setURLStreamHandlerFactory

Required features: "java-net-URLStreamHandlerFactory"

Methods from Deref<Target = Object>

pub fn getClass<'env>(
    &'env self
) -> Result<Option<Local<'env, Class>>, Local<'env, Throwable>>
[src]

getClass

Required features: "java-lang-Class"

pub fn hashCode<'env>(&'env self) -> Result<i32, Local<'env, Throwable>>[src]

pub fn equals<'env>(
    &'env self,
    arg0: impl Into<Option<&'env Object>>
) -> Result<bool, Local<'env, Throwable>>
[src]

equals

Required features: "java-lang-Object"

pub fn toString<'env>(
    &'env self
) -> Result<Option<Local<'env, String>>, Local<'env, Throwable>>
[src]

toString

Required features: "java-lang-String"

pub fn notify<'env>(&'env self) -> Result<(), Local<'env, Throwable>>[src]

pub fn notifyAll<'env>(&'env self) -> Result<(), Local<'env, Throwable>>[src]

pub fn wait_long<'env>(
    &'env self,
    arg0: i64
) -> Result<(), Local<'env, Throwable>>
[src]

pub fn wait_long_int<'env>(
    &'env self,
    arg0: i64,
    arg1: i32
) -> Result<(), Local<'env, Throwable>>
[src]

pub fn wait<'env>(&'env self) -> Result<(), Local<'env, Throwable>>[src]

Trait Implementations

impl AsJValue for URL

impl AsRef<Serializable> for URL

impl AsValidJObjectAndEnv for URL

impl Deref for URL

type Target = Object

The resulting type after dereferencing.

impl JniType for URL

Auto Trait Implementations

impl RefUnwindSafe for URL

impl !Send for URL

impl !Sync for URL

impl Unpin for URL

impl UnwindSafe for URL

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.