예제 #1
0
 @Override
 public void close() throws IOException {
   mOpen = false;
   for (IDataset dataset : mDatasets) {
     dataset.close();
   }
 }
예제 #2
0
 @Override
 public void open() throws IOException {
   mOpen = true;
   for (IDataset dataset : mDatasets) {
     dataset.open();
   }
 }
예제 #3
0
 @Override
 public boolean sync() throws IOException {
   boolean result = true;
   for (IDataset dataset : mDatasets) {
     if (!dataset.sync()) {
       result = false;
     }
   }
   return result;
 }
예제 #4
0
 @Override
 public IGroup getRootGroup() {
   if (mRootPhysical == null && mDatasets.size() > 0) {
     HdfGroup[] groups = new HdfGroup[mDatasets.size()];
     int i = 0;
     for (IDataset dataset : mDatasets) {
       groups[i++] = (HdfGroup) dataset.getRootGroup();
     }
     mRootPhysical = new NxsGroup(groups, null, this);
   }
   return mRootPhysical;
 }
예제 #5
0
 @Override
 public IDataset openDataset(URI uri) {
   IDataset dataset = null;
   try {
     dataset = createDatasetInstance(uri);
     if (dataset != null) {
       dataset.open();
     }
   } catch (Exception e) {
     Factory.getLogger().log(Level.SEVERE, "Unable to open dataset!", e);
   }
   return dataset;
 }
예제 #6
0
 @Override
 public void save() throws WriterException {
   for (IDataset dataset : mDatasets) {
     dataset.save();
   }
 }
예제 #7
0
 @Override
 public void save(final String parentPath, final IAttribute attribute) throws WriterException {
   for (IDataset dataset : mDatasets) {
     dataset.save(parentPath, attribute);
   }
 }
예제 #8
0
 @Override
 public void save(final IContainer container) throws WriterException {
   for (IDataset dataset : mDatasets) {
     dataset.save(container);
   }
 }
예제 #9
0
 @Override
 public void saveTo(final String location) throws WriterException {
   for (IDataset dataset : mDatasets) {
     dataset.saveTo(location);
   }
 }
예제 #10
0
 @Override
 public IContainer getRootGroup() {
   return mDataset.getRootGroup();
 }