public final class FileInputStream
extends org.mule.extension.file.common.api.stream.AbstractFileInputStream
AbstractFileInputStream implementation used to obtain a file's content based on a Reader.
This stream will automatically close itself once fully consumed but will not fail if AbstractFileInputStream.close() is invoked after that.
This class also contains a PathLock which will be released when the stream is closed. However, this class will never
invoke the PathLock.tryLock() method on it, it's the responsibility of whomever is creating this instance to determine
if that lock is to be acquired.
in| Constructor and Description |
|---|
FileInputStream(Path path,
org.mule.extension.file.common.api.lock.PathLock lock)
Creates a new instance
|
close, doClose, isLockedpublic FileInputStream(Path path, org.mule.extension.file.common.api.lock.PathLock lock)
path - lock - a PathLockCopyright © 2003–2017 MuleSoft, Inc.. All rights reserved.