| 程序包 | 说明 |
|---|---|
| com.dangdang.config.service.file.contenttype | |
| com.dangdang.config.service.file.protocol |
| 限定符和类型 | 方法和说明 |
|---|---|
Map<String,String> |
PropertiesContentType.resolve(byte[] data,
String encoding) |
Map<String,String> |
XmlContentType.resolve(byte[] data,
String encoding) |
Map<String,String> |
ContentType.resolve(byte[] data,
String encoding) |
| 限定符和类型 | 方法和说明 |
|---|---|
protected Path |
ClasspathProtocol.getPath(FileLocation location) |
protected abstract Path |
LocalFileProtocol.getPath(FileLocation location) |
protected Path |
FileProtocol.getPath(FileLocation location) |
byte[] |
HttpProtocol.read(FileLocation location) |
byte[] |
LocalFileProtocol.read(FileLocation location) |
byte[] |
Protocol.read(FileLocation location)
Read data of file
|
void |
HttpProtocol.watch(FileLocation location,
FileConfigGroup fileConfigGroup) |
void |
LocalFileProtocol.watch(FileLocation location,
FileConfigGroup fileConfigGroup) |
void |
Protocol.watch(FileLocation location,
FileConfigGroup fileConfigGroup)
Register watcher for the file
|
Copyright © 2018. All rights reserved.