本文整理匯總了Java中de.pfabulist.kleinod.nio.PathSpecWindows類的典型用法代碼示例。如果您正苦於以下問題:Java PathSpecWindows類的具體用法?Java PathSpecWindows怎麽用?Java PathSpecWindows使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。
PathSpecWindows類屬於de.pfabulist.kleinod.nio包,在下文中一共展示了PathSpecWindows類的4個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: WindowsBuilder
import de.pfabulist.kleinod.nio.PathSpecWindows; //導入依賴的package包/類
public WindowsBuilder( FSDescription descr, T t ) {
super( descr, t );
descr.removeTopic( Unix.class );
PathLimits pathLimits = new PathLimits( OS.WINDOWS );
PathSpec pathSpec = new PathSpecWindows();
descr.props.put( Tests10PathWithContent.ONE_CHAR_COUNT, pathLimits.getBigChar() );
descr.props.put( Tests10PathWithContent.MAX_FILENAME_LENGTH, pathSpec.getMaxFilenameLength() );
descr.props.put( Tests10PathWithContent.MAX_PATH_LENGTH, pathSpec.getMaxPathLength() );
descr.props.put( Tests10PathWithContent.GET_FILENAME_LENGTH, (Function<String,Integer>)pathSpec::getFilenameLength );
descr.props.put( Tests10PathWithContent.GET_PATH_LENGTH, (Function<String,Integer>)pathSpec::getPathLength );
descr.removeTopic( Posix.class );
descr.removeTopic( MoveWhile.class );
descr.removeTopic( NonCasePreserving.class );
descr.removeTopic( FileKeyT.class );
descr.attributeDescriptions.put( "dos",
attributeBuilding( DosAttributesT.class, "dos", DosFileAttributeView.class, DosFileAttributes.class ).
addAttribute( "hidden", DosFileAttributes::isHidden ).
addAttribute( "archive", DosFileAttributes::isArchive ).
addAttribute( "system", DosFileAttributes::isSystem ).
addAttribute( "readonly", DosFileAttributes::isReadOnly ).
build() );
}
示例2: testWindows1
import de.pfabulist.kleinod.nio.PathSpecWindows; //導入依賴的package包/類
@Test
public void testWindows1() throws Exception {
GetPathConverter gp = new GetPathConverter( new PathSpecWindows(), "a", "..", "c" );
assertThat( gp.isAbsolute() ).isFalse();
assertThat( gp.getAll() ).isEqualTo( Arrays.asList( "a", "..", "c" ) );
}
示例3: getPathSpec
import de.pfabulist.kleinod.nio.PathSpecWindows; //導入依賴的package包/類
@Override
public PathSpec getPathSpec() {
return new PathSpecWindows();
}
示例4: windows
import de.pfabulist.kleinod.nio.PathSpecWindows; //導入依賴的package包/類
public static MemoryFSBuilder windows() {
return new MemoryFSBuilder().
pathSpec( new PathSpecWindows() ).
primaryStoreName( "c:").
attributeView( DosFileAttributeView.class );
}