public abstract class LocalFileProtocol extends Object implements Protocol
| 构造器和说明 |
|---|
LocalFileProtocol() |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
close() |
protected abstract Path |
getPath(FileLocation location) |
byte[] |
read(FileLocation location)
Read data of file
|
void |
watch(FileLocation location,
FileConfigGroup fileConfigGroup)
Register watcher for the file
|
public final byte[] read(FileLocation location) throws InvalidPathException
Protocolread 在接口中 ProtocolInvalidPathExceptionpublic final void watch(FileLocation location, FileConfigGroup fileConfigGroup) throws InvalidPathException
Protocolwatch 在接口中 ProtocolInvalidPathExceptionprotected abstract Path getPath(FileLocation location) throws InvalidPathException
public void close()
throws IOException
close 在接口中 Closeableclose 在接口中 AutoCloseableIOExceptionCopyright © 2018. All rights reserved.