code: @SuppressWarnings("resource")
      public static Scanner streamToScanner( InputStream stream, String delimiter ) {
          java.util.Scanner s = new java.util.Scanner(stream).useDelimiter(delimiter);
          return s;
      }
docs: Get scanner from input stream.
  
  <b>Note: the scanner needs to be closed after use.</b>
  
  @param stream the stream to read.
  @param delimiter the delimiter to use.
  @return the scanner.