Coverage Report - org.webslinger.vfs.VFSDelegate
 
Classes in this File Line Coverage Branch Coverage Complexity
VFSDelegate
6%
1/18
N/A
0
VFSDelegate$Permission
0%
0/6
N/A
0
VFSDelegate$Type
0%
0/1
N/A
0
 
 1  
 package org.webslinger.vfs;
 2  
 
 3  
 import java.io.InputStream;
 4  
 import java.io.IOException;
 5  
 import java.io.OutputStream;
 6  
 import java.util.Collection;
 7  
 import java.util.Collections;
 8  
 import java.util.EnumSet;
 9  
 
 10  238
 public class VFSDelegate<I, T, C> {
 11  0
     public static enum Type { IMAGINARY, FILE, DIRECTORY };
 12  0
     public static enum Permission {
 13  0
         READABLE, WRITEABLE;
 14  0
         static Collection<Permission> ALL_SET          = Collections.unmodifiableSet(EnumSet.allOf(Permission.class));
 15  0
         static Collection<Permission> NONE_SET         = Collections.unmodifiableSet(EnumSet.noneOf(Permission.class));
 16  0
         static Collection<Permission> READABLE_SET     = Collections.unmodifiableSet(EnumSet.of(READABLE));
 17  0
         static Collection<Permission> WRITEABLE_SET    = Collections.unmodifiableSet(EnumSet.of(WRITEABLE));
 18  
     };
 19  
 
 20  
     public I getId(T id) throws IOException {
 21  0
         throw new UnsupportedOperationException(getClass().getName());
 22  
     }
 23  
 
 24  
     public Type getType(T id) throws IOException {
 25  0
         throw new UnsupportedOperationException(getClass().getName());
 26  
     }
 27  
 
 28  
     public long getLastModifiedTime(T id) throws IOException {
 29  0
         throw new UnsupportedOperationException(getClass().getName());
 30  
     }
 31  
 
 32  
     public Collection<Permission> getPermissions(T id) throws IOException {
 33  0
         throw new UnsupportedOperationException(getClass().getName());
 34  
     }
 35  
 
 36  
     public String absolutePath(T id) throws IOException {
 37  0
         throw new UnsupportedOperationException(getClass().getName());
 38  
     }
 39  
 
 40  
     public String getBaseName(T id) throws IOException {
 41  0
         throw new UnsupportedOperationException(getClass().getName());
 42  
     }
 43  
 
 44  
     public C getParent(T id) throws IOException {
 45  0
         throw new UnsupportedOperationException(getClass().getName());
 46  
     }
 47  
 
 48  
     public C resolve(T id, String name) throws IOException {
 49  0
         throw new UnsupportedOperationException(getClass().getName());
 50  
     }
 51  
 
 52  
     public C[] getChildren(T id) throws IOException {
 53  0
         throw new UnsupportedOperationException(getClass().getName());
 54  
     }
 55  
 
 56  
     public boolean attributeExists(T id, String name) throws IOException {
 57  0
         throw new UnsupportedOperationException(getClass().getName());
 58  
     }
 59  
 
 60  
     public Object getAttribute(T id, String name) throws IOException {
 61  0
         throw new UnsupportedOperationException(getClass().getName());
 62  
     }
 63  
 
 64  
     public String getContentType(T id) throws IOException {
 65  0
         throw new UnsupportedOperationException(getClass().getName());
 66  
     }
 67  
 
 68  
     public long getLength(T id) throws IOException {
 69  0
         throw new UnsupportedOperationException(getClass().getName());
 70  
     }
 71  
 
 72  
     public String getString(T id) throws IOException {
 73  0
         throw new UnsupportedOperationException(getClass().getName());
 74  
     }
 75  
 
 76  
     public InputStream openInput(T id) throws IOException {
 77  0
         throw new UnsupportedOperationException(getClass().getName());
 78  
     }
 79  
 
 80  
     public OutputStream openOutput(T id, boolean append) throws IOException {
 81  0
         throw new UnsupportedOperationException(getClass().getName());
 82  
     }
 83  
 
 84  
     public RandomAccess openRandom(T id, boolean read) throws IOException {
 85  0
         throw new UnsupportedOperationException(getClass().getName());
 86  
     }
 87  
 }