Package com.browseengine.bobo.service.impl

Source Code of com.browseengine.bobo.service.impl.BoboZoieUtil

package com.browseengine.bobo.service.impl;

import java.io.IOException;
import java.util.List;

import proj.zoie.api.ZoieIndexReader;

import com.browseengine.bobo.api.BoboBrowser;
import com.browseengine.bobo.api.BoboIndexReader;
import com.browseengine.bobo.api.Browsable;
import com.browseengine.bobo.api.MultiBoboBrowser;

public class BoboZoieUtil {
  public static Browsable buildBrowsableFromZoieReaders(
      List<ZoieIndexReader<BoboIndexReader>> readerList)
      throws IOException {
    List<BoboIndexReader> boboReaderList = ZoieIndexReader
        .extractDecoratedReaders(readerList);
    return buildBrowsableFromBoboReaders(boboReaderList);
  }

  public static Browsable buildBrowsableFromBoboReaders(
      List<BoboIndexReader> readerList) throws IOException {
    Browsable[] subBrowsers = BoboBrowser.createBrowsables(readerList);
    return new MultiBoboBrowser(subBrowsers);
  }
}
TOP

Related Classes of com.browseengine.bobo.service.impl.BoboZoieUtil

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.