/** * Get object content. */ @Override public Object getContent() throws IOException { if (!connected) connect(); if (resource != null) return getInputStream(); if (collection != null) return collection; if (object != null) return object; throw new FileNotFoundException( getURL() == null ? "null" : getURL().toString()); }
/** * Get object content. */ @Override public Object getContent() throws IOException { if (!connected) connect(); if (resource != null) return getInputStream(); if (collection != null) return collection; if (object != null) return object; throw new FileNotFoundException( getURL() == null ? "null" : getURL().toString()); }
/** * Get input stream. */ @Override public InputStream getInputStream() throws IOException { if (!connected) connect(); if (resource == null) { throw new FileNotFoundException( getURL() == null ? "null" : getURL().toString()); } // Reopen resource try { resource = (Resource) context.lookup( URLDecoder.decode(getURL().getFile(), "UTF-8")); } catch (NamingException e) { // Ignore } return (resource.streamContent()); }
/** * Get input stream. */ @Override public InputStream getInputStream() throws IOException { if (!connected) connect(); if (resource == null) { throw new FileNotFoundException( getURL() == null ? "null" : getURL().toString()); } // Reopen resource try { resource = (Resource) context.lookup( URL_DECODER.convert(getURL().getFile(), false)); } catch (NamingException e) { // Ignore } return (resource.streamContent()); }
/** * Get input stream. */ @Override public InputStream getInputStream() throws IOException { if (!connected) connect(); if (resource == null) { throw new FileNotFoundException(); } // Reopen resource try { resource = (Resource) context.lookup(getURL().getFile()); } catch (NamingException e) { // Ignore } return (resource.streamContent()); }
String path = getURL().getFile(); if (context instanceof ProxyDirContext) { ProxyDirContext proxyDirContext =
String path = getURL().getFile(); if (context instanceof ProxyDirContext) { ProxyDirContext proxyDirContext =
/** * Get input stream. */ @Override public InputStream getInputStream() throws IOException { if (!connected) connect(); if (resource == null) { throw new FileNotFoundException(); } // Reopen resource try { resource = (Resource) context.lookup(getURL().getFile()); } catch (NamingException e) { // Ignore } return (resource.streamContent()); }
/** * Get input stream. */ @Override public InputStream getInputStream() throws IOException { if (!connected) connect(); if (resource == null) { throw new FileNotFoundException(); } // Reopen resource try { resource = (Resource) context.lookup(getURL().getFile()); } catch (NamingException e) { // Ignore } return (resource.streamContent()); }
String path = getURL().getFile(); if (context instanceof ProxyDirContext) { ProxyDirContext proxyDirContext =
String path = URL_DECODER.convert(getURL().getFile(), false); if (context instanceof ProxyDirContext) { ProxyDirContext proxyDirContext =
String file = getURL().getFile();
String path = getURL().getFile(); if (context instanceof ProxyDirContext) { ProxyDirContext proxyDirContext =
String path = getURL().getFile(); if (context instanceof ProxyDirContext) { ProxyDirContext proxyDirContext =
String path = getURL().getFile(); if (context instanceof ProxyDirContext) { ProxyDirContext proxyDirContext =
String file = getURL().getFile();
String file = getURL().getFile();