com.sun.ebxml.registry.util
Class NAICSImporter

java.lang.Object
  |
  +--com.sun.ebxml.registry.util.NAICSImporter

public class NAICSImporter
extends java.lang.Object

It is the importer for NAICS taxonomy. It expects the input file is of version 2002. It will automatically skip the first four lines in the input file.

Author:
Adrian Chong

Constructor Summary
NAICSImporter(java.lang.String fileName, UUIDFactory uUIDFactory)
          Constructor.
 
Method Summary
 org.oasis.ebxml.registry.bindings.rim.ClassificationScheme getClassificationScheme()
          Get the ClassificationScheme for NAICS taxonomy
 void setFile(java.lang.String fileName)
          Set the file path of the ISO3166 taxonomy file.
 void setMaxNumOfEntries(int maxNum)
          Set the maximum number of entries should be handled.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NAICSImporter

public NAICSImporter(java.lang.String fileName,
                     UUIDFactory uUIDFactory)
              throws java.io.IOException
Constructor.

Parameters:
fileName - The file path and name of the NAICS taxonomy file.
uUIDFactory - The UUIDFactory
Method Detail

setFile

public void setFile(java.lang.String fileName)
             throws java.io.IOException
Set the file path of the ISO3166 taxonomy file.

Parameters:
fileName - The file path of the NAICS taxonomy file
java.io.IOException

setMaxNumOfEntries

public void setMaxNumOfEntries(int maxNum)
Set the maximum number of entries should be handled. Setting it to 0 means that the importer will handle unlimited number of entries.

Parameters:
maxNum - The maximum number of entries the importer will handle

getClassificationScheme

public org.oasis.ebxml.registry.bindings.rim.ClassificationScheme getClassificationScheme()
                                                                                   throws java.io.IOException
Get the ClassificationScheme for NAICS taxonomy

Returns:
the ClassificationScheme
java.io.IOException


Copyright © 2001-2003 OASIS. All Rights Reserved.