Code example for Supplier

Methods: get

0
 
   @Override 
   public InputStream openStream() {
      if (nodes != null)
         return Strings2.toInputStream(nodes);
      return apply(url.get());
   } 
 
   @Override 
   public String toString() {
      return "[url=" + url + "]";
   } 
 
   @Override 
   public InputStream apply(URI input) {
      try { 
         if (input.getScheme() != null && input.getScheme().equals("classpath"))
            return getClass().getResourceAsStream(input.getPath());
         return input.toURL().openStream();
      } catch (IOException e) {
Connect your IDE to all the code out there  Get Codota for Java