com.fireflysource.net.http.server.impl.content.provider.FileContentProvider.kt Maven / Gradle / Ivy
package com.fireflysource.net.http.server.impl.content.provider
import com.fireflysource.net.http.common.content.provider.AbstractFileContentProvider
import com.fireflysource.net.http.server.HttpServerContentProvider
import java.nio.file.Files
import java.nio.file.OpenOption
import java.nio.file.Path
class FileContentProvider(
path: Path,
options: Set,
position: Long,
length: Long
) : AbstractFileContentProvider(path, options, position, length), HttpServerContentProvider {
constructor(path: Path, vararg options: OpenOption) : this(path, options.toSet(), 0, Files.size(path))
}