public abstract class AbstractFileAdapter extends Object implements FileAdapter
| 限定符和类型 | 字段和说明 |
|---|---|
protected static String |
charsetName |
protected OrgConfig |
config |
String |
rootPath |
protected static Integer |
textBufSize |
| 构造器和说明 |
|---|
AbstractFileAdapter(String rootPath) |
| 限定符和类型 | 方法和说明 |
|---|---|
abstract void |
delete(String vfsPath) |
abstract boolean |
exists(String vfsPath) |
abstract InputStream |
getInputStream(String vfsPath) |
abstract String |
getMD5Hash(String vfsPath) |
abstract MD5InputStream |
getMD5InputStream(String vfsPath) |
abstract MD5OutputStream |
getOutputStream(String vfsPath) |
String |
getRootPath() |
abstract void |
mkdirs(String vfsPath) |
abstract List<String> |
readLine(String vfsPath,
List<Integer> lineNums) |
abstract boolean |
testConnection(String vfsPath) |
abstract long |
write(String vfsPath,
InputStream in) |
abstract long |
write(String vfsPath,
MD5InputStream in) |
abstract Integer |
writeLine(String vfsPath,
String str) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcreateFolderPath, getLengthprotected static final Integer textBufSize
protected OrgConfig config
public String rootPath
public AbstractFileAdapter(String rootPath)
public String getRootPath()
getRootPath 在接口中 FileAdapterpublic abstract void mkdirs(String vfsPath)
mkdirs 在接口中 FileAdapterpublic abstract void delete(String vfsPath)
delete 在接口中 FileAdapterpublic abstract boolean exists(String vfsPath)
exists 在接口中 FileAdapterpublic abstract boolean testConnection(String vfsPath)
testConnection 在接口中 FileAdapterpublic abstract long write(String vfsPath, MD5InputStream in)
write 在接口中 FileAdapterpublic abstract long write(String vfsPath, InputStream in)
write 在接口中 FileAdapterpublic abstract MD5InputStream getMD5InputStream(String vfsPath)
getMD5InputStream 在接口中 FileAdapterpublic abstract InputStream getInputStream(String vfsPath)
getInputStream 在接口中 FileAdapterpublic abstract Integer writeLine(String vfsPath, String str)
writeLine 在接口中 FileAdapterpublic abstract List<String> readLine(String vfsPath, List<Integer> lineNums)
readLine 在接口中 FileAdapterpublic abstract String getMD5Hash(String vfsPath)
getMD5Hash 在接口中 FileAdapterpublic abstract MD5OutputStream getOutputStream(String vfsPath)
getOutputStream 在接口中 FileAdapterCopyright © 2023 onecode. All rights reserved.