KIE NIO.2 :: Model 6.0.0.CR4-Pre1

org.kie.commons.java.nio.base
Class AbstractBasicFileAttributeView<P extends Path>

java.lang.Object
  extended by org.kie.commons.java.nio.base.AbstractBasicFileAttributeView<P>
All Implemented Interfaces:
ExtendedAttributeView, AttributeView, BasicFileAttributeView, FileAttributeView
Direct Known Subclasses:
VersionAttributeView

public abstract class AbstractBasicFileAttributeView<P extends Path>
extends Object
implements BasicFileAttributeView, ExtendedAttributeView


Field Summary
protected  P path
           
 
Constructor Summary
AbstractBasicFileAttributeView(P path)
           
 
Method Summary
 boolean isSerializable()
           
 String name()
           
 Map<String,Object> readAllAttributes()
           
 Map<String,Object> readAttributes(String... attributes)
           
 void setAttribute(String attribute, Object value)
           
 void setTimes(FileTime lastModifiedTime, FileTime lastAccessTime, FileTime createTime)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.kie.commons.java.nio.file.attribute.BasicFileAttributeView
readAttributes
 
Methods inherited from interface org.kie.commons.java.nio.base.ExtendedAttributeView
readAttributes, viewTypes
 

Field Detail

path

protected final P extends Path path
Constructor Detail

AbstractBasicFileAttributeView

public AbstractBasicFileAttributeView(P path)
Method Detail

name

public String name()
Specified by:
name in interface AttributeView

setTimes

public void setTimes(FileTime lastModifiedTime,
                     FileTime lastAccessTime,
                     FileTime createTime)
              throws IOException
Specified by:
setTimes in interface BasicFileAttributeView
Throws:
IOException

readAllAttributes

public Map<String,Object> readAllAttributes()
Specified by:
readAllAttributes in interface ExtendedAttributeView

readAttributes

public Map<String,Object> readAttributes(String... attributes)
Specified by:
readAttributes in interface ExtendedAttributeView

setAttribute

public void setAttribute(String attribute,
                         Object value)
                  throws IOException
Specified by:
setAttribute in interface ExtendedAttributeView
Throws:
IOException

isSerializable

public boolean isSerializable()
Specified by:
isSerializable in interface ExtendedAttributeView

KIE NIO.2 :: Model 6.0.0.CR4-Pre1

Copyright © 2001-2013 JBoss by Red Hat. All Rights Reserved.