public static void writeGenerators( IGeneratorSet generators, OutputStream outputStream)
    {
    try( GeneratorSetJsonWriter writer = new GeneratorSetJsonWriter( outputStream))
      {
      writer.write( generators);
      }
    catch( Exception e)
      {
      throw new RuntimeException( "Can't write generator definitions", e);
      }
    }
public static void writeGenerators ( IGeneratorSet generators , OutputStream outputStream ) { try ( GeneratorSetJsonWriter writer = new GeneratorSetJsonWriter ( outputStream ) ) { writer . write ( generators ) ; } catch ( Exception e ) { throw new RuntimeException ( "Can't write generator definitions" , e ) ; } }
Writes a JSON document describing the given generator definitions to the given output stream.