All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.fireflysource.net.http.server.impl.content.provider.FileContentProvider.kt Maven / Gradle / Ivy

There is a newer version: 5.0.2
Show newest version
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))

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy