protected List expandThisLevel( InvDataset dataset, String prefixUrlPath )
  {
    if ( dataset == null) throw new NullPointerException( "Given dataset cannot be null.");
    if ( ! isCollection( dataset)) throw new IllegalArgumentException( "Dataset \"" + dataset.getName() + "\" is not a collection dataset.");

    // Deal with all files in this directory.
    File theDir = new File( ((LocalInvDataset) dataset).getLocalPath() );
    File[] allFiles = theDir.listFiles();
    InvDataset curDs = null;
    ArrayList list = new ArrayList();
    for ( int i = 0; i < allFiles.length; i++)
    {
      try
      {
        curDs = new LocalInvDataset( dataset, allFiles[ i], prefixUrlPath );
      }
      catch ( IOException e )
      {
        // Given file doesn't exist or is not under the accessPointHeader directory, skip.
        continue;
      }

      list.add( curDs);
    }

    return( list);
  }
protected List expandThisLevel( InvDataset dataset, String prefixUrlPath )
  {
    if ( dataset == null) throw new NullPointerException( "Given dataset cannot be null.");
    if ( ! isCollection( dataset)) throw new IllegalArgumentException( "Dataset \"" + dataset.getName() + "\" is not a collection dataset.");

    
    File theDir = new File( ((LocalInvDataset) dataset).getLocalPath() );
    File[] allFiles = theDir.listFiles();
    InvDataset curDs = null;
    ArrayList list = new ArrayList();
    for ( int i = 0; i < allFiles.length; i++)
    {
      try
      {
        curDs = new LocalInvDataset( dataset, allFiles[ i], prefixUrlPath );
      }
      catch ( IOException e )
      {
        
        continue;
      }

      list.add( curDs);
    }

    return( list);
  }
protected List expandThisLevel ( InvDataset dataset , String prefixUrlPath ) { if ( dataset == null ) throw new NullPointerException ( "Given dataset cannot be null." ) ; if ( ! isCollection ( dataset ) ) throw new IllegalArgumentException ( "Dataset \"" + dataset . getName ( ) + "\" is not a collection dataset." ) ; // Deal with all files in this directory. File theDir = new File ( ( ( LocalInvDataset ) dataset ) . getLocalPath ( ) ) ; File [ ] allFiles = theDir . listFiles ( ) ; InvDataset curDs = null ; ArrayList list = new ArrayList ( ) ; for ( int i = 0 ; i < allFiles . length ; i ++ ) { try { curDs = new LocalInvDataset ( dataset , allFiles [ i ] , prefixUrlPath ) ; } catch ( IOException e ) { // Given file doesn't exist or is not under the accessPointHeader directory, skip. continue ; } list . add ( curDs ) ; } return ( list ) ; }
Return a list of the InvDatasets contained in the given collection dataset
on this DatasetSource.

@param dataset - the collection dataset to be expanded.
@return A list of the InvDatasets contained in the given collection dataset.
@throws IllegalArgumentException when given dataset is not a collection dataset.
@throws NullPointerException if given dataset is null.
@throws ClassCastException if the given InvDataset is not a LocalInvDataset.
Return a list of the InvDatasets contained in the given collection dataset on this DatasetSource .