JavaDoc


001    /**
002     * Copyright (c) 2003 Daffodil Software Ltd all rights reserved,
003     * Modifications Copyright (c) 2008 Regiscope Digital Imaging Co, LLC, All rights reserved.
004     * This program is free software; you can redistribute it and/or modify
005     * it under the terms of version 2 of the GNU General Public License as
006     * published by the Free Software Foundation.
007     * There are special exceptions to the terms and conditions of the GPL
008     * as it is applied to this software. See the GNU General Public License for more details.
009     *
010     * This program is distributed in the hope that it will be useful,
011     * but WITHOUT ANY WARRANTY; without even the implied warranty of
012     * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
013     * GNU General Public License for more details.
014     *
015     * You should have received a copy of the GNU General Public License
016     * along with this program; if not, write to the Free Software
017     * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
018     */
019    
020    package org.dbreplicator.replication;
021    
022    /**
023     * This is a testing message printer class , that when printOFF is set to
024     * false prints passed messages.
025     *
026     */
027    
028    public class RepPrinter
029    {
030    
031        /**
032         * When commit in CVS both variable must be true.
033         */
034        final private static boolean printOFF = true;
035    
036        /**
037         * When U want to delete the temporary files, make print to false.
038         */
039        final public static boolean deleteFiles = true;
040    
041        public static void print(String msg)
042        {
043            if (!printOFF)
044            {
045                System.out.println(msg);
046            }
047        }
048    
049        public static void print(Exception ex)
050        {
051            if (!printOFF)
052            {
053                ex.printStackTrace();
054            }
055        }
056    }





























































Powered by Drupal - Theme by Danger4k