//==================================================================================================
// J a v a                                                                                     Java
// E n v i r o n m e n t L o a d e r
//                                                                                By Bruno Bachelet
//==================================================================================================
// Copyright (c) 1999-2016
// Bruno Bachelet - bruno@nawouak.net - http://www.nawouak.net
//
// This file is part of the B++ Library. This library is free software; you can redistribute it
// and/or modify it under the terms of the GNU Library General Public License as published by the
// Free Software Foundation; either version 2 of the License, or (at your option) any later
// version.
//
// This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
// without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See
// the GNU Library General Public License for more details (http://www.gnu.org).

/*DESCRIPTION*/
/* This module provides a class to manage the B++ Library environment in Java. */

// Package //---------------------------------------------------------------------------------------
package bpp.java;

// Inportation //-----------------------------------------------------------------------------------
import java.io.*;

// E n v i r o n m e n t L o a d e r  Class //------------------------------------------------------
/*CLASS EnvironmentLoader */ /* Provides methods to manage the B++ Library environment in Java. */
public class EnvironmentLoader {
 //--------------------------------------------------------------------------------------LoadDynamic
 /*METHOD EnvironmentLoader */ /* Loads the dynamic library given as argument. */
 public static void loadDynamic(String agLibraryName) {
  System.loadLibrary("bpp_calendar");
  System.loadLibrary("bpp_graphic");
  System.loadLibrary(agLibraryName);
 }
 //---------------------------------------------------------------------------------------------Open
 /*AMETHOD EnvironmentLoader */
 /* Opens the B++ Library environment. The first argument is the output stream where messages of
    the B++ Library environment will be written. This object is considered only if the second
    argument is set to <CODE>true</CODE>, else messages will be written into the standard console
    output. If the first argument is null, the messages will not be output. */
 public native static void open(OutputStream agStream,boolean agGraphic); //
 //--------------------------------------------------------------------------------------------Close
 /*AMETHOD EnvironmentLoader */ /* Closes the B++ Library environment. */
 public native static void close(); //
}

// End //-------------------------------------------------------------------------------------------