VancedManager/app/src/main/java/com/vanced/manager/utils/FileInfo.kt

14 lines
393 B
Kotlin
Raw Normal View History

2020-06-01 16:38:31 +00:00
package com.vanced.manager.utils
import java.io.File
import java.io.FileInputStream
import java.io.InputStream
open class FileInfo(val name: String, val fileSize: Long, val file: File? = null) {
2020-06-01 16:38:31 +00:00
open fun getInputStream(): InputStream =
if (file!= null)
FileInputStream(file)
else
throw NotImplementedError("need some way to create InputStream")
}