Module Java.Net

Java types from java.net

Imports

Table of Content

Definitions

data MalformedURLException = pure native java.net.MalformedURLException
data URISyntaxException = pure native java.net.URISyntaxException
data URL = pure native java.net.URL

Frege type for java.net.URL, note that we do not support operations that mutate the URL, hence we regard every instance as immutable.

Member Functions

new ∷ String β†’ IO URL
         throws MalformedURLException
     | URL β†’ String β†’ IO URL
         throws MalformedURLException
native new
new𝖆 ∷ String β†’ IO URL
native new  throws MalformedURLException  overloads new
new𝖇 ∷ URL β†’ String β†’ IO URL
native new  throws MalformedURLException  overloads new
openConnection ∷ URL β†’ STMutable RealWorld URLConnection
native openConnection  throws IOException

convenience method to get a URLConnection

openStream ∷ URL β†’ STMutable RealWorld InputStream
native openStream  throws IOException
toString ∷ URL β†’ String
pure native toString
type URLArray = JArray URL
data URLConnection = native java.net.URLConnection

Member Functions

connect ∷ MutableIO URLConnection β†’ IO ()
native connect  throws IOException
getContentType ∷ MutableIO URLConnection β†’ IO (Maybe String)
native getContentType
getInputStream ∷ MutableIO URLConnection β†’ STMutable RealWorld InputStream
native getInputStream  throws IOException
data URI = pure native java.net.URI

Member Functions

create ∷ String β†’ URI
pure native java.net.URI.create
new ∷ String β†’ (URISyntaxException | URI)
pure native new
relativize ∷ URI β†’ URI β†’ URI
pure native relativize
toASCIIString ∷ URI β†’ String
pure native toASCIIString
toString ∷ URI β†’ String
pure native toString
toURL ∷ URI β†’ (MalformedURLException | URL)
pure native toURL
data URLClassLoader = native java.net.URLClassLoader

Member Functions

findResource ∷ MutableIO URLClassLoader β†’ String β†’ IO (Maybe URL)
native findResource
getResource ∷ MutableIO URLClassLoader β†’ String β†’ IO (Maybe URL)
native getResource
loadClass ∷ MutableIO URLClassLoader β†’ String β†’ IO (ClassNotFoundException | Class a)
native loadClass
new ∷ ArrayOf RealWorld URL β†’ MutableIO ClassLoader β†’ STMutable RealWorld URLClassLoader
native new

Instances

instance ArrayElement URL

Member Functions

arrayFromIndexList ∷ [(Int, URL)] β†’ URLArray

inherited from ArrayElement.arrayFromIndexList

arrayFromIndexListST ∷ [(Int, URL)] β†’ STMutable 𝖆 URLArray

inherited from ArrayElement.arrayFromIndexListST

arrayFromList ∷ [URL] β†’ URLArray

inherited from ArrayElement.arrayFromList

arrayFromListST ∷ [URL] β†’ STMutable 𝖆 URLArray

inherited from ArrayElement.arrayFromListST

arrayFromMaybeList ∷ [Maybe URL] β†’ URLArray

inherited from ArrayElement.arrayFromMaybeList

arrayFromMaybeListST ∷ [Maybe URL] β†’ STMutable 𝖆 URLArray

inherited from ArrayElement.arrayFromMaybeListST

arrayLength ∷ URLArray β†’ Int
pure native .length

inherited from ArrayElement.arrayLength

elemAt ∷ URLArray β†’ Int β†’ URL
pure native [i]

inherited from ArrayElement.elemAt

getAt ∷ ArrayOf 𝖆 URL β†’ Int β†’ ST 𝖆 (Maybe URL)
native [i]

inherited from ArrayElement.getAt

getElemAt ∷ ArrayOf 𝖆 URL β†’ Int β†’ ST 𝖆 URL
native [i]

inherited from ArrayElement.getElemAt

itemAt ∷ URLArray β†’ Int β†’ Maybe URL
pure native [i]

inherited from ArrayElement.itemAt

javaClass ∷ Class URL
pure native java.net.URL.class
listFromArray ∷ URLArray β†’ [URL]

inherited from ArrayElement.listFromArray

maybeListFromArray ∷ URLArray β†’ [Maybe URL]

inherited from ArrayElement.maybeListFromArray

modifyAt ∷ (URL β†’ URL) β†’ ArrayOf 𝖆 URL β†’ Int β†’ ST 𝖆 ()

