PathResource

constructor(path: Path, name: String = path.toString(), doClose: () -> Unit = {})(source)

Parameters

doClose

当执行 close 时可以选择提供执行操作。