/** * Creates a file object. */ @Override protected FileObject createFile(final AbstractFileName name) { return new UrlFileObject(this, name); }
/** * Attaches this file object to its file resource. This method is called before any of the doBlah() or onBlah() * methods. Sub-classes can use this method to perform lazy initialisation. */ @Override protected void doAttach() throws Exception { if (url == null) { // url = new URL(getName().getURI()); url = createURL(getName()); } }
protected URL createURL(final FileName name) throws MalformedURLException, FileSystemException, URIException { if (name instanceof URLFileName) { final URLFileName urlName = (URLFileName) getName(); // TODO: charset return new URL(urlName.getURIEncoded(null)); } return new URL(getName().getURI()); }
protected URL createURL(final FileName name) throws MalformedURLException, FileSystemException, URIException { if (name instanceof URLFileName) { final URLFileName urlName = (URLFileName) getName(); // TODO: charset return new URL(urlName.getURIEncoded(null)); } return new URL(getName().getURI()); }
/** * Attaches this file object to its file resource. This method is called before any of the doBlah() or onBlah() * methods. Sub-classes can use this method to perform lazy initialisation. */ @Override protected void doAttach() throws Exception { if (url == null) { // url = new URL(getName().getURI()); url = createURL(getName()); } }
protected URL createURL(final FileName name) throws MalformedURLException, FileSystemException, URIException { if (name instanceof URLFileName) { final URLFileName urlName = (URLFileName) getName(); // TODO: charset return new URL(urlName.getURIEncoded(null)); } return new URL(getName().getURI()); }
/** * Creates a file object. */ @Override protected FileObject createFile(final AbstractFileName name) { return new UrlFileObject(this, name); }
/** * Attaches this file object to its file resource. This method is called before any of the doBlah() or onBlah() * methods. Sub-classes can use this method to perform lazy initialisation. */ @Override protected void doAttach() throws Exception { if (url == null) { // url = new URL(getName().getURI()); url = createURL(getName()); } }
/** * Creates a file object. */ @Override protected FileObject createFile(final AbstractFileName name) { return new UrlFileObject(this, name); }