作者:过去丶真的過卜去 | 来源:互联网 | 2023-09-24 17:41
本文整理了Java中org.kie.commons.io.IOService.setAttributes()
方法的一些代码示例,展示了IOService.setAttributes()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。IOService.setAttributes()
方法的具体详情如下:
包路径:org.kie.commons.io.IOService
类名称:IOService
方法名:setAttributes
IOService.setAttributes介绍
暂无
代码示例
代码示例来源:origin: org.kie.commons/kie-commons-io
@Override
public Path call() throws Exception {
return service.setAttributes( path, attrs );
}
} ) );
代码示例来源:origin: org.kie.commons/kie-commons-io
@Override
public Path call() throws Exception {
return service.setAttributes( path, attrs );
}
} ) );
代码示例来源:origin: org.kie.commons/kie-commons-io
@Test
public void testRoot() throws IOException {
final Path path = getRootPath();
ioService().setAttributes( path, new FileAttribute() {
@Override
public String name() {
return "my_new_key";
}
@Override
public Object value() {
return "value";
}
} );
final Map attrsValue = ioService().readAttributes( path );
assertEquals( 9, attrsValue.size() );
assertTrue( attrsValue.containsKey( "my_new_key" ) );
ioService().setAttributes( path, new FileAttribute() {
@Override
public String name() {
return "my_new_key";
}
@Override
public Object value() {
return null;
}
} );
final Map attrsValue2 = ioService().readAttributes( path );
assertEquals( 8, attrsValue2.size() );
assertFalse( attrsValue2.containsKey( "my_new_key" ) );
}
代码示例来源:origin: org.kie.commons/kieora-commons-io
@Test
public void testRoot() throws IOException {
final Path path = getRootPath();
ioService().setAttributes( path, new FileAttribute() {
@Override
public String name() {
return "my_new_key";
}
@Override
public Object value() {
return "value";
}
} );
final Map attrsValue = ioService().readAttributes( path );
assertEquals( 7, attrsValue.size() );
assertTrue( attrsValue.containsKey( "my_new_key" ) );
ioService().setAttributes( path, new FileAttribute() {
@Override
public String name() {
return "my_new_key";
}
@Override
public Object value() {
return null;
}
} );
final Map attrsValue2 = ioService().readAttributes( path );
assertEquals( 6, attrsValue2.size() );
assertFalse( attrsValue2.containsKey( "my_new_key" ) );
}
代码示例来源:origin: org.kie.commons/kie-commons-io
ioService().setAttributes( file, new FileAttribute() {
@Override
public String name() {
代码示例来源:origin: org.kie.commons/kie-commons-io
ioService().setAttributes( path, new FileAttribute() {
@Override
public String name() {