package com.aionemu.commons.configuration.transformers;
import java.io.File;
import com.aionemu.commons.configuration.TransformationTypeInfo;
/**
* Transforms string to file by creating new file instance. It's not checked if file exists.
*
* @author SoulKeeper
*/
public class FileTransformer extends PropertyTransformer<File> {
/**
* Shared instance of this transformer. It's thread-safe so no need of multiple instances
*/
public static final FileTransformer SHARED_INSTANCE = new FileTransformer();
@Override
protected File parseObject(String value, TransformationTypeInfo typeInfo) {
return new File(value);
}
}
순위 | 닉네임 | 포인트 |
---|---|---|
1 |
![]() |
102,949 |
2 |
![]() |
63,733 |
3 |
![]() |
51,771 |
4 |
![]() |
36,923 |
5 |
![]() |
35,011 |
6 |
![]() |
29,470 |
7 |
![]() |
29,077 |
8 |
![]() |
28,199 |
9 |
![]() |
26,731 |
10 |
![]() |
17,020 |