inherited from ArrayElement.modifyAt

modifyElemAt ∷ (URL β†’ URL) β†’ ArrayOf 𝖆 URL β†’ Int β†’ ST 𝖆 ()

inherited from ArrayElement.modifyElemAt

newArray ∷ Int β†’ STMutable 𝖆 URLArray
native new[]

inherited from ArrayElement.newArray

setAt ∷ ArrayOf 𝖆 URL β†’ Int β†’ Maybe URL β†’ ST 𝖆 ()
native []=

inherited from ArrayElement.setAt

setElemAt ∷ ArrayOf 𝖆 URL β†’ Int β†’ URL β†’ ST 𝖆 ()
native []=

inherited from ArrayElement.setElemAt

instance Exceptional MalformedURLException

Member Functions

javaClass ∷ Class MalformedURLException
pure native java.net.MalformedURLException.class
instance Exceptional URISyntaxException

Member Functions

javaClass ∷ Class URISyntaxException
pure native java.net.URISyntaxException.class

Functions and Values by Type

ArrayOf RealWorld URL β†’ MutableIO ClassLoader β†’ STMutable RealWorld URLClassLoader

URLClassLoader.new

MutableIO URLClassLoader β†’ String β†’ IO (Maybe URL)

URLClassLoader.findResource, URLClassLoader.getResource

MutableIO URLConnection β†’ STMutable RealWorld InputStream

URLConnection.getInputStream

MutableIO URLConnection β†’ IO (Maybe String)

URLConnection.getContentType

MutableIO URLConnection β†’ IO ()

URLConnection.connect

URLArray β†’ Int β†’ Maybe URL

ArrayElement_URL.itemAt

URLArray β†’ Int β†’ URL

ArrayElement_URL.elemAt

URLArray β†’ [Maybe URL]

ArrayElement_URL.maybeListFromArray

URLArray β†’ [URL]

ArrayElement_URL.listFromArray

URLArray β†’ Int

ArrayElement_URL.arrayLength

String β†’ (URISyntaxException | URI)

URI.new

String β†’ IO URL

URL.new𝖆

String β†’ URI

URI.create

[(Int, URL)] β†’ URLArray

ArrayElement_URL.arrayFromIndexList

[Maybe URL] β†’ URLArray

ArrayElement_URL.arrayFromMaybeList

[URL] β†’ URLArray

ArrayElement_URL.arrayFromList

URI β†’ URI β†’ URI

URI.relativize

URI β†’ (MalformedURLException | URL)

URI.toURL

URI β†’ String

URI.toASCIIString, URI.toString

URL β†’ String β†’ IO URL

URL.new𝖇

URL β†’ STMutable RealWorld InputStream

URL.openStream

URL β†’ STMutable RealWorld URLConnection

URL.openConnection

URL β†’ String

URL.toString

Class MalformedURLException

Exceptional_MalformedURLException.javaClass

Class URISyntaxException

Exceptional_URISyntaxException.javaClass

Class URL

ArrayElement_URL.javaClass

(URL β†’ URL) β†’ ArrayOf 𝖆 URL β†’ Int β†’ ST 𝖆 ()

ArrayElement_URL.modifyElemAt, ArrayElement_URL.modifyAt

MutableIO URLClassLoader β†’ String β†’ IO (ClassNotFoundException | Class a)

URLClassLoader.loadClass

ArrayOf 𝖆 URL β†’ Int β†’ Maybe URL β†’ ST 𝖆 ()

ArrayElement_URL.setAt

ArrayOf 𝖆 URL β†’ Int β†’ URL β†’ ST 𝖆 ()

ArrayElement_URL.setElemAt

ArrayOf 𝖆 URL β†’ Int β†’ ST 𝖆 (Maybe URL)

ArrayElement_URL.getAt

ArrayOf 𝖆 URL β†’ Int β†’ ST 𝖆 URL

ArrayElement_URL.getElemAt

[(Int, URL)] β†’ STMutable 𝖆 URLArray

ArrayElement_URL.arrayFromIndexListST

[Maybe URL] β†’ STMutable 𝖆 URLArray

ArrayElement_URL.arrayFromMaybeListST

[URL] β†’ STMutable 𝖆 URLArray

ArrayElement_URL.arrayFromListST

Int β†’ STMutable 𝖆 URLArray

ArrayElement_URL.newArray

Ο‰

URL.new

Valid HTML 4.01 Strict