org.netbeans.lib.cvsclient.command
Class WrapperUtils

java.lang.Object
  extended by org.netbeans.lib.cvsclient.command.WrapperUtils

public class WrapperUtils
extends java.lang.Object

Support for .cvswrappers parsing and merging.


Constructor Summary
WrapperUtils()
           
 
Method Summary
static java.util.Map mergeWrapperMap(ClientServices client)
          This method consolidates the wrapper map so that it follows CVS prioritization rules for the wrappers.
static void readWrappersFromFile(java.io.File file, java.util.Map wrapperMap)
          Reads the wrappers from the specified file and populates the specified map
static void readWrappersFromProperty(java.lang.String propertyName, java.util.Map wrapperMap)
          Reads the wrappers from the specified System property and populates the specified map.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WrapperUtils

public WrapperUtils()
Method Detail

readWrappersFromFile

public static void readWrappersFromFile(java.io.File file,
                                        java.util.Map wrapperMap)
                                 throws java.io.IOException,
                                        java.io.FileNotFoundException
Reads the wrappers from the specified file and populates the specified map

Parameters:
file - The File object corresponding to the file which is being processed
wrapperMap - The map which is being updated
Throws:
java.io.IOException
java.io.FileNotFoundException

readWrappersFromProperty

public static void readWrappersFromProperty(java.lang.String propertyName,
                                            java.util.Map wrapperMap)
                                     throws java.io.IOException
Reads the wrappers from the specified System property and populates the specified map. The map is unchanged if the property is not set.

Parameters:
propertyName - The system properties name
wrapperMap - The map which is being updated
Throws:
java.io.IOException

mergeWrapperMap

public static java.util.Map mergeWrapperMap(ClientServices client)
                                     throws CommandException
This method consolidates the wrapper map so that it follows CVS prioritization rules for the wrappers. Both AddCommand and ImportCommand will be calling this.

Throws:
CommandException

 

Built on August 7 2008.  |  Portions Copyright 1997-2005 Sun Microsystems, Inc. All rights reserved.