code: public static void transform(InputStream XMLStream, OutputStream JSONStream)
      throws SAXException, IOException
      {
          if (logger.isLoggable(Level.FINER))
          {
              logger.entering(className, "transform(InputStream, OutputStream)");
          }
          transform(XMLStream,JSONStream,false);    
  
          if (logger.isLoggable(Level.FINER))
          {
              logger.entering(className, "transform(InputStream, OutputStream)");
          }
      }
docs: Method to do the transform from an XML input stream to a JSON stream.
  Neither input nor output streams are closed.  Closure is left up to the caller.  Same as calling transform(inStream, outStream, false);  (Default is compact form)
  
  @param XMLStream The XML stream to convert to JSON
  @param JSONStream The stream to write out JSON to.  The contents written to this stream are always in UTF-8 format.
  
  @throws SAXException Thrown is a parse error occurs.
  @throws IOException Thrown if an IO error occurs.