MCPcopy
hub / github.com/kekingcn/kkFileView / to

Method to

server/src/main/java/cn/keking/model/FileType.java:127–129  ·  view source on GitHub ↗
(String fileType)

Source from the content-addressed store, hash-verified

125 }
126
127 private static FileType to(String fileType) {
128 return FILE_TYPE_MAPPER.getOrDefault(fileType, OTHER);
129 }
130
131 /**
132 * 查看文件类型(防止参数中存在.点号或者其他特殊字符,所以先抽取文件名,然后再获取文件类型)

Callers 15

typeFromFileNameMethod · 0.95
bootstrap.jsFile · 0.80
bootstrap.min.jsFile · 0.80
extensions.min.jsFile · 0.80
prepareSelectionFunction · 0.80
drawSelectionRangeFunction · 0.80
codemirror.jsFile · 0.80
normalizeSelectionFunction · 0.80
leftButtonDownFunction · 0.80
extendToFunction · 0.80
applyTextInputFunction · 0.80
addEditorMethodsFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected