aboutsummaryrefslogtreecommitdiff
path: root/app/src/main/kotlin/xyz/brysonsteck/serverfordummies/Download.kt
diff options
context:
space:
mode:
authorBryson Steck <brysonsteck@protonmail.com>2023-05-09 21:59:26 -0600
committerBryson Steck <brysonsteck@protonmail.com>2023-05-09 21:59:26 -0600
commit5b321f0d403996f31b1d101bc24e582d8c0cb631 (patch)
tree0b71f33d33403083042bdcecbfa5c5177798557e /app/src/main/kotlin/xyz/brysonsteck/serverfordummies/Download.kt
parent7db4d246d920586edcc485d514d9651dcc370d67 (diff)
downloadServerCraft-5b321f0d403996f31b1d101bc24e582d8c0cb631.tar
ServerCraft-5b321f0d403996f31b1d101bc24e582d8c0cb631.tar.gz
ServerCraft-5b321f0d403996f31b1d101bc24e582d8c0cb631.tar.bz2
dialog working, download files working
Diffstat (limited to 'app/src/main/kotlin/xyz/brysonsteck/serverfordummies/Download.kt')
-rw-r--r--app/src/main/kotlin/xyz/brysonsteck/serverfordummies/Download.kt6
1 files changed, 1 insertions, 5 deletions
diff --git a/app/src/main/kotlin/xyz/brysonsteck/serverfordummies/Download.kt b/app/src/main/kotlin/xyz/brysonsteck/serverfordummies/Download.kt
index da61f75..07a6eca 100644
--- a/app/src/main/kotlin/xyz/brysonsteck/serverfordummies/Download.kt
+++ b/app/src/main/kotlin/xyz/brysonsteck/serverfordummies/Download.kt
@@ -9,11 +9,11 @@ class Download: Runnable {
public var size: Int
public var downloaded: Int
public var contentLength: Int
+ public var status: Status
private final val MAX_BUFFER_SIZE: Number = 1024
private var url: URL
- private var status: Status
constructor (url: URL) {
this.url = url
@@ -23,10 +23,6 @@ class Download: Runnable {
contentLength = 1
}
- public fun status(): Status {
- return status
- }
-
public fun start() {
val thread = Thread(this)
thread.start()