1 22 package org.jboss.virtual.spi; 23 24 import java.io.IOException ; 25 import java.io.InputStream ; 26 import java.io.Serializable ; 27 import java.net.MalformedURLException ; 28 import java.net.URI ; 29 import java.net.URISyntaxException ; 30 import java.net.URL ; 31 import java.util.List ; 32 33 import org.jboss.virtual.VirtualFile; 34 35 42 public interface VirtualFileHandler extends Serializable 43 { 44 49 String getName(); 50 51 56 String getPathName(); 57 58 64 URI toURI() throws URISyntaxException ; 65 66 73 URL toURL() throws MalformedURLException , URISyntaxException ; 74 75 82 long getLastModified() throws IOException ; 83 84 91 long getSize() throws IOException ; 92 93 101 boolean isLeaf() throws IOException ; 102 103 110 boolean isHidden() throws IOException ; 111 112 119 InputStream openStream() throws IOException ; 120 121 128 VirtualFileHandler getParent() throws IOException ; 129 130 138 List <VirtualFileHandler> getChildren(boolean ignoreErrors) throws IOException ; 139 140 148 VirtualFileHandler findChild(String path) throws IOException ; 149 150 156 VFSContext getVFSContext(); 157 158 164 VirtualFile getVirtualFile(); 165 166 169 void close(); 170 } 171 | Popular Tags |