Package com.google.common.jimfs
Class UserDefinedAttributeProvider.View
- java.lang.Object
-
- com.google.common.jimfs.AbstractAttributeView
-
- com.google.common.jimfs.UserDefinedAttributeProvider.View
-
- All Implemented Interfaces:
java.nio.file.attribute.AttributeView,java.nio.file.attribute.FileAttributeView,java.nio.file.attribute.UserDefinedFileAttributeView
- Enclosing class:
- UserDefinedAttributeProvider
private static class UserDefinedAttributeProvider.View extends AbstractAttributeView implements java.nio.file.attribute.UserDefinedFileAttributeView
Implementation ofUserDefinedFileAttributeView.
-
-
Constructor Summary
Constructors Constructor Description View(FileLookup lookup)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddelete(java.lang.String name)private byte[]getStoredBytes(java.lang.String name)java.util.List<java.lang.String>list()java.lang.Stringname()intread(java.lang.String name, java.nio.ByteBuffer dst)intsize(java.lang.String name)intwrite(java.lang.String name, java.nio.ByteBuffer src)-
Methods inherited from class com.google.common.jimfs.AbstractAttributeView
lookupFile
-
-
-
-
Constructor Detail
-
View
public View(FileLookup lookup)
-
-
Method Detail
-
name
public java.lang.String name()
- Specified by:
namein interfacejava.nio.file.attribute.AttributeView- Specified by:
namein interfacejava.nio.file.attribute.UserDefinedFileAttributeView
-
list
public java.util.List<java.lang.String> list() throws java.io.IOException- Specified by:
listin interfacejava.nio.file.attribute.UserDefinedFileAttributeView- Throws:
java.io.IOException
-
getStoredBytes
private byte[] getStoredBytes(java.lang.String name) throws java.io.IOException- Throws:
java.io.IOException
-
size
public int size(java.lang.String name) throws java.io.IOException- Specified by:
sizein interfacejava.nio.file.attribute.UserDefinedFileAttributeView- Throws:
java.io.IOException
-
read
public int read(java.lang.String name, java.nio.ByteBuffer dst) throws java.io.IOException- Specified by:
readin interfacejava.nio.file.attribute.UserDefinedFileAttributeView- Throws:
java.io.IOException
-
write
public int write(java.lang.String name, java.nio.ByteBuffer src) throws java.io.IOException- Specified by:
writein interfacejava.nio.file.attribute.UserDefinedFileAttributeView- Throws:
java.io.IOException
-
delete
public void delete(java.lang.String name) throws java.io.IOException- Specified by:
deletein interfacejava.nio.file.attribute.UserDefinedFileAttributeView- Throws:
java.io.IOException
-
